Skip to content

Commit 91ec80c

Browse files
didier-durandcopybara-github
authored andcommitted
docs: fixing multiple typos
Merge #4221 ### Link to Issue or Description of Change N/A **2. Or, if no issue exists, describe the change:** Fixing various typos in .py files to improve quality: see commit diffs for details **Problem:** See above **Solution:** Fixing the typos ### Testing Plan N/A **Unit Tests:** N/A **Manual End-to-End (E2E) Tests:** N/A ### Checklist - [X] I have read the [CONTRIBUTING.md](https://github.com/google/adk-python/blob/main/CONTRIBUTING.md) document. - [X] I have performed a self-review of my own code. - [N/A] I have commented my code, particularly in hard-to-understand areas. - [N/A ] I have added tests that prove my fix is effective or that my feature works. - [N/A] New and existing unit tests pass locally with my changes. - [N/A] I have manually tested my changes end-to-end. - [N/A ] Any dependent changes have been merged and published in downstream modules. ### Additional context N/A COPYBARA_INTEGRATE_REVIEW=#4221 from didier-durand:fix-typos-e 1bcc8e0 PiperOrigin-RevId: 859332402
1 parent 295b345 commit 91ec80c

File tree

16 files changed

+28
-28
lines changed

16 files changed

+28
-28
lines changed

src/google/adk/agents/remote_a2a_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __init__(
134134
Args:
135135
name: Agent name (must be unique identifier)
136136
agent_card: AgentCard object, URL string, or file path string
137-
description: Agent description (auto-populated from card if empty)
137+
description: Agent description (autopopulated from card if empty)
138138
httpx_client: Optional shared HTTP client (will create own if not
139139
provided) [deprecated] Use a2a_client_factory instead.
140140
timeout: HTTP timeout in seconds

src/google/adk/cli/adk_web_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def _setup_gcp_telemetry(
395395
# TODO - use trace_to_cloud here as well once otel_to_cloud is no
396396
# longer experimental.
397397
enable_cloud_tracing=True,
398-
# TODO - reenable metrics once errors during shutdown are fixed.
398+
# TODO - re-enable metrics once errors during shutdown are fixed.
399399
enable_cloud_metrics=False,
400400
enable_cloud_logging=True,
401401
google_auth=(credentials, project_id),

src/google/adk/cli/cli_tools_click.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ def cli_web(
12991299
):
13001300
"""Starts a FastAPI server with Web UI for agents.
13011301
1302-
AGENTS_DIR: The directory of agents, where each sub-directory is a single
1302+
AGENTS_DIR: The directory of agents, where each subdirectory is a single
13031303
agent, containing at least `__init__.py` and `agent.py` files.
13041304
13051305
Example:
@@ -1366,7 +1366,7 @@ async def _lifespan(app: FastAPI):
13661366

13671367
@main.command("api_server")
13681368
@feature_options()
1369-
# The directory of agents, where each sub-directory is a single agent.
1369+
# The directory of agents, where each subdirectory is a single agent.
13701370
# By default, it is the current working directory
13711371
@click.argument(
13721372
"agents_dir",
@@ -1401,7 +1401,7 @@ def cli_api_server(
14011401
):
14021402
"""Starts a FastAPI server for agents.
14031403
1404-
AGENTS_DIR: The directory of agents, where each sub-directory is a single
1404+
AGENTS_DIR: The directory of agents, where each subdirectory is a single
14051405
agent, containing at least `__init__.py` and `agent.py` files.
14061406
14071407
Example:

src/google/adk/evaluation/eval_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class EvalConfig(BaseModel):
8989
In the sample below, `tool_trajectory_avg_score`, `response_match_score` and
9090
`final_response_match_v2` are the standard eval metric names, represented as
9191
keys in the dictionary. The values in the dictionary are the corresponding
92-
criterions. For the first two metrics, we use simple threshold as the criterion,
92+
criteria. For the first two metrics, we use simple threshold as the criterion,
9393
the third one uses `LlmAsAJudgeCriterion`.
9494
{
9595
"criteria": {

src/google/adk/evaluation/rubric_based_evaluator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class PerInvocationResultsAggregator(abc.ABC):
9393
"""An interface for aggregating per invocation samples.
9494
9595
AutoRaters that are backed by an LLM are known to have certain degree of
96-
unreliabilty to their responses. In order to counter that we sample the
96+
unreliability to their responses. In order to counter that we sample the
9797
autorater more than once for a single invocation.
9898
9999
The aggregator helps convert those multiple samples into a single result.
@@ -419,7 +419,7 @@ def aggregate_per_invocation_samples(
419419
"""Returns a combined result by aggregating multiple samples for the same invocation.
420420
421421
AutoRaters that are backed by an LLM are known to have certain degree of
422-
unreliabilty to their responses. In order to counter that we sample the
422+
unreliability to their responses. In order to counter that we sample the
423423
autorater more than once for a single invocation.
424424
425425
The aggregator helps convert those multiple samples into a single result.

src/google/adk/evaluation/simulation/per_turn_user_simulator_quality_v1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
5959
# Definition of Conversation History
6060
The Conversation History is the actual dialogue between the User Simulator and the Agent.
61-
The Conversation History may not be complete, but the exsisting dialogue should adhere to the Conversation Plan.
61+
The Conversation History may not be complete, but the existing dialogue should adhere to the Conversation Plan.
6262
The Conversation History may contain instances where the User Simulator troubleshoots an incorrect/inappropriate response from the Agent in order to enforce the Conversation Plan.
6363
The Conversation History is finished only when the User Simulator outputs `{stop_signal}` in its response. If this token is missing, the conversation between the User Simulator and the Agent has not finished, and more turns can be generated.
6464
@@ -171,7 +171,7 @@ def _parse_llm_response(response: str) -> Label:
171171
response,
172172
)
173173

174-
# If there was not match for "is_valid", return NOT_FOUND
174+
# If there was no match for "is_valid", return NOT_FOUND
175175
if is_valid_match is None:
176176
return Label.NOT_FOUND
177177

src/google/adk/flows/llm_flows/functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ async def _run_with_trace():
411411
function_response = altered_function_response
412412

413413
if tool.is_long_running:
414-
# Allow long running function to return None to not provide function
414+
# Allow long-running function to return None to not provide function
415415
# response.
416416
if not function_response:
417417
return None
@@ -894,7 +894,7 @@ def find_matching_function_call(
894894
)
895895
for i in range(len(events) - 2, -1, -1):
896896
event = events[i]
897-
# looking for the system long running request euc function call
897+
# looking for the system long-running request euc function call
898898
function_calls = event.get_function_calls()
899899
if not function_calls:
900900
continue

src/google/adk/memory/vertex_ai_rag_memory_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
or ``{rag_corpus_id}``
5353
similarity_top_k: The number of contexts to retrieve.
5454
vector_distance_threshold: Only returns contexts with vector distance
55-
smaller than the threshold..
55+
smaller than the threshold.
5656
"""
5757
self._vertex_rag_store = types.VertexRagStore(
5858
rag_resources=[

src/google/adk/models/google_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959

6060
class _ResourceExhaustedError(ClientError):
61-
"""Represents an resources exhausted error received from the Model."""
61+
"""Represents a resources exhausted error received from the Model."""
6262

6363
def __init__(
6464
self,

src/google/adk/models/lite_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
def _ensure_litellm_imported() -> None:
153153
"""Imports LiteLLM with safe defaults.
154154
155-
LiteLLM defaults to DEV mode, which auto-loads a local `.env` at import time.
155+
LiteLLM defaults to DEV mode, which autoloads a local `.env` at import time.
156156
ADK should not implicitly load `.env` just because LiteLLM is installed.
157157
158158
Users can opt into LiteLLM's default behavior by setting LITELLM_MODE=DEV.

0 commit comments

Comments
 (0)