Llm Tool
annotation class LlmTool(val description: String = "", val name: String = "", val returnDirect: Boolean = false, val category: String = "")
Marks a method as a tool that can be invoked by an LLM. Use with com.embabel.agent.api.tool.Tool.Companion.fromInstance or com.embabel.agent.api.tool.Tool.Companion.fromMethod to create Tool instances.
Types
Properties
Link copied to clipboard
Optional category for use with MatryoshkaTools. When the containing class has @MatryoshkaTools, tools with the same category are grouped together and exposed when that category is selected. Leave empty for tools that should always be exposed.
Link copied to clipboard
Description of what the tool does. Used by LLM to decide when to call it.
Link copied to clipboard
Whether to return the result directly without further LLM processing.