Package org.springframework.ai.openai
Class OpenAiChatModel.ResponseFormat
java.lang.Object
org.springframework.ai.openai.OpenAiChatModel.ResponseFormat
- Enclosing class:
- OpenAiChatModel
Response format (text, json_object, json_schema) for OpenAiChatModel responses.
- Author:
- Julien Dubois, Mariusz Bernacki, Grogdunn, Thomas Vitale, John Blum, Mark Pollack, Josh Long, Jemin Huh, Ueibin Kim, Alexandros Pappas, luocongqiu, Hyunjoon Choi, Jonghoon Park, Sebastien Deleuze, Bishen Yu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ResponseFormat
public ResponseFormat()
-
-
Method Details
-
getType
-
setType
-
getJsonSchema
-
setJsonSchema
-
getStrict
Whether to enable strict schema adherence for JSON schema response format. Defaults totruewhen unset.This applies only to the JSON schema response format and is distinct from
OpenAiChatOptions.AbstractBuilder.strict(Boolean), which controls strict mode for tool/function calling.- Returns:
- the strict flag, or
nullif not configured
-
setStrict
-
equals
-
hashCode
public int hashCode() -
builder
-