OptionalafterOptionalafterCallbacks to be called after calling the LLM.
OptionalafterCallbacks to be called after calling the tool.
OptionalbeforeOptionalbeforeCallbacks to be called before calling the LLM.
OptionalbeforeCallbacks to be called before calling the tool.
OptionalcodeInstructs the agent to make a plan and execute it step by step.
OptionaldescriptionOptionaldisallowDisallows LLM-controlled transferring to the parent agent.
NOTE: Setting this as True also prevents this agent to continue reply to the end-user. This behavior prevents one-way transfer, in which end-user may be stuck with one agent that cannot transfer to other agents in the agent tree.
OptionaldisallowDisallows LLM-controlled transferring to the peer agents.
OptionalgenerateThe additional content generation configurations.
NOTE: not all fields are usable, e.g. tools must be configured via
tools, thinking_config must be configured via planner in LlmAgent.
For example: use this config to adjust model temperature, configure safety settings, etc.
OptionalglobalInstructions for all the agents in the entire agent tree.
ONLY the globalInstruction in root agent will take effect.
For example: use globalInstruction to make all agents have a stable identity or personality.
OptionalincludeControls content inclusion in model requests.
Options: default: Model receives relevant conversation history none: Model receives no prior history, operates solely on current instruction and input
OptionalinputThe input schema when agent is used as a tool.
OptionalinstructionInstructions for the LLM model, guiding the agent's behavior.
OptionalmodelThe model to use for the agent.
OptionaloutputThe key in session state to store the output of the agent.
Typically use cases:
OptionaloutputThe output schema when agent replies.
OptionalparentOptionalrequestProcessors to run before the LLM request is sent.
OptionalresponseProcessors to run after the LLM response is received.
OptionalsubOptionaltoolsTools available to this agent.
The configuration options for creating an LLM-based agent.