10000 fix: typos in documentation · nag763/adk-python@7aaf811 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7aaf811

Browse files
crissinscopybara-github
authored andcommitted
fix: typos in documentation
Copybara import of the project: -- db506da by Cristopher Hugo Olivares Del Real <crissins041196@gmail.com>: fix: typos in documentation COPYBARA_INTEGRATE_REVIEW=google#840 from crissins:main 76a5e9b PiperOrigin-RevId: 765347788
1 parent 3930a4b commit 7aaf811

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/google/adk/agents/invocation_context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class LlmCallsLimitExceededError(Exception):
3939
class _InvocationCostManager(BaseModel):
4040
"""A container to keep track of the cost of invocation.
4141
42-
While we don't expected the metrics captured here to be a direct
43-
representatative of monetary cost incurred in executing the current
44-
invocation, but they, in someways have an indirect affect.
42+
While we don't expect the metrics captured here to be a direct
43+
representative of monetary cost incurred in executing the current
44+
invocation, they in some ways have an indirect effect.
4545
"""
4646

4747
_number_of_llm_calls: int = 0

src/google/adk/agents/sequential_agent.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
class SequentialAgent(BaseAgent):
30-
"""A shell agent that run its sub-agents in sequence."""
30+
"""A shell agent that runs its sub-agents in sequence."""
3131

3232
@override
3333
async def _run_async_impl(
@@ -43,11 +43,11 @@ async def _run_live_impl(
4343
) -> AsyncGenerator[Event, None]:
4444
"""Implementation for live SequentialAgent.
4545
46-
Compared to non-live case, live agents process a continous streams of audio
47-
or video, so it doesn't have a way to tell if it's finished and should pass
48-
to next agent or not. So we introduce a task_completed() function so the
46+
Compared to the non-live case, live agents process a continuous stream of audio
47+
or video, so there is no way to tell if it's finished and should pass
48+
to the next agent or not. So we introduce a task_completed() function so the
4949
model can call this function to signal that it's finished the task and we
50-
can move on to next agent.
50+
can move on to the next agent.
5151
5252
Args:
5353
ctx: The invocation context of the agent.
@@ -66,10 +66,10 @@ def task_completed():
6666
# Use function name to dedupe.
6767
if task_completed.__name__ not in sub_agent.tools:
6868
sub_agent.tools.append(task_completed)
69-
sub_agent.instruction += f"""If you finished the user' request
70-
according to its description, call {task_completed.__name__} function
69+
sub_agent.instruction += f"""If you finished the user's request
70+
according to its description, call the {task_completed.__name__} function
7171
to exit so the next agents can take over. When calling this function,
72-
do not generate any text other than the function call.'"""
72+
do not generate any text other than the function call."""
7373

7474
for sub_agent in self.sub_agents:
7575
async for event in sub_agent.run_live(ctx):

0 commit comments

Comments
 (0)
0