add-custom-tool

Community

Add custom tools to KAgentic agents

Authoranoopg87
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-custom-tool
Download link: https://github.com/anoopg87/KAgentic/archive/main.zip#add-custom-tool

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.