Package-level declarations
Types
Link copied to clipboard
Helper class holding information about the ToolParameterType along with its optional description.
Functions
Link copied to clipboard
expect fun getJsonSchema(typeToken: TypeToken, jsonSchemaConfig: JsonSchemaConfig = defaultJsonSchemaConfig): JsonSchema
Link copied to clipboard
fun getToolDescriptor(argsType: TypeToken, toolName: String, toolDescription: String? = null, jsonSchemaConfig: JsonSchemaConfig = defaultJsonSchemaConfig): ToolDescriptor
Generates a ToolDescriptor by generating and converting the JSON schema for the type defined by the provided argsType
fun getToolDescriptor(callable: KCallable<*>, toolName: String? = null, toolDescription: String? = null, jsonSchemaConfig: JsonSchemaConfig = defaultJsonSchemaConfig): ToolDescriptor
Generates a ToolDescriptor by generating and converting the function calling schema for the provided callable
Link copied to clipboard
Converts a JSON schema property representation PropertyDefinition to ToolParameterInfo, containing our tool parameter representation ToolParameterType along with its optional description.