Class LiveClientToolResponse

  • All Implemented Interfaces:

    
    public abstract class LiveClientToolResponse
    extends JsonSerializable
                        

    Client generated response to a `ToolCall` received from the server.

    Individual `FunctionResponse` objects are matched to the respective `FunctionCall` objects by the `id` field.

    Note that in the unary and server-streaming GenerateContent APIs function calling happens by exchanging the `Content` parts, while in the bidi GenerateContent APIs function calling happens over this dedicated set of messages.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class LiveClientToolResponse.Builder

      Builder for LiveClientToolResponse.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<List<FunctionResponse>> functionResponses() The response to the function calls.
      static LiveClientToolResponse.Builder builder() Instantiates a builder for LiveClientToolResponse.
      abstract LiveClientToolResponse.Builder toBuilder() Creates a builder with the same values as this instance.
      static LiveClientToolResponse fromJson(String jsonString) Deserializes a JSON string to a LiveClientToolResponse object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

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