Class OllamaToolResponse
java.lang.Object
me.neurodock.ollama.OllamaMessage
me.neurodock.ollama.OllamaToolResponse
Represents a response from a tool.
-
Constructor Summary
ConstructorsConstructorDescriptionOllamaToolResponse(String tool, String response) Creates a new instance ofOllamaToolResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic OllamaToolResponseReturns an empty tool response Seeempty(String, String)for a reasoned/described responsestatic OllamaToolResponseReturns an empty tool response with a reason/description.Gets the response from the tool.getTool()Gets the tool that responded.Methods inherited from class OllamaMessage
getContent, getRole, toString
-
Constructor Details
-
OllamaToolResponse
Creates a new instance ofOllamaToolResponse.- Parameters:
tool- The tool that respondedresponse- The response from the tool
-
-
Method Details
-
empty
Returns an empty tool response Seeempty(String, String)for a reasoned/described response- Parameters:
tool- The tool that responded- Returns:
- an empty tool response
-
empty
Returns an empty tool response with a reason/description. Seeempty(String)for reason/description less response- Parameters:
tool- The tool that respondeddescription- A description for why this is empty- Returns:
- an empty tool response with a reason
-
getTool
-
getResponse
-