SimpleAgenticTool

constructor(name: String, description: String)

Create a simple agentic tool with name and description.


constructor(definition: Tool.Definition, metadata: Tool.Metadata = Tool.Metadata.DEFAULT, llm: <Error class: unknown class> = LlmOptions(), tools: List<Tool> = emptyList(), domainToolSources: List<DomainToolSource<*>> = emptyList(), autoDiscovery: Boolean = false, systemPromptCreator: AgenticSystemPromptCreator = AgenticSystemPromptCreator { _, _ -> AgenticTool.defaultSystemPrompt(definition.description) }, maxIterations: Int = AgenticTool.DEFAULT_MAX_ITERATIONS, 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, given context and input

maxIterations

Maximum number of tool loop iterations

captureNestedArtifacts

Whether to capture artifacts from nested AgenticTools