Skip to content

Commit 1664b45

Browse files
n1lanjancopybara-github
authored andcommitted
Copybara import of the project:
-- 16994cb by Nilanjan De <[email protected]>: chore: fix typos COPYBARA_INTEGRATE_REVIEW=#272 from n1lanjan:fix-typos a1ab655 PiperOrigin-RevId: 749690489
1 parent 23f0383 commit 1664b45

15 files changed

+23
-24
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
* Initial release of the Agent Development Kit (ADK).
4646
* Multi-agent, agent-as-workflow, and custom agent support
4747
* Tool authentication support
48-
* Rich tool support, e.g. bult-in tools, google-cloud tools, third-party tools, and MCP tools
48+
* Rich tool support, e.g. built-in tools, google-cloud tools, third-party tools, and MCP tools
4949
* Rich callback support
5050
* Built-in code execution capability
5151
* Asynchronous runtime and execution
5252
* Session, and memory support
5353
* Built-in evaluation support
54-
* Development UI that makes local devlopment easy
54+
* Development UI that makes local development easy
5555
* Deploy to Google Cloud Run, Agent Engine
5656
* (Experimental) Live(Bidi) auido/video agent support and Compositional Function Calling(CFC) support

pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ confidence=
4545
# can either give multiple identifiers separated by comma (,) or put this
4646
# option multiple times (only on the command line, not in the configuration
4747
# file where it should appear only once).You can also use "--disable=all" to
48-
# disable everything first and then reenable specific checks. For example, if
48+
# disable everything first and then re-enable specific checks. For example, if
4949
# you want to run only the similarities checker, you can use "--disable=all
5050
# --enable=similarities". If you want to run only the classes checker, but have
5151
# no Warning level messages displayed, use"--disable=all --enable=classes

src/google/adk/cli/cli_eval.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def run_evals(
256256
)
257257

258258
if final_eval_status == EvalStatus.PASSED:
259-
result = "✅ Passsed"
259+
result = "✅ Passed"
260260
else:
261261
result = "❌ Failed"
262262

src/google/adk/evaluation/agent_evaluator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def load_json(file_path: str) -> Union[Dict, List]:
5555

5656

5757
class AgentEvaluator:
58-
"""An evaluator for Agents, mainly intented for helping with test cases."""
58+
"""An evaluator for Agents, mainly intended for helping with test cases."""
5959

6060
@staticmethod
6161
def find_config_for_test_file(test_file: str):
@@ -91,7 +91,7 @@ def evaluate(
9191
look for 'root_agent' in the loaded module.
9292
eval_dataset: The eval data set. This can be either a string representing
9393
full path to the file containing eval dataset, or a directory that is
94-
recusively explored for all files that have a `.test.json` suffix.
94+
recursively explored for all files that have a `.test.json` suffix.
9595
num_runs: Number of times all entries in the eval dataset should be
9696
assessed.
9797
agent_name: The name of the agent.

src/google/adk/evaluation/response_evaluator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def evaluate(
3535
Args:
3636
raw_eval_dataset: The dataset that will be evaluated.
3737
evaluation_criteria: The evaluation criteria to be used. This method
38-
support two criterias, `response_evaluation_score` and
38+
support two criteria, `response_evaluation_score` and
3939
`response_match_score`.
4040
print_detailed_results: Prints detailed results on the console. This is
4141
usually helpful during debugging.
@@ -56,7 +56,7 @@ def evaluate(
5656
Value range: [0, 5], where 0 means that the agent's response is not
5757
coherent, while 5 means it is . High values are good.
5858
A note on raw_eval_dataset:
59-
The dataset should be a list session, where each sesssion is represented
59+
The dataset should be a list session, where each session is represented
6060
as a list of interaction that need evaluation. Each evaluation is
6161
represented as a dictionary that is expected to have values for the
6262
following keys:

src/google/adk/evaluation/trajectory_evaluator.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ def evaluate(
3131
):
3232
r"""Returns the mean tool use accuracy of the eval dataset.
3333
34-
Tool use accuracy is calculated by comparing the expected and actuall tool
35-
use trajectories. An exact match scores a 1, 0 otherwise. The final number
36-
is an
37-
average of these individual scores.
34+
Tool use accuracy is calculated by comparing the expected and the actual
35+
tool use trajectories. An exact match scores a 1, 0 otherwise. The final
36+
number is an average of these individual scores.
3837
3938
Value range: [0, 1], where 0 is means none of the too use entries aligned,
4039
and 1 would mean all of them aligned. Higher value is good.
@@ -45,7 +44,7 @@ def evaluate(
4544
usually helpful during debugging.
4645
4746
A note on eval_dataset:
48-
The dataset should be a list session, where each sesssion is represented
47+
The dataset should be a list session, where each session is represented
4948
as a list of interaction that need evaluation. Each evaluation is
5049
represented as a dictionary that is expected to have values for the
5150
following keys:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _build_target_agents_instructions(
9494
9595
If another agent is better for answering the question according to its
9696
description, call `{_TRANSFER_TO_AGENT_FUNCTION_NAME}` function to transfer the
97-
question to that agent. When transfering, do not generate any text other than
97+
question to that agent. When transferring, do not generate any text other than
9898
the function call.
9999
"""
100100

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def run_live(
115115
yield event
116116
# send back the function response
117117
if event.get_function_responses():
118-
logger.debug('Sending back last function resonse event: %s', event)
118+
logger.debug('Sending back last function response event: %s', event)
119119
invocation_context.live_request_queue.send_content(event.content)
120120
if (
121121
event.content

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _rearrange_events_for_latest_function_response(
111111
"""Rearrange the events for the latest function_response.
112112
113113
If the latest function_response is for an async function_call, all events
114-
bewteen the initial function_call and the latest function_response will be
114+
between the initial function_call and the latest function_response will be
115115
removed.
116116
117117
Args:

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ async def run_async(
5252
# Appends global instructions if set.
5353
if (
5454
isinstance(root_agent, LlmAgent) and root_agent.global_instruction
55-
): # not emtpy str
55+
): # not empty str
5656
raw_si = root_agent.canonical_global_instruction(
5757
ReadonlyContext(invocation_context)
5858
)
5959
si = _populate_values(raw_si, invocation_context)
6060
llm_request.append_instructions([si])
6161

6262
# Appends agent instructions if set.
63-
if agent.instruction: # not emtpy str
63+
if agent.instruction: # not empty str
6464
raw_si = agent.canonical_instruction(ReadonlyContext(invocation_context))
6565
si = _populate_values(raw_si, invocation_context)
6666
llm_request.append_instructions([si])

src/google/adk/models/gemini_llm_connection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def receive(self) -> AsyncGenerator[LlmResponse, None]:
152152
):
153153
# TODO: Right now, we just support output_transcription without
154154
# changing interface and data protocol. Later, we can consider to
155-
# support output_transcription as a separete field in LlmResponse.
155+
# support output_transcription as a separate field in LlmResponse.
156156

157157
# Transcription is always considered as partial event
158158
# We rely on other control signals to determine when to yield the
@@ -179,7 +179,7 @@ async def receive(self) -> AsyncGenerator[LlmResponse, None]:
179179
# in case of empty content or parts, we sill surface it
180180
# in case it's an interrupted message, we merge the previous partial
181181
# text. Other we don't merge. because content can be none when model
182-
# safty threshold is triggered
182+
# safety threshold is triggered
183183
if message.server_content.interrupted and text:
184184
yield self.__build_full_text_response(text)
185185
text = ''

src/google/adk/sessions/database_session_service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __init__(self, db_url: str):
217217
"""
218218
# 1. Create DB engine for db connection
219219
# 2. Create all tables based on schema
220-
# 3. Initialize all properies
220+
# 3. Initialize all properties
221221

222222
try:
223223
db_engine = create_engine(db_url)

src/google/adk/sessions/state.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, value: dict[str, Any], delta: dict[str, Any]):
2626
"""
2727
Args:
2828
value: The current value of the state dict.
29-
delta: The delta change to the current value that hasn't been commited.
29+
delta: The delta change to the current value that hasn't been committed.
3030
"""
3131
self._value = value
3232
self._delta = delta

src/google/adk/tools/load_artifacts_tool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _append_artifacts_to_llm_request(
8989
than the function call.
9090
"""])
9191

92-
# Attache the content of the artifacts if the model requests them.
92+
# Attach the content of the artifacts if the model requests them.
9393
# This only adds the content to the model request, instead of the session.
9494
if llm_request.contents and llm_request.contents[-1].parts:
9595
function_response = llm_request.contents[-1].parts[0].function_response

src/google/adk/tools/openapi_tool/auth/credential_exchangers/oauth2_exchanger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def generate_auth_token(
6666
6767
Returns:
6868
An AuthCredential object containing the HTTP bearer access token. If the
69-
HTTO bearer token cannot be generated, return the origianl credential
69+
HTTP bearer token cannot be generated, return the original credential.
7070
"""
7171

7272
if "access_token" not in auth_credential.oauth2.token:

0 commit comments

Comments
 (0)