Update AgentEvaluator to new new EvalSchema

PiperOrigin-RevId: 759293759
This commit is contained in:
Ankur Sharma
2025-05-15 14:08:39 -07:00
committed by Copybara-Service
parent bdd678db31
commit 4c6820e78c
9 changed files with 153 additions and 149 deletions

View File

@@ -13,6 +13,7 @@
# limitations under the License.
from google.adk.evaluation import AgentEvaluator
import pytest
@pytest.mark.asyncio

View File

@@ -13,6 +13,7 @@
# limitations under the License.
from google.adk.evaluation import AgentEvaluator
import pytest
@pytest.mark.asyncio

View File

@@ -13,11 +13,12 @@
# limitations under the License.
from google.adk.evaluation import AgentEvaluator
import pytest
@pytest.mark.asyncio
async def test_eval_agent():
AgentEvaluator.evaluate(
await AgentEvaluator.evaluate(
agent_module="tests.integration.fixture.home_automation_agent",
eval_dataset_file_path_or_dir="tests/integration/fixture/home_automation_agent/simple_test.test.json",
num_runs=4,

View File

@@ -13,6 +13,7 @@
# limitations under the License.
from google.adk.evaluation import AgentEvaluator
import pytest
@pytest.mark.asyncio

View File

@@ -13,6 +13,7 @@
# limitations under the License.
from google.adk.evaluation import AgentEvaluator
import pytest
@pytest.mark.asyncio