Class ExecutedToolCall

java.lang.Object
uno.anahata.ai.tools.ExecutedToolCall

public class ExecutedToolCall extends Object
Represents a tool call that has been successfully executed.

This class bundles all necessary information about a completed tool execution, including the original call part, the generated response, and the raw Java result.

Author:
anahata
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Object
    The raw Java Object returned by the tool method before it was converted to a JSON-compatible Map.
    final com.google.genai.types.FunctionResponse
    The FunctionResponse object that will be sent back to the model.
    final com.google.genai.types.Part
    The original Part from the model's message that contained the FunctionCall.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • sourceCallPart

      public final com.google.genai.types.Part sourceCallPart
      The original Part from the model's message that contained the FunctionCall.
    • response

      public final com.google.genai.types.FunctionResponse response
      The FunctionResponse object that will be sent back to the model.
    • rawResult

      public final Object rawResult
      The raw Java Object returned by the tool method before it was converted to a JSON-compatible Map.
  • Constructor Details

    • ExecutedToolCall

      public ExecutedToolCall()