TurnBuilder |
TurnBuilder.respondingWith(Completion completion) |
Set the completion to return for this turn.
|
TurnBuilder |
LlmConversationBuilder.turn() |
Start defining a new turn in the conversation.
|
TurnBuilder |
TurnBuilder.whenContainsToolResultFor(String toolName) |
Match when the conversation contains a tool result for a prior call
of the named tool.
|
TurnBuilder |
TurnBuilder.whenLatestMessageContains(String text) |
Match when the latest message's text content contains the given substring.
|
TurnBuilder |
TurnBuilder.whenLatestMessageContains(Pattern regex) |
Match when the latest message's text content matches the given regex.
|
TurnBuilder |
TurnBuilder.whenLatestMessageRole(ParsedMessage.Role role) |
Match when the latest message has the given role.
|
TurnBuilder |
TurnBuilder.whenTurnIndex(int n) |
Match when the conversation has exactly n assistant turns.
|