8000 Merge branch 'main' into main · amitobe-code/adk-python@e80d0e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit e80d0e4

Browse files
authored
Merge branch 'main' into main
2 parents 972620d + 278b513 commit e80d0e4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/google/adk/cli/utils/evals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def convert_session_to_eval_format(session: Session) -> list[dict[str, Any]]:
6666
'tool_input': tool_input,
6767
})
6868
elif subsequent_part.text:
69-
# Also keep track of all the natural langauge responses that
69+
# Also keep track of all the natural language responses that
7070
# agent (or sub agents) generated.
7171
intermediate_agent_responses.append(
7272
{'author': event_author, 'text': subsequent_part.text}
@@ -75,7 +75,7 @@ def convert_session_to_eval_format(session: Session) -> list[dict[str, Any]]:
7575
# If we are here then either we are done reading all the events or we
7676
# encountered an event that had content authored by the end-user.
7777
# This, basically means an end of turn.
78-
# We assume that the last natural langauge intermediate response is the
78+
# We assume that the last natural language intermediate response is the
7979
# final response from the agent/model. We treat that as a reference.
8080
eval_case.append({
8181
'query': query,

src/google/adk/evaluation/response_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def evaluate(
4242
4343
A note on evaluation_criteria:
4444
`response_match_score`: This metric compares the agents final natural
45-
language reponse with the expected final response, stored in the
45+
language response with the expected final response, stored in the
4646
"reference" field in test/eval files. We use Rouge metric to compare the
4747
two responses.
4848

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _merge_function_response_events(
310310
function_response_events: A list of function_response events.
311311
NOTE: function_response_events must fulfill these requirements: 1. The
312312
list is in increasing order of timestamp; 2. the first event is the
313-
initial function_reponse event; 3. all later events should contain at
313+
initial function_response event; 3. all later events should contain at
314314
least one function_response part that related to the function_call
315315
event. (Note, 3. may not be true when aync function return some
316316
intermediate response, there could also be some intermediate model

src/google/adk/tests/unittests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def create(
231231
if not responses:
232232
return cls(responses=[])
233233
elif isinstance(responses[0], LlmResponse):
234-
# reponses is list[LlmResponse]
234+
# responses is list[LlmResponse]
235235
return cls(responses=responses)
236236
else:
237237
responses = [

0 commit comments

Comments
 (0)
0