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 a82a468324..bb1c3b23a4 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 evaluations.""" 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 be4655e46b..94ca147653 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/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..5fafa1d41b 100644 --- a/src/google/adk/sessions/state.py +++ b/src/google/adk/sessions/state.py @@ -12,11 +12,12 @@ # 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 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 1c5cd79269..bda9fd0be8 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: