Skip to content

Commit ecc1a59

Browse files
fix(agents): fix agent related doc/ sample issues (#463)
* fix(agents): fix agent related doc/ sample issues * fixes 405 --------- Co-authored-by: Lavi Nigam <[email protected]>
1 parent a86cff7 commit ecc1a59

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/deploy/cloud-run.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ To proceed, confirm that your agent code is configured as follows:
1616
1. Agent code is in a file called `agent.py` within your agent directory.
1717
2. Your agent variable is named `root_agent`.
1818
3. `__init__.py` is within your agent directory and contains `from . import agent`.
19+
4. Your `requirements.txt` file is present in the agent directory.
1920

2021
=== "Java"
2122

docs/tools/built-in-tools.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ to use built-in tools with other tools by using multiple agents:
117117
instruction="""
118118
You're a specialist in Code Execution
119119
""",
120-
code_executor=BuiltInCodeExecutor(),
120+
tools=[BuiltInCodeExecutor],
121121
)
122122
root_agent = Agent(
123123
name="RootAgent",
@@ -203,8 +203,7 @@ to use built-in tools with other tools by using multiple agents:
203203
name="RootAgent",
204204
model="gemini-2.0-flash",
205205
description="Root Agent",
206-
tools=[custom_function],
207-
code_executor=BuiltInCodeExecutor() # <-- not supported when used with tools
206+
tools=[custom_function, BuiltInCodeExecutor], # <-- BuiltInCodeExecutor not supported when used with tools
208207
)
209208
```
210209

@@ -244,7 +243,7 @@ is **not** currently supported:
244243
instruction="""
245244
You're a specialist in Code Execution
246245
""",
247-
code_executor=BuiltInCodeExecutor(),
246+
tools=[BuiltInCodeExecutor],
248247
)
249248
root_agent = Agent(
250249
name="RootAgent",

0 commit comments

Comments
 (0)