Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
io.github.ollama4j.models.response.OllamaStructuredResult Class Reference

Public Member Functions

 OllamaStructuredResult (String response, long responseTime, int httpStatusCode)
 
String toString ()
 
Map< String, Object > getStructuredResponse ()
 

Detailed Description

Definition at line 22 of file OllamaStructuredResult.java.

Constructor & Destructor Documentation

◆ OllamaStructuredResult()

io.github.ollama4j.models.response.OllamaStructuredResult.OllamaStructuredResult ( String response,
long responseTime,
int httpStatusCode )

Definition at line 31 of file OllamaStructuredResult.java.

Member Function Documentation

◆ getStructuredResponse()

Map< String, Object > io.github.ollama4j.models.response.OllamaStructuredResult.getStructuredResponse ( )

Get the structured response if the response is a JSON object.

Returns
Map - structured response

Definition at line 51 of file OllamaStructuredResult.java.

◆ toString()

String io.github.ollama4j.models.response.OllamaStructuredResult.toString ( )

Definition at line 38 of file OllamaStructuredResult.java.


The documentation for this class was generated from the following file: