AgenticTool

constructor(name: String, description: String)

Create an agentic tool that will need to be customized to add tools (and possibly specify an LLM) to be useful.


constructor(definition: Tool.Definition, metadata: Tool.Metadata = Tool.Metadata.DEFAULT, llm: <Error class: unknown class> = LlmOptions(), tools: List<Tool> = emptyList(), systemPromptCreator: SystemPromptCreator = { defaultSystemPrompt(definition.description) }, captureNestedArtifacts: Boolean = false)

Parameters

definition

Tool definition (name, description, input schema)

metadata

Optional tool metadata

llm

Llm to use for orchestration

tools

Sub-tools available for the LLM to orchestrate

systemPromptCreator

Create prompt for the LLM to use. Specify to customize behavior

captureNestedArtifacts

Whether to capture artifacts from nested AgenticTools. Default is false, meaning only artifacts from leaf tools are captured. Set to true to capture all artifacts including those from nested agentic sub-tools.