google-adk 1.2.0__py3-none-any.whl → 1.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,18 +12,20 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import Any
16
18
  from typing import Tuple
17
19
 
18
- from deprecated import deprecated
19
20
  from google.genai import types as genai_types
21
+ from typing_extensions import deprecated
20
22
 
21
23
  from ...evaluation.eval_case import IntermediateData
22
24
  from ...evaluation.eval_case import Invocation
23
25
  from ...sessions.session import Session
24
26
 
25
27
 
26
- @deprecated(reason='Use convert_session_to_eval_invocations instead.')
28
+ @deprecated('Use convert_session_to_eval_invocations instead.')
27
29
  def convert_session_to_eval_format(session: Session) -> list[dict[str, Any]]:
28
30
  """Converts a session data into eval format.
29
31
 
@@ -12,13 +12,15 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import Any
16
18
  from typing import Optional
17
19
 
18
- from deprecated import deprecated
19
20
  from google.genai import types as genai_types
20
21
  import pandas as pd
21
22
  from tabulate import tabulate
23
+ from typing_extensions import deprecated
22
24
  from typing_extensions import override
23
25
  from vertexai.preview.evaluation import EvalTask
24
26
  from vertexai.preview.evaluation import MetricPromptTemplateExamples
@@ -124,10 +126,8 @@ class ResponseEvaluator(Evaluator):
124
126
 
125
127
  @staticmethod
126
128
  @deprecated(
127
- reason=(
128
- "This method has been deprecated and will be removed soon. Please use"
129
- " evaluate_invocations instead."
130
- )
129
+ "This method has been deprecated and will be removed soon. Please use"
130
+ " evaluate_invocations instead."
131
131
  )
132
132
  def evaluate(
133
133
  raw_eval_dataset: list[list[dict[str, Any]]],
@@ -12,13 +12,15 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import Any
16
18
  from typing import cast
17
19
 
18
- from deprecated import deprecated
19
20
  from google.genai import types as genai_types
20
21
  import pandas as pd
21
22
  from tabulate import tabulate
23
+ from typing_extensions import deprecated
22
24
  from typing_extensions import override
23
25
 
24
26
  from .eval_case import Invocation
@@ -100,10 +102,8 @@ class TrajectoryEvaluator(Evaluator):
100
102
 
101
103
  @staticmethod
102
104
  @deprecated(
103
- reason=(
104
- "This method has been deprecated and will be removed soon. Please use"
105
- " evaluate_invocations instead."
106
- )
105
+ "This method has been deprecated and will be removed soon. Please use"
106
+ " evaluate_invocations instead."
107
107
  )
108
108
  def evaluate(
109
109
  eval_dataset: list[list[dict[str, Any]]],
@@ -218,7 +218,10 @@ class TrajectoryEvaluator(Evaluator):
218
218
  return new_row, failure
219
219
 
220
220
  @staticmethod
221
- @deprecated()
221
+ @deprecated(
222
+ "are_tools_equal is deprecated and will be removed soon. Please use"
223
+ " TrajectoryEvaluator._are_tool_calls_equal instead."
224
+ )
222
225
  def are_tools_equal(list_a_original, list_b_original):
223
226
  # Remove other entries that we don't want to evaluate
224
227
  list_a = [
google/adk/version.py CHANGED
@@ -12,5 +12,5 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- # version: date+base_cl
16
- __version__ = "1.2.0"
15
+ # version: major.minor.patch
16
+ __version__ = "1.2.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-adk
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Agent Development Kit
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  Requires-Python: >=3.9
@@ -38,6 +38,7 @@ Requires-Dist: python-dotenv>=1.0.0
38
38
  Requires-Dist: PyYAML>=6.0.2
39
39
  Requires-Dist: sqlalchemy>=2.0
40
40
  Requires-Dist: tzlocal>=5.3
41
+ Requires-Dist: typing-extensions>=4.5, <5
41
42
  Requires-Dist: uvicorn>=0.34.0
42
43
  Requires-Dist: flit>=3.10.0 ; extra == "dev"
43
44
  Requires-Dist: isort>=6.0.0 ; extra == "dev"
@@ -2,7 +2,7 @@ google/adk/__init__.py,sha256=sSPQK3r0tW8ahl-k8SXkZvMcbiTbGICCtrw6KkFucyg,726
2
2
  google/adk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  google/adk/runners.py,sha256=GXlJjARTSZgYsu6W5MhrZgMZZqit-elqK5qdpLs8rU0,18177
4
4
  google/adk/telemetry.py,sha256=0ZHioyg4GD-A4xd2TPB_W1uW2_m5kMQGHosPwCu9cIc,8641
5
- google/adk/version.py,sha256=hueHkAiQReHI2w2q7-SWW9rbiDYDkG_PE0wsHXiOAW0,621
5
+ google/adk/version.py,sha256=bm401EHTz_YItKl-Txr8FHfuzWLTDTsLAwEB1B8lacA,626
6
6
  google/adk/agents/__init__.py,sha256=WsCiBlvI-ISWrcntboo_sULvVJNwLNxXCe42UGPLKdY,1041
7
7
  google/adk/agents/active_streaming_tool.py,sha256=vFuh_PkdF5EyyneBBJ7Al8ojeTIR3OtsxLjckr9DbXE,1194
8
8
  google/adk/agents/base_agent.py,sha256=fCwAcR12IVVx8qXWGVf773zOmQEKnXDPwmoYYQwUfR4,12168
@@ -49,7 +49,7 @@ google/adk/cli/utils/agent_loader.py,sha256=GRdXZzDt3mz-Kgnbk-tz-upsEdeBCH3ns5yE
49
49
  google/adk/cli/utils/cleanup.py,sha256=c8kMxpDoNsr49C0O68pptpmy8oce1PjaLtvUy200pWw,1296
50
50
  google/adk/cli/utils/common.py,sha256=brmJF3t-h_HCCS9FQtgqY0Ozk1meeM6a1omwcmsbDBQ,788
51
51
  google/adk/cli/utils/envs.py,sha256=XOEFNiQlgTTyDvaH1FHmgOnPeC3MHsx_DhyOGa-tSAY,1684
52
- google/adk/cli/utils/evals.py,sha256=OB_c0Z_GelnyddzdNb2sqkPsDYdjngPEAa74Laxwryo,6564
52
+ google/adk/cli/utils/evals.py,sha256=N-X2_uivb5Nw4SzsC8HlXgkSIpvOVaZbwnV6W2kdlXY,6600
53
53
  google/adk/cli/utils/logs.py,sha256=ARcKVGDi8vHReg1DO7ZGbUBk0RejRMzKf2xHvIWn2xA,2296
54
54
  google/adk/code_executors/__init__.py,sha256=dJ8qAZyj3jm8fNnzQWoWpI7xSVUGhU5qIxbEDpouizc,1641
55
55
  google/adk/code_executors/base_code_executor.py,sha256=QLpgVcFNI5V21U-kVleze24ADeuDKgE3wI7Uui6vUeo,3030
@@ -74,8 +74,8 @@ google/adk/evaluation/evaluation_generator.py,sha256=jbE_Q0bdIJ94vUfyZlblzJK6Usf
74
74
  google/adk/evaluation/evaluator.py,sha256=ACERS1jNCcqPPoI84qt68-B_aAr8o729cd2Qmb-FrXE,1673
75
75
  google/adk/evaluation/local_eval_set_results_manager.py,sha256=rwAk2sHTEsnB7Eg8J5I_2UpQv2HZOMQe7u32kPqkS3w,4059
76
76
  google/adk/evaluation/local_eval_sets_manager.py,sha256=mZ72fl8Iy2Xc2RdQCUKMI_78nJ7isHuFG37nZ_72Y5A,11536
77
- google/adk/evaluation/response_evaluator.py,sha256=mgRXAs9qFDN5C5hx39MSzeO7SZybYdwWYHR_y1MDvJQ,8386
78
- google/adk/evaluation/trajectory_evaluator.py,sha256=tNye1IZUqjYo-3Mi-R8RIpflcX7jawPqvGLU5aRtBHI,8085
77
+ google/adk/evaluation/response_evaluator.py,sha256=k9uad2FmlO1rnRul_nDFO6lk_16vm7l320hquVgUXhQ,8398
78
+ google/adk/evaluation/trajectory_evaluator.py,sha256=HdQ2W2Qwy-08o7H2wtFNYFTlF7uphi9LeD03nHXeIVY,8235
79
79
  google/adk/events/__init__.py,sha256=Lh0rh6RAt5DIxbwBUajjGMbB6bZW5K4Qli6PD_Jv74Q,688
80
80
  google/adk/events/event.py,sha256=LZal8tipy5mCln4WLYatFQ3yWRL5QDB30oBK0z7aczM,4719
81
81
  google/adk/events/event_actions.py,sha256=-f_WTN8eQdhAj2celU5AoynGlBfplj3nia9C7OrT534,2275
@@ -203,8 +203,8 @@ google/adk/tools/retrieval/vertex_ai_rag_retrieval.py,sha256=aDsQPeScrYoHdLg0Yq7
203
203
  google/adk/utils/__init__.py,sha256=Q9FlRO2IfSE9yEaiAYzWkOMBJPCaNYqh4ihcp0t0BQs,574
204
204
  google/adk/utils/instructions_utils.py,sha256=al9Z-P8qOrbxNju8cqkeH7qRg0oQH7hfmvTG-0oSAQk,3996
205
205
  google/adk/utils/variant_utils.py,sha256=u9IuOn2aXG3ibDYshgLoogBXqH9Gd84ixArQoeLQiE8,1463
206
- google_adk-1.2.0.dist-info/entry_points.txt,sha256=zL9CU-6V2yQ2oc5lrcyj55ROHrpiIePsvQJ4H6SL-zI,43
207
- google_adk-1.2.0.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
208
- google_adk-1.2.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
209
- google_adk-1.2.0.dist-info/METADATA,sha256=L50ehARiFGu4v-L-PJmqPSuH2d5RPTDSP9db3gIItbo,9559
210
- google_adk-1.2.0.dist-info/RECORD,,
206
+ google_adk-1.2.1.dist-info/entry_points.txt,sha256=zL9CU-6V2yQ2oc5lrcyj55ROHrpiIePsvQJ4H6SL-zI,43
207
+ google_adk-1.2.1.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
208
+ google_adk-1.2.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
209
+ google_adk-1.2.1.dist-info/METADATA,sha256=34vmGBh7XuOlTqdTYv3e7LH5k9fU2yodBEufG5klJRU,9601
210
+ google_adk-1.2.1.dist-info/RECORD,,