OpenAIFunctionProperty.boolean constructor
OpenAIFunctionProperty.boolean({})
This class is used to represent an OpenAI function property. This a factory constructor that allows you to create a new function property with a boolean type.
Implementation
factory OpenAIFunctionProperty.boolean({
required String name,
String? description,
bool isRequired = false,
}) {
return OpenAIFunctionProperty.primitive(
name: name,
isRequired: isRequired,
type: functionTypeBoolean,
description: description,
);
}