ToolFromCallable
constructor(callable: KCallable<TResult>, thisRef: Any? = null, name: String? = null, description: String? = null)(source)
Parameters
callable
The Kotlin callable (KFunction or KProperty) to be wrapped and executed by this tool.
thisRef
An optional instance reference required if the callable is non-static.
name
The name of the tool. If not provided, the name of the callable will be used.
description
The description of the tool. If not provided, the description from the ai.koog.agents.core.tools.annotations.LLMDescription annotation on the callable will be used.