ParamProperty
ParamProperty
OpenAI uses JSON Schema (https://json-schema.org/) for function parameters. See OpenAI function calling reference: https://platform.openai.com/docs/guides/function-calling?&api-mode=responses#defining-functions
JSON Schema enum supports any JSON type (str, int, float, bool, null, arrays, objects), but we restrict to basic scalar types for practical use cases and API safety.
JSON Example
{
"type": "string",
"description": "string",
"enum": [
{}
],
"items": {
"type": "string"
}
}
string
type
Optional
type
Possible values are :
string,
number,
integer,
object,
array,
boolean,
null,
string
description
Optional
description
array of
enum
enum
Optional
enum
items
Optional
items