ChatFunctionToolFunctionFunction - Go SDK

ChatFunctionToolFunctionFunction type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Function definition for tool calling

Fields

FieldTypeRequiredDescriptionExample
Description*stringFunction description for the modelGet the current weather for a location
Namestring✔️Function name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars)get_weather
Parametersmap[string]anyFunction parameters as JSON Schema object{"properties": {"location": {"description": "City name","type": "string"}
},
“required”: [
“location”
],
“type”: “object”
}
Strictoptionalnullable.OptionalNullable[bool]Enable strict schema adherencefalse