Package org.springframework.ai.openai
Class OpenAiDecisionModel
java.lang.Object
org.springframework.ai.openai.OpenAiDecisionModel
- All Implemented Interfaces:
DecisionModel,Model<DecisionPrompt,DecisionResponse>
DecisionModel backed by the OpenAI Decisions API, through the official OpenAI
Java SDK.- Since:
- 2.1.0
- Author:
- Thomas Vitale, Christian Tzolov
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenAiDecisionModel.Builderbuilder()call(DecisionPrompt prompt) Executes a method call to the AI model.mutate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.decision.DecisionModel
call, call
-
Method Details
-
builder
-
mutate
-
call
Description copied from interface:ModelExecutes a method call to the AI model.- Specified by:
callin interfaceDecisionModel- Specified by:
callin interfaceModel<DecisionPrompt,DecisionResponse> - Parameters:
prompt- the request object to be sent to the AI model- Returns:
- the response from the AI model
-
getOptions
-