Class ToolResponse
java.lang.Object
me.neurodock.llm.Message
me.neurodock.llm.tools.ToolResponse
Represents a response from a tool.
-
Nested Class Summary
Nested classes/interfaces inherited from class Message
Message.Role -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionToolResponse(String tool, String response) Creates a new instance ofToolResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolResponseReturns an empty tool response Seeempty(String, String)for a reasoned/described responsestatic ToolResponseReturns an empty tool response with a reason/description.Gets the response from the tool.getTool()Gets the tool that responded.voidMethods inherited from class Message
getContent, getRole, getToolCalls, getToolID, toString
-
Constructor Details
-
ToolResponse
Creates a new instance ofToolResponse.- 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
-
setToolID
-