Class OllamaGenerateResult
java.lang.Object
org.springframework.ai.ollama.client.OllamaGenerateResult
Ollama generate a completion api response model
- Author:
- nullptr
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDone()
getModel()
void
setContext
(List<Long> context) void
setCreatedAt
(String createdAt) void
void
setEvalCount
(Long evalCount) void
setEvalDuration
(Long evalDuration) void
setLoadDuration
(Long loadDuration) void
void
setPromptEvalCount
(Long promptEvalCount) void
setPromptEvalDuration
(Long promptEvalDuration) void
setResponse
(String response) void
setTotalDuration
(Long totalDuration) toString()
-
Constructor Details
-
OllamaGenerateResult
public OllamaGenerateResult()
-
-
Method Details
-
getModel
-
setModel
-
getCreatedAt
-
setCreatedAt
-
getResponse
-
setResponse
-
getDone
-
setDone
-
getContext
-
setContext
-
getTotalDuration
-
setTotalDuration
-
getLoadDuration
-
setLoadDuration
-
getPromptEvalCount
-
setPromptEvalCount
-
getPromptEvalDuration
-
setPromptEvalDuration
-
getEvalCount
-
setEvalCount
-
getEvalDuration
-
setEvalDuration
-
toString
-