Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contributing/samples/adk_answering_agent/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def convert_gcs_to_https(gcs_uri: str) -> Optional[str]:
# Use the directory path if it is a index file
final_path_segment = os.path.dirname(path_after_docs)
else:
# Otherwise, use the file name without extention
# Otherwise, use the file name without extension
final_path_segment = path_after_docs.removesuffix(".md")

if final_path_segment and not final_path_segment.endswith("/"):
Expand Down
2 changes: 1 addition & 1 deletion llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15168,7 +15168,7 @@ Agent client received an event with long running function calls and check the st
return part.function_call

def get_function_response(event: Event, function_call_id: str) -> types.FunctionResponse:
# Get the function response for the fuction call with specified id.
# Get the function response for the function call with specified id.
if not event.content or not event.content.parts:
return
for part in event.content.parts:
Expand Down
10 changes: 5 additions & 5 deletions src/google/adk/a2a/converters/part_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ def convert_a2a_part_to_genai_part(
return None

if isinstance(part, a2a_types.DataPart):
# Conver the Data Part to funcall and function reponse.
# Convert the Data Part to funcall and function response.
# This is mainly for converting human in the loop and auth request and
# response.
# TODO once A2A defined how to suervice such information, migrate below
# logic accordinlgy
# TODO once A2A defined how to service such information, migrate below
# logic accordingly
if (
part.metadata
and _get_adk_metadata_key(A2A_DATA_PART_METADATA_TYPE_KEY)
Expand Down Expand Up @@ -188,11 +188,11 @@ def convert_genai_part_to_a2a_part(

return a2a_types.Part(root=a2a_part)

# Conver the funcall and function reponse to A2A DataPart.
# Convert the funcall and function response to A2A DataPart.
# This is mainly for converting human in the loop and auth request and
# response.
# TODO once A2A defined how to suervice such information, migrate below
# logic accordinlgy
# logic accordingly
if part.function_call:
return a2a_types.Part(
root=a2a_types.DataPart(
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/agents/base_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def _parse_config(
) -> Dict[str, Any]:
"""Parses the config and returns updated kwargs to construct the agent.

Sub-classes should override this method to use a custome agent config class.
Sub-classes should override this method to use a custom agent config class.

Args:
config: The config to parse.
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/evaluation/agent_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ async def _get_eval_results_by_eval_id(
def _get_eval_metric_results_with_invocation(
eval_results_per_eval_id: list[EvalCaseResult],
) -> dict[str, list[_EvalMetricResultWithInvocation]]:
"""Retruns _EvalMetricResultWithInvocation grouped by metric.
"""Returns _EvalMetricResultWithInvocation grouped by metric.

EvalCaseResult contain results for each metric per invocation.

Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/flows/llm_flows/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def run_async(
)
# Only set output_schema if no tools are specified. as of now, model don't
# support output_schema and tools together. we have a workaround to support
# both outoput_schema and tools at the same time. see
# both output_schema and tools at the same time. see
# _output_schema_processor.py for details
if agent.output_schema and not agent.tools:
llm_request.set_output_schema(agent.output_schema)
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/flows/llm_flows/contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _rearrange_events_for_latest_function_response(

function_responses = events[-1].get_function_responses()
if not function_responses:
# No need to process, since the latest event is not fuction_response.
# No need to process, since the latest event is not function_response.
return events

function_responses_ids = set()
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/models/google_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async def generate_content_async(
config=llm_request.config,
)

# for sse, similar as bidi (see receive method in gemini_llm_connecton.py),
# for sse, similar as bidi (see receive method in gemini_llm_connection.py),
# we need to mark those text content as partial and after all partial
# contents are sent, we send an accumulated event which contains all the
# previous partial content. The only difference is bidi rely on
Expand Down