From 0798a74dfae064cc1d5e61f322a68010f621a3ab Mon Sep 17 00:00:00 2001 From: "hgyun.lee" Date: Mon, 3 Nov 2025 22:11:42 +0900 Subject: [PATCH 1/3] Fix typo --- src/google/adk/agents/parallel_agent.py | 2 +- src/google/adk/evaluation/base_eval_service.py | 2 +- src/google/adk/evaluation/eval_sets_manager.py | 2 +- src/google/adk/evaluation/evaluator.py | 2 +- src/google/adk/flows/llm_flows/functions.py | 2 +- src/google/adk/sessions/state.py | 2 +- src/google/adk/telemetry/tracing.py | 2 +- tests/unittests/runners/test_pause_invocation.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/google/adk/agents/parallel_agent.py b/src/google/adk/agents/parallel_agent.py index cbbb0333d2..f7270a75c9 100644 --- a/src/google/adk/agents/parallel_agent.py +++ b/src/google/adk/agents/parallel_agent.py @@ -160,7 +160,7 @@ async def process_an_agent(events_for_one_agent): class ParallelAgent(BaseAgent): - """A shell agent that run its sub-agents in parallel in isolated manner. + """A shell agent that runs its sub-agents in parallel in an isolated manner. This approach is beneficial for scenarios requiring multiple perspectives or attempts on a single task, such as: diff --git a/src/google/adk/evaluation/base_eval_service.py b/src/google/adk/evaluation/base_eval_service.py index 3d576ab2d6..ff2147328e 100644 --- a/src/google/adk/evaluation/base_eval_service.py +++ b/src/google/adk/evaluation/base_eval_service.py @@ -31,7 +31,7 @@ class EvaluateConfig(BaseModel): - """Contains configurations need to run an evaluations.""" + """Contains configurations needed to run an evaluation.""" model_config = ConfigDict( alias_generator=alias_generators.to_camel, diff --git a/src/google/adk/evaluation/eval_sets_manager.py b/src/google/adk/evaluation/eval_sets_manager.py index 445cafd82f..77da8457de 100644 --- a/src/google/adk/evaluation/eval_sets_manager.py +++ b/src/google/adk/evaluation/eval_sets_manager.py @@ -23,7 +23,7 @@ class EvalSetsManager(ABC): - """An interface to manage an Eval Sets.""" + """An interface to manage Eval Sets.""" @abstractmethod def get_eval_set(self, app_name: str, eval_set_id: str) -> Optional[EvalSet]: diff --git a/src/google/adk/evaluation/evaluator.py b/src/google/adk/evaluation/evaluator.py index 2c007fe4a1..7a97855bec 100644 --- a/src/google/adk/evaluation/evaluator.py +++ b/src/google/adk/evaluation/evaluator.py @@ -54,7 +54,7 @@ class EvaluationResult(BaseModel): class Evaluator(ABC): - """A merics evaluator interface.""" + """A metrics evaluator interface.""" criterion_type: ClassVar[type[BaseCriterion]] = BaseCriterion diff --git a/src/google/adk/flows/llm_flows/functions.py b/src/google/adk/flows/llm_flows/functions.py index 95d1e7901b..c5d2eea96b 100644 --- a/src/google/adk/flows/llm_flows/functions.py +++ b/src/google/adk/flows/llm_flows/functions.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Handles function callings for LLM flow.""" +"""Handles function calling for LLM flow.""" from __future__ import annotations diff --git a/src/google/adk/sessions/state.py b/src/google/adk/sessions/state.py index 86eb673aca..8864213a7a 100644 --- a/src/google/adk/sessions/state.py +++ b/src/google/adk/sessions/state.py @@ -16,7 +16,7 @@ class State: - """A state dict that maintain the current value and the pending-commit delta.""" + """A state dict that maintains the current value and the pending-commit delta.""" APP_PREFIX = "app:" USER_PREFIX = "user:" diff --git a/src/google/adk/telemetry/tracing.py b/src/google/adk/telemetry/tracing.py index e45c24aee6..a2b6ceaaf8 100644 --- a/src/google/adk/telemetry/tracing.py +++ b/src/google/adk/telemetry/tracing.py @@ -86,7 +86,7 @@ def _safe_json_serialize(obj) -> str: def trace_agent_invocation( span: trace.Span, agent: BaseAgent, ctx: InvocationContext ) -> None: - """Sets span attributes immedietely available on agent invocation according to OTEL semconv version 1.37. + """Sets span attributes immediately available on agent invocation according to OTEL semconv version 1.37. Args: span: Span on which attributes are set. diff --git a/tests/unittests/runners/test_pause_invocation.py b/tests/unittests/runners/test_pause_invocation.py index f0c43f075e..79a42c1967 100644 --- a/tests/unittests/runners/test_pause_invocation.py +++ b/tests/unittests/runners/test_pause_invocation.py @@ -469,7 +469,7 @@ def test_pause_on_long_running_function_call( class TestPauseInvocationWithWithTransferLoop(BasePauseInvocationTest): - """Tests the pausing the invocation when the agent transfer forms a loop.""" + """Tests pausing the invocation when the agent transfer forms a loop.""" @pytest.fixture def agent(self) -> LlmAgent: From a5f15b703e0100b6ab32058f3cf6d713f8a1c456 Mon Sep 17 00:00:00 2001 From: "hgyun.lee" Date: Mon, 3 Nov 2025 22:15:21 +0900 Subject: [PATCH 2/3] fix --- src/google/adk/evaluation/base_eval_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/adk/evaluation/base_eval_service.py b/src/google/adk/evaluation/base_eval_service.py index ff2147328e..d4a5cd07a9 100644 --- a/src/google/adk/evaluation/base_eval_service.py +++ b/src/google/adk/evaluation/base_eval_service.py @@ -31,7 +31,7 @@ class EvaluateConfig(BaseModel): - """Contains configurations needed to run an evaluation.""" + """Contains configurations needed to run evaluations.""" model_config = ConfigDict( alias_generator=alias_generators.to_camel, From 164ab827cb828d87f36fc85498b1639f370821f8 Mon Sep 17 00:00:00 2001 From: "hgyun.lee" Date: Tue, 4 Nov 2025 10:39:48 +0900 Subject: [PATCH 3/3] Add __future__ to state.py --- src/google/adk/sessions/state.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/google/adk/sessions/state.py b/src/google/adk/sessions/state.py index 8864213a7a..5fafa1d41b 100644 --- a/src/google/adk/sessions/state.py +++ b/src/google/adk/sessions/state.py @@ -12,8 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -from typing import Any +from __future__ import annotations +from typing import Any class State: """A state dict that maintains the current value and the pending-commit delta."""