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) })

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