Name of the agent
Description of the agent
OptionalsubSub-agents that this agent can delegate to
OptionalbeforeCallback or list of callbacks to be invoked before the agent run
OptionalafterCallback or list of callbacks to be invoked after the agent run
OptionalmodelThe LLM model to use When not set, the agent will inherit the model from its ancestor
OptionalinstructionInstructions for the LLM model, guiding the agent's behavior
OptionalglobalInstructions for all the agents in the entire agent tree ONLY the global_instruction in root agent will take effect
OptionaltoolsTools available to this agent
OptionalcodeCode executor for this agent
OptionaldisallowDisallows LLM-controlled transferring to the parent agent
OptionaldisallowDisallows LLM-controlled transferring to the peer agents
OptionalincludeWhether to include contents in the model request
OptionaloutputThe output key in session state to store the output of the agent
OptionalplannerInstructs the agent to make a plan and execute it step by step
OptionalpluginsExtend or intercept the agent’s behavior. Each plugin may implement callbacks for model calls, tool calls, events, and agent lifecycle.
OptionalmemoryMemory service for long-term storage and retrieval
OptionalsessionSession service for managing conversations
OptionalartifactArtifact service for file storage and management
OptionaluserUser ID for the session
OptionalappApplication name
OptionalgenerateAdditional 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.
OptionalinputThe input schema when agent is used as a tool
OptionaloutputThe output schema when agent replies NOTE: when this is set, agent can ONLY reply and CANNOT use any tools
OptionalbeforeCallback or list of callbacks to be called before calling the LLM
OptionalafterCallback or list of callbacks to be called after calling the LLM
OptionalbeforeCallback or list of callbacks to be called before calling a tool
OptionalafterCallback or list of callbacks to be called after calling a tool
Configuration for LlmAgent