We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 189eeba commit 3dd3436Copy full SHA for 3dd3436
docs/evaluate/index.md
@@ -369,10 +369,12 @@ Here is an example of a `pytest` test case that runs a single test file:
369
370
```py
371
from google.adk.evaluation.agent_evaluator import AgentEvaluator
372
+import pytest
373
-def test_with_single_test_file():
374
+@pytest.mark.asyncio
375
+async def test_with_single_test_file():
376
"""Test the agent's basic ability via a session file."""
- AgentEvaluator.evaluate(
377
+ await AgentEvaluator.evaluate(
378
agent_module="home_automation_agent",
379
eval_dataset_file_path_or_dir="tests/integration/fixture/home_automation_agent/simple_test.test.json",
380
)
0 commit comments