Skip to content

Commit 0e4b350

Browse files
sararobcopybara-github
authored andcommitted
chore: GenAI SDK client - remove unused evals method
PiperOrigin-RevId: 832294300
1 parent f7e718f commit 0e4b350

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

tests/unit/vertexai/genai/test_evals.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,6 @@ def setup_method(self):
152152
)
153153
self.client = vertexai.Client(project=_TEST_PROJECT, location=_TEST_LOCATION)
154154

155-
@pytest.mark.usefixtures("google_auth_mock")
156-
def test_eval_run(self):
157-
test_client = vertexai.Client(project=_TEST_PROJECT, location=_TEST_LOCATION)
158-
with pytest.raises(NotImplementedError):
159-
test_client.evals.run()
160-
161155
@pytest.mark.usefixtures("google_auth_mock")
162156
@mock.patch.object(client.Client, "_get_api_client")
163157
@mock.patch.object(evals.Evals, "batch_evaluate")

vertexai/_genai/evals.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -882,13 +882,6 @@ def _get_evaluation_item(
882882
self._api_client._verify_response(return_value)
883883
return return_value
884884

885-
def run(self) -> types.EvaluateInstancesResponse:
886-
"""Evaluates an instance of a model.
887-
888-
This should eventually call _evaluate_instances()
889-
"""
890-
raise NotImplementedError()
891-
892885
def evaluate_instances(
893886
self,
894887
*,

0 commit comments

Comments
 (0)