Package akka.javasdk.agent
Interface Guardrail.Message
- All Known Implementing Classes:
Guardrail.Message.AiMessage,Guardrail.Message.ToolCallResponse,Guardrail.Message.UserMessage
- Enclosing interface:
Guardrail
public static sealed interface Guardrail.Message
permits Guardrail.Message.UserMessage, Guardrail.Message.AiMessage, Guardrail.Message.ToolCallResponse
A message in the conversation a guardrail inspects, carrying its origin: what the user said,
what the model replied (and which tools it requested), and what a tool returned.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA model reply, with only its text and the tool calls it requested.static final recordThe result a tool returned for a requested tool call.static final recordA user-authored message.