mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: Update vertexai & rouge scorer dependencies in eval to use a proxy
PiperOrigin-RevId: 822881672
This commit is contained in:
committed by
Copybara-Service
parent
45a2168e0e
commit
6d4d72a499
@@ -16,13 +16,15 @@ from __future__ import annotations
|
||||
|
||||
"""Tests for the Response Evaluator."""
|
||||
|
||||
from google.adk.dependencies.vertexai import vertexai
|
||||
from google.adk.evaluation.eval_case import Invocation
|
||||
from google.adk.evaluation.eval_metrics import PrebuiltMetrics
|
||||
from google.adk.evaluation.evaluator import EvalStatus
|
||||
from google.adk.evaluation.response_evaluator import ResponseEvaluator
|
||||
from google.genai import types as genai_types
|
||||
import pytest
|
||||
from vertexai import types as vertexai_types
|
||||
|
||||
vertexai_types = vertexai.types
|
||||
|
||||
|
||||
class TestResponseEvaluator:
|
||||
|
||||
@@ -14,13 +14,15 @@
|
||||
|
||||
"""Tests for the Response Evaluator."""
|
||||
|
||||
from google.adk.dependencies.vertexai import vertexai
|
||||
from google.adk.evaluation.eval_case import Invocation
|
||||
from google.adk.evaluation.eval_metrics import EvalMetric
|
||||
from google.adk.evaluation.eval_metrics import PrebuiltMetrics
|
||||
from google.adk.evaluation.evaluator import EvalStatus
|
||||
from google.adk.evaluation.safety_evaluator import SafetyEvaluatorV1
|
||||
from google.genai import types as genai_types
|
||||
from vertexai import types as vertexai_types
|
||||
|
||||
vertexai_types = vertexai.types
|
||||
|
||||
|
||||
class TestSafetyEvaluatorV1:
|
||||
|
||||
@@ -18,12 +18,14 @@ from __future__ import annotations
|
||||
import math
|
||||
import random
|
||||
|
||||
from google.adk.dependencies.vertexai import vertexai
|
||||
from google.adk.evaluation.eval_case import Invocation
|
||||
from google.adk.evaluation.evaluator import EvalStatus
|
||||
from google.adk.evaluation.vertex_ai_eval_facade import _VertexAiEvalFacade
|
||||
from google.genai import types as genai_types
|
||||
import pytest
|
||||
from vertexai import types as vertexai_types
|
||||
|
||||
vertexai_types = vertexai.types
|
||||
|
||||
|
||||
class TestVertexAiEvalFacade:
|
||||
|
||||
Reference in New Issue
Block a user