Skip to content

Commit 2e2d61b

Browse files
GWealecopybara-github
authored andcommitted
fix: Set max_output_tokens for the agent builder
PiperOrigin-RevId: 814317909
1 parent 65554d6 commit 2e2d61b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contributing/samples/adk_agent_builder_assistant/agent_builder_assistant.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def create_agent(
112112
instruction=instruction,
113113
model=model,
114114
tools=all_tools,
115+
generate_content_config=types.GenerateContextConfig(
116+
max_output_tokens=8192,
117+
),
115118
)
116119

117120
return agent

0 commit comments

Comments
 (0)