Package-level declarations
Types
Link copied to clipboard
class ToolFromCallable(callable: KCallable<*>, thisRef: Any? = null, val descriptor: ToolDescriptor, json: Json = Json, val resultSerializer: KSerializer<Any?>) : Tool<ToolFromCallable.VarArgs, Any?>
A tool implementation that wraps a Kotlin callable (function, method, etc.).
Link copied to clipboard
interface ToolSet
A marker interface for a set of tools that can be converted to a list of ai.koog.agents.core.tools.Tools via reflection using asTools.
Functions
Link copied to clipboard
fun KFunction<*>.asToolDescriptor(name: String? = null, description: String? = null): ToolDescriptor
Converts a KFunction into a ToolDescriptor that provides detailed metadata about the tool's name, description, and parameter requirements. This can be used to programmatically describe and interact with a tool function.
Link copied to clipboard
Link copied to clipboard
Converts a Kotlin reflection type (KType) to a corresponding ToolParameterType.