Skip to content

Commit e1e652d

Browse files
google-genai-botcopybara-github
authored andcommitted
docs: update output_schema docstring to reflect support for tools and output_schema together
PiperOrigin-RevId: 907857917
1 parent ed8b31c commit e1e652d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/google/adk/agents/llm_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,9 @@ class LlmAgent(BaseAgent):
339339
- Schema: Google's Schema type
340340
341341
NOTE:
342-
When this is set, agent can ONLY reply and CANNOT use any tools, such as
343-
function tools, RAGs, agent transfer, etc.
342+
The ADK supports using `output_schema` and `tools` together. It works by
343+
exposing tools during the thought loop and enforcing structure only on the
344+
final output.
344345
"""
345346
output_key: Optional[str] = None
346347
"""The key in session state to store the output of the agent.

0 commit comments

Comments
 (0)