getToolDescriptor
Generates a ToolDescriptor by generating and converting the JSON schema for the type defined by the provided argsType
Parameters
Type token representing arguments type.
Name of the tool.
Optional custom description. If not provided, the description will be obtained from the generated JSON schema for the argsType
Optional custom JsonSchemaConfig for the JSON schema generation.
Generates a ToolDescriptor by generating and converting the function calling schema for the provided callable
Parameters
The callable to generate the schema for.
Optional custom name. If not provided, KCallable.name will be used.
Optional custom description. If not provided, ai.koog.agents.core.tools.annotations.LLMDescription.description will be used if the callable is annotated with it.
Optional custom JsonSchemaConfig for the JSON schema generation.