Agentic Tool
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
system Prompt Creator
Create prompt for the LLM to use. Specify to customize behavior
capture Nested Artifacts
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.