Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions src/google/adk/agents/base_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def run_async(
self,
parent_context: InvocationContext,
) -> AsyncGenerator[Event, None]:
"""Entry method to run an agent via text-based conversaction.
"""Entry method to run an agent via text-based conversation.

Args:
parent_context: InvocationContext, the invocation context of the parent
Expand Down Expand Up @@ -152,7 +152,7 @@ async def run_live(
self,
parent_context: InvocationContext,
) -> AsyncGenerator[Event, None]:
"""Entry method to run an agent via video/audio-based conversaction.
"""Entry method to run an agent via video/audio-based conversation.

Args:
parent_context: InvocationContext, the invocation context of the parent
Expand All @@ -171,7 +171,7 @@ async def run_live(
async def _run_async_impl(
self, ctx: InvocationContext
) -> AsyncGenerator[Event, None]:
"""Core logic to run this agent via text-based conversaction.
"""Core logic to run this agent via text-based conversation.

Args:
ctx: InvocationContext, the invocation context for this agent.
Expand All @@ -187,7 +187,7 @@ async def _run_async_impl(
async def _run_live_impl(
self, ctx: InvocationContext
) -> AsyncGenerator[Event, None]:
"""Core logic to run this agent via video/audio-based conversaction.
"""Core logic to run this agent via video/audio-based conversation.

Args:
ctx: InvocationContext, the invocation context for this agent.
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/agents/invocation_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class InvocationContext(BaseModel):
agent_2, and agent_2 is the parent of agent_3.

Branch is used when multiple sub-agents shouldn't see their peer agents'
conversaction history.
conversation history.
"""
agent: BaseAgent
"""The current agent of this invocation context. Readonly."""
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/agents/remote_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class RemoteAgent(BaseAgent):
sub_agents: list[BaseAgent] = Field(
default_factory=list, init=False, frozen=True
)
"""Sub-agent is dsiabled in RemoteAgent."""
"""Sub-agent is disabled in RemoteAgent."""

@override
async def _run_async_impl(
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/agents/run_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class RunConfig(BaseModel):
"""Speech configuration for the live agent."""

response_modalities: Optional[list[str]] = None
"""The output modalities. If not set, its default to AUDIO."""
"""The output modalities. If not set, it's default to AUDIO."""

save_input_blobs_as_artifacts: bool = False
"""Whether or not to save the input blobs as artifacts."""
Expand Down
4 changes: 2 additions & 2 deletions src/google/adk/auth/auth_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def run_async(

for i in range(len(events) - 2, -1, -1):
event = events[i]
# looking for the system long running reqeust euc function call
# looking for the system long running request euc function call
function_calls = event.get_function_calls()
if not function_calls:
continue
Expand All @@ -92,7 +92,7 @@ async def run_async(
if not tools_to_resume:
continue

# found the the system long running reqeust euc function call
# found the the system long running request euc function call
# looking for original function call that requests euc
for j in range(i - 1, -1, -1):
event = events[j]
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/auth/auth_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


class AuthConfig(BaseModel):
"""The auth config sent by tool asking client to collect auth credentails and
"""The auth config sent by tool asking client to collect auth credentials and

adk and client will help to fill in the response
"""
Expand Down
4 changes: 2 additions & 2 deletions src/google/adk/cli/cli_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ def get_evaluation_criteria_or_default(


def get_root_agent(agent_module_file_path: str) -> Agent:
"""Returns root agent given the agetn module."""
"""Returns root agent given the agent module."""
agent_module = _get_agent_module(agent_module_file_path)
root_agent = agent_module.agent.root_agent
return root_agent


def try_get_reset_func(agent_module_file_path: str) -> Any:
"""Returns reset function for the agent, if present, given the agetn module."""
"""Returns reset function for the agent, if present, given the agent module."""
agent_module = _get_agent_module(agent_module_file_path)
reset_func = getattr(agent_module.agent, "reset_data", None)
return reset_func
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/cli/cli_tools_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def cli_eval(
EvalMetric(metric_name=metric_name, threshold=threshold)
)

print(f"Using evaluation creiteria: {evaluation_criteria}")
print(f"Using evaluation criteria: {evaluation_criteria}")

root_agent = get_root_agent(agent_module_file_path)
reset_func = try_get_reset_func(agent_module_file_path)
Expand Down
4 changes: 2 additions & 2 deletions src/google/adk/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#
# We expect that the underlying GenAI SDK will provide a certain
# level of tracing and logging telemetry aligned with Open Telemetry
# Semantic Conventions (such as logging prompts, respones, request
# properties, etc.) and so the information that is recorded by the
# Semantic Conventions (such as logging prompts, responses,
# request properties, etc.) and so the information that is recorded by the
# Agent Development Kit should be focused on the higher-level
# constructs of the framework that are not observable by the SDK.

Expand Down