LlmAgent
constructor(name: String, model: Model, description: String = "", subAgents: List<BaseAgent> = emptyList(), beforeAgentCallbacks: List<BeforeAgentCallback> = emptyList(), afterAgentCallbacks: List<AfterAgentCallback> = emptyList(), disallowTransferToParent: Boolean = false, disallowTransferToPeers: Boolean = false, tools: List<BaseTool> = emptyList(), toolsets: List<Toolset> = emptyList(), generateContentConfig: GenerateContentConfig? = null, instruction: Instruction? = null, staticInstruction: Content? = null, beforeModelCallbacks: List<BeforeModelCallback> = emptyList(), afterModelCallbacks: List<AfterModelCallback> = emptyList(), beforeToolCallbacks: List<BeforeToolCallback> = emptyList(), afterToolCallbacks: List<AfterToolCallback> = emptyList(), inputSchema: Schema? = null, outputSchema: Schema? = null, outputKey: String? = null, onModelErrorCallbacks: List<OnModelErrorCallback> = emptyList(), onToolErrorCallbacks: List<OnToolErrorCallback> = emptyList(), includeContents: LlmAgent.IncludeContents? = null, maxSteps: Int? = null, mode: AgentMode? = null)
Parameters
tools
The tools configured for this agent; the tools property also holds finish_task for a task agent and one tool per task or single-turn sub-agent.
includeContents
History the model sees. IncludeContents.NONE sends only the current turn; null means IncludeContents.DEFAULT, except that a single-turn workflow node then runs without history.