public static interface TurnSpecification.Builder extends SdkPojo, CopyableBuilder<TurnSpecification.Builder,TurnSpecification>
| Modifier and Type | Method and Description |
|---|---|
TurnSpecification.Builder |
agentTurn(AgentTurnSpecification agentTurn)
Contains information about the agent messages in the turn.
|
default TurnSpecification.Builder |
agentTurn(Consumer<AgentTurnSpecification.Builder> agentTurn)
Contains information about the agent messages in the turn.
|
default TurnSpecification.Builder |
userTurn(Consumer<UserTurnSpecification.Builder> userTurn)
Contains information about the user messages in the turn.
|
TurnSpecification.Builder |
userTurn(UserTurnSpecification userTurn)
Contains information about the user messages in the turn.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTurnSpecification.Builder agentTurn(AgentTurnSpecification agentTurn)
Contains information about the agent messages in the turn.
agentTurn - Contains information about the agent messages in the turn.default TurnSpecification.Builder agentTurn(Consumer<AgentTurnSpecification.Builder> agentTurn)
Contains information about the agent messages in the turn.
This is a convenience method that creates an instance of theAgentTurnSpecification.Builder avoiding
the need to create one manually via AgentTurnSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to agentTurn(AgentTurnSpecification).
agentTurn - a consumer that will call methods on AgentTurnSpecification.BuilderagentTurn(AgentTurnSpecification)TurnSpecification.Builder userTurn(UserTurnSpecification userTurn)
Contains information about the user messages in the turn.
userTurn - Contains information about the user messages in the turn.default TurnSpecification.Builder userTurn(Consumer<UserTurnSpecification.Builder> userTurn)
Contains information about the user messages in the turn.
This is a convenience method that creates an instance of theUserTurnSpecification.Builder avoiding
the need to create one manually via UserTurnSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to userTurn(UserTurnSpecification).
userTurn - a consumer that will call methods on UserTurnSpecification.BuilderuserTurn(UserTurnSpecification)Copyright © 2023. All rights reserved.