Skip to content

Commit 1d80d32

Browse files
jsorefhangfei
authored andcommitted
chore: Fix spelling in src
Merge #3382 This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling) Note: while I use tooling to identify errors, the tooling doesn't _actually_ provide the corrections, I'm picking them on my own. I'm a human, and I may make mistakes. ### Testing Plan The misspellings have been reported at https://github.com/jsoref/adk-python/actions/runs/19056081305/attempts/1#summary-54426435973 The action reports that the changes in this PR would make it happy: https://github.com/jsoref/adk-python/actions/runs/19056081446/attempts/1#summary-54426436321 **Unit Tests:** - [ ] I have added or updated unit tests for my change. - [ ] All unit tests pass locally. _Please include a summary of passed `pytest` results._ **Manual End-to-End (E2E) Tests:** _Please provide instructions on how to manually test your changes, including any necessary setup or configuration. Please provide logs or screenshots to help reviewers better understand the fix._ ### 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. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] New and existing unit tests pass locally with my changes. - [ ] I have manually tested my changes end-to-end. - [ ] Any dependent changes have been merged and published in downstream modules. ### Additional context - follow-up to #2447 Co-authored-by: Hangfei Lin <[email protected]> COPYBARA_INTEGRATE_REVIEW=#3382 from jsoref:spelling 3df5932 PiperOrigin-RevId: 828686941
1 parent 48681cb commit 1d80d32

38 files changed

+60
-60
lines changed

src/google/adk/agents/base_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _load_agent_state(
171171
state_type: The type of the agent state.
172172
173173
Returns:
174-
The current state if resuming, otherwise None.
174+
The current state if resuming; otherwise, None.
175175
"""
176176
if not ctx.is_resumable:
177177
return None

src/google/adk/agents/config_schemas/AgentConfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@
12141214
}
12151215
],
12161216
"default": null,
1217-
"description": "The unique id of the function call. If populated, the client to execute the\n `function_call` and return the response with the matching `id`.",
1217+
"description": "The unique ID of the function call. If populated, the client to execute the\n `function_call` and return the response with the matching `id`.",
12181218
"title": "Id"
12191219
},
12201220
"args": {
@@ -1426,7 +1426,7 @@
14261426
}
14271427
],
14281428
"default": null,
1429-
"description": "Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.",
1429+
"description": "Optional. The ID of the function call this response is for. Populated by the client to match the corresponding function call `id`.",
14301430
"title": "Id"
14311431
},
14321432
"name": {

src/google/adk/agents/llm_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ async def _run_async_impl(
442442
) -> AsyncGenerator[Event, None]:
443443
agent_state = self._load_agent_state(ctx, BaseAgentState)
444444

445-
# If there is an sub-agent to resume, run it and then end the current
445+
# If there is a sub-agent to resume, run it and then end the current
446446
# agent.
447447
if agent_state is not None and (
448448
agent_to_transfer := self._get_subagent_to_resume(ctx)

src/google/adk/agents/remote_a2a_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ async def _handle_a2a_response(
437437
event = convert_a2a_task_to_event(task, self.name, ctx)
438438
else:
439439
# This is a streaming update without a message (e.g. status change)
440-
# or an partial artifact update. We don't emit an event for these
440+
# or a partial artifact update. We don't emit an event for these
441441
# for now.
442442
return None
443443

@@ -532,7 +532,7 @@ async def _run_async_impl(
532532
event.custom_metadata[A2A_METADATA_PREFIX + "request"] = (
533533
a2a_request.model_dump(exclude_none=True, by_alias=True)
534534
)
535-
# If the response is a ClientEvent, record the task state, otherwise
535+
# If the response is a ClientEvent, record the task state; otherwise,
536536
# record the message object.
537537
if isinstance(a2a_response, tuple):
538538
event.custom_metadata[A2A_METADATA_PREFIX + "response"] = (

src/google/adk/agents/run_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class StreamingMode(Enum):
3838
class RunConfig(BaseModel):
3939
"""Configs for runtime behavior of agents.
4040
41-
The configs here will be overriden by agent-specific configurations.
41+
The configs here will be overridden by agent-specific configurations.
4242
"""
4343

4444
model_config = ConfigDict(

src/google/adk/apps/base_events_summarizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ async def maybe_summarize_events(
3535
If compaction failed, return None. Otherwise, compact into a content and
3636
return it.
3737
38-
This method will summarize the events and return a new summray event
38+
This method will summarize the events and return a new summary event
3939
indicating the range of events it summarized.
4040
4141
Args:
4242
events: Events to compact.
4343
4444
Returns:
45-
The new compacted event, or None if no compaction happended.
45+
The new compacted event, or None if no compaction happened.
4646
"""
4747
raise NotImplementedError()

src/google/adk/cli/cli_tools_click.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def cli_eval(
501501
*Eval Set File Path*
502502
For each file, all evals will be run by default.
503503
504-
If you want to run only specific evals from a eval set, first create a comma
504+
If you want to run only specific evals from an eval set, first create a comma
505505
separated list of eval names and then add that as a suffix to the eval set
506506
file name, demarcated by a `:`.
507507
@@ -521,7 +521,7 @@ def cli_eval(
521521
*Eval Set ID*
522522
For each eval set, all evals will be run by default.
523523
524-
If you want to run only specific evals from a eval set, first create a comma
524+
If you want to run only specific evals from an eval set, first create a comma
525525
separated list of eval names and then add that as a suffix to the eval set
526526
file name, demarcated by a `:`.
527527
@@ -1598,7 +1598,7 @@ def cli_deploy_cloud_run(
15981598
default="",
15991599
help=(
16001600
"Optional. The filepath to the `.agent_engine_config.json` file to use."
1601-
" The values in this file will be overriden by the values set by other"
1601+
" The values in this file will be overridden by the values set by other"
16021602
" flags. (default: the `.agent_engine_config.json` file in the `agent`"
16031603
" directory, if any.)"
16041604
),

src/google/adk/cli/service_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _parse_agent_engine_kwargs(
5151
"""Helper to parse agent engine resource name."""
5252
if not uri_part:
5353
raise ValueError(
54-
"Agent engine resource name or resource id can not be empty."
54+
"Agent engine resource name or resource id cannot be empty."
5555
)
5656
if "/" in uri_part:
5757
parts = uri_part.split("/")
@@ -192,7 +192,7 @@ def rag_memory_factory(uri: str, **kwargs):
192192

193193
rag_corpus = urlparse(uri).netloc
194194
if not rag_corpus:
195-
raise ValueError("Rag corpus can not be empty.")
195+
raise ValueError("Rag corpus cannot be empty.")
196196
agents_dir = kwargs.get("agents_dir")
197197
project, location = _load_gcp_config(agents_dir, "RAG memory service")
198198
return VertexAiRagMemoryService(

src/google/adk/evaluation/agent_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async def evaluate_eval_set(
123123
eval_set: The eval set.
124124
criteria: Evaluation criteria, a dictionary of metric names to their
125125
respective thresholds. This field is deprecated.
126-
eval_config: The evauation config.
126+
eval_config: The evaluation config.
127127
num_runs: Number of times all entries in the eval dataset should be
128128
assessed.
129129
agent_name: The name of the agent, if trying to evaluate something other

src/google/adk/evaluation/eval_metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class JudgeModelOptions(EvalBaseModel):
9090

9191

9292
class BaseCriterion(BaseModel):
93-
"""Base creterion to use for an Eval Metric."""
93+
"""Base criterion to use for an Eval Metric."""
9494

9595
model_config = ConfigDict(
9696
alias_generator=alias_generators.to_camel,
@@ -126,7 +126,7 @@ class RubricsBasedCriterion(BaseCriterion):
126126
"Rubrics to be used by Metric. Not all metrics rely on rubrics, but"
127127
" metrics like `rubric_based_final_response_quality_v1` do. Metrics"
128128
" that don't use Rubrics, will just ignore this field, if specified."
129-
" Metrics that do use rubrics will raise an execption, if they are"
129+
" Metrics that do use rubrics will raise an exception, if they are"
130130
" not specified."
131131
),
132132
)

0 commit comments

Comments
 (0)