Simple Agentic Tool
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
system Prompt Creator
Create prompt for the LLM to use, given context and input
max Iterations
Maximum number of tool loop iterations
capture Nested Artifacts
Whether to capture artifacts from nested AgenticTools