FunctionCallingSchema
data class FunctionCallingSchema(val type: String = "function", val name: String, val title: String? = null, val description: String? = null, val strict: Boolean? = true, val parameters: ParametersDefinition)(source)
FunctionCallingSchema describes a function/tool call in LLM function calling APIs.
This follows the OpenAI function calling format where a tool is defined as:
type: Always "function"
name: The name of the function
description: What the function does
strict: Whether to enforce strict schema adherence
parameters: The function's parameter schema
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
See Strict mode
Link copied to clipboard
Functions
Link copied to clipboard
Encodes the given FunctionCallingSchema instance into a JsonObject representation.
Link copied to clipboard
Encodes the FunctionCallingSchema instance into its JSON string representation.