Record Class InteractionParams.AgentInteractionParams

java.lang.Object
java.lang.Record
io.github.glaforge.gemini.interactions.model.InteractionParams.AgentInteractionParams
Record Components:
agent - The agent to use.
input - The input content.
agentConfig - Configuration for the agent.
generationConfig - Configuration for generation.
tools - List of tools available.
stream - Whether to stream the response.
store - Whether to store the interaction.
background - Whether to run in background.
systemInstruction - System instruction.
responseModalities - Requested response modalities.
responseFormat - Requested response format.
responseMimeType - Requested response MIME type.
previousInteractionId - ID of the previous interaction.
All Implemented Interfaces:
InteractionParams.Request
Enclosing class:
InteractionParams

public static record InteractionParams.AgentInteractionParams(String agent, Object input, Config.AgentConfig agentConfig, Config.GenerationConfig generationConfig, List<Tool> tools, Boolean stream, Boolean store, Boolean background, String systemInstruction, List<Interaction.Modality> responseModalities, Object responseFormat, String responseMimeType, String previousInteractionId) extends Record implements InteractionParams.Request
Parameters for creating an agent interaction.
  • Constructor Details

  • Method Details

    • builder

      Returns a new builder for agent interaction parameters.
      Returns:
      a new builder for agent interaction parameters.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • agent

      public String agent()
      Returns the value of the agent record component.
      Returns:
      the value of the agent record component
    • input

      public Object input()
      Returns the value of the input record component.
      Returns:
      the value of the input record component
    • agentConfig

      public Config.AgentConfig agentConfig()
      Returns the value of the agentConfig record component.
      Returns:
      the value of the agentConfig record component
    • generationConfig

      public Config.GenerationConfig generationConfig()
      Returns the value of the generationConfig record component.
      Returns:
      the value of the generationConfig record component
    • tools

      public List<Tool> tools()
      Returns the value of the tools record component.
      Returns:
      the value of the tools record component
    • stream

      public Boolean stream()
      Returns the value of the stream record component.
      Specified by:
      stream in interface InteractionParams.Request
      Returns:
      the value of the stream record component
    • store

      public Boolean store()
      Returns the value of the store record component.
      Returns:
      the value of the store record component
    • background

      public Boolean background()
      Returns the value of the background record component.
      Returns:
      the value of the background record component
    • systemInstruction

      public String systemInstruction()
      Returns the value of the systemInstruction record component.
      Returns:
      the value of the systemInstruction record component
    • responseModalities

      public List<Interaction.Modality> responseModalities()
      Returns the value of the responseModalities record component.
      Returns:
      the value of the responseModalities record component
    • responseFormat

      public Object responseFormat()
      Returns the value of the responseFormat record component.
      Returns:
      the value of the responseFormat record component
    • responseMimeType

      public String responseMimeType()
      Returns the value of the responseMimeType record component.
      Returns:
      the value of the responseMimeType record component
    • previousInteractionId

      public String previousInteractionId()
      Returns the value of the previousInteractionId record component.
      Returns:
      the value of the previousInteractionId record component