Class TurnEnd

java.lang.Object
com.google.genkit.ai.agent.TurnEnd

public class TurnEnd extends Object
TurnEnd signals the end of an agent turn in a streaming response.
  • Constructor Details

    • TurnEnd

      public TurnEnd()
      Default constructor.
  • Method Details

    • builder

      public static TurnEnd.Builder builder()
      Creates a builder for TurnEnd.
      Returns:
      a new builder
    • getSnapshotId

      public String getSnapshotId()
      Returns the snapshot ID.
      Returns:
      the snapshot ID
    • setSnapshotId

      public void setSnapshotId(String snapshotId)
      Sets the snapshot ID.
      Parameters:
      snapshotId - the snapshot ID
    • getFinishReason

      public AgentFinishReason getFinishReason()
      Returns the finish reason.
      Returns:
      the finish reason
    • setFinishReason

      public void setFinishReason(AgentFinishReason finishReason)
      Sets the finish reason.
      Parameters:
      finishReason - the finish reason