Class ToolCall

java.lang.Object
ai.redouble.nucleo.tools.ToolCall

public class ToolCall extends Object
Represents a single tool invocation request from the LLM.

The input is stored as Object because at parse time we don't know the specific type each tool expects. Type conversion happens in ThinkingResponseHandler using the ToolRegistry.

Since:
0.1 (2025-09-19)
Author:
Andrey Santrosyan
  • Constructor Details

    • ToolCall

      public ToolCall()
    • ToolCall

      public ToolCall(String toolName, Object input)
  • Method Details

    • getToolName

      public String getToolName()
    • setToolName

      public void setToolName(String toolName)
    • getInput

      public Object getInput()
    • setInput

      public void setInput(Object input)
    • getToolUseId

      public String getToolUseId()
    • setToolUseId

      public void setToolUseId(String toolUseId)
    • getParseError

      public CorrectableLLMException getParseError()
    • setParseError

      public void setParseError(CorrectableLLMException parseError)