ChatResponseFormat class sealed
Represents the desired format of a chat response.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
forJsonSchema(
{required Map< String, dynamic> schema, String? schemaName, String? schemaDescription}) → ChatResponseFormatJsonSchema - Structured JSON response conforming to the given schema.
Constants
- json → const ChatResponseFormatJson
- Structured JSON response without a specific schema.
- text → const ChatResponseFormatText
- Unstructured text response.