Skip to main content
Use an agent node to call an agent in your agentic workflow. To configure an agent node, call the agent() method in your agentic workflow and define the following parameters:
string
required
The name of the agent node.
string
required
The agent to call in the agentic workflow.
string
The display name of the agent node.
string
The title of the agent node.
string
The instruction sent to the agent. Defaults to "Follow the agent instructions".
string
The description of the agent node.
type[BaseModel]
The input schema for the agent node.
type[BaseModel]
The output schema for the agent node.
string
Additional guidelines for the agent.
DataMap
Input mappings defined as a structured collection of Assignment objects.
string
Controls how the agent node manages the conversation thread across invocations. Accepted values:
  • REUSE_AND_CORRELATE — reuses the same thread across subsequent calls to this agent node, preserving conversational context. This is the default.
  • CREATE_ALWAYS — creates a new isolated thread on every call. Use this to keep each invocation stateless.
When you do not set this parameter explicitly, the ADK defaults to REUSE_AND_CORRELATE and emits a warning. Set the parameter explicitly to suppress the warning.
The following example shows how to configure an agent node in an agentic workflow:
Python