# Class ToolRecording

java.lang.Object
com.google.adk.plugins.recordings.ToolRecording

public abstract class ToolRecording extends Object
Paired tool call and response for replay.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `ToolRecording.Builder`
  Builder for ToolRecording.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ToolRecording()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static ToolRecording.Builder`
  `builder()`
  `abstract Optional<com.google.genai.types.FunctionCall>`
  `toolCall()`
  The tool call.
  `abstract Optional<com.google.genai.types.FunctionResponse>`
  `toolResponse()`
  The tool response.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ToolRecording

    public ToolRecording()

- ## Method Details

  - ### toolCall

    public abstract Optional<com.google.genai.types.FunctionCall> toolCall()
    The tool call.

  - ### toolResponse

    public abstract Optional<com.google.genai.types.FunctionResponse> toolResponse()
    The tool response.

  - ### builder

    public static ToolRecording.Builder builder()