Package org.springframework.ai.ollama
Class OllamaDecisionModel
java.lang.Object
org.springframework.ai.ollama.OllamaDecisionModel
- All Implemented Interfaces:
DecisionModel,Model<DecisionPrompt,DecisionResponse>
A
DecisionModel implementation for Ollama.- Since:
- 2.1.0
- Author:
- Thomas Vitale, Christian Tzolov
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic OllamaDecisionModel.Builderbuilder()call(DecisionPrompt prompt) Executes a method call to the AI model.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
-
Field Details
-
DEFAULT_MODEL
-
-
Method Details
-
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
-
builder
-