diff --git a/contributing/samples/adk_answering_agent/utils.py b/contributing/samples/adk_answering_agent/utils.py index 029e5f1293..f4c65fc22f 100644 --- a/contributing/samples/adk_answering_agent/utils.py +++ b/contributing/samples/adk_answering_agent/utils.py @@ -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("/"): diff --git a/llms-full.txt b/llms-full.txt index 4ce28660f8..a053d5d778 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -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: diff --git a/src/google/adk/a2a/converters/part_converter.py b/src/google/adk/a2a/converters/part_converter.py index ee77fa0b99..d796cb5ff1 100644 --- a/src/google/adk/a2a/converters/part_converter.py +++ b/src/google/adk/a2a/converters/part_converter.py @@ -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) @@ -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( diff --git a/src/google/adk/agents/base_agent.py b/src/google/adk/agents/base_agent.py index 601dce2164..cc2257ffba 100644 --- a/src/google/adk/agents/base_agent.py +++ b/src/google/adk/agents/base_agent.py @@ -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. diff --git a/src/google/adk/evaluation/agent_evaluator.py b/src/google/adk/evaluation/agent_evaluator.py index 710d6e48be..124315712e 100644 --- a/src/google/adk/evaluation/agent_evaluator.py +++ b/src/google/adk/evaluation/agent_evaluator.py @@ -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. diff --git a/src/google/adk/flows/llm_flows/basic.py b/src/google/adk/flows/llm_flows/basic.py index 549c6d8754..f1539052cc 100644 --- a/src/google/adk/flows/llm_flows/basic.py +++ b/src/google/adk/flows/llm_flows/basic.py @@ -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) diff --git a/src/google/adk/flows/llm_flows/contents.py b/src/google/adk/flows/llm_flows/contents.py index 4aa776a22f..ecd212357b 100644 --- a/src/google/adk/flows/llm_flows/contents.py +++ b/src/google/adk/flows/llm_flows/contents.py @@ -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() diff --git a/src/google/adk/models/google_llm.py b/src/google/adk/models/google_llm.py index be2238b464..d6346deb9b 100644 --- a/src/google/adk/models/google_llm.py +++ b/src/google/adk/models/google_llm.py @@ -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