What problem does it solve?
Provide a clear, production-ready pattern for adding new tool capabilities to KAgentic agents so developers can extend agent functionality reliably and consistently without breaking tool selection or execution flow.
Core Features & Use Cases
- Implement ToolHandler: Guidance for implementing canHandle, score, and suspend handle methods with recommended patterns (keyword, regex, combined matching).
- Selection & Scoring: Deterministic scoring strategies and fast pattern matching to ensure correct tool arbitration among multiple candidates.
- Integration & Testing: Instructions for writing unit tests (runBlocking), safe async handling, error reporting, and registering the tool with AgentFramework for real-world use (DateTime, Weather, API calls, file readers, calculators).
Quick Start
Implement a Kotlin ToolHandler named DateTimeTool that implements canHandle, score, and suspend handle, add unit tests using runBlocking, and register the tool with AgentFramework.