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. An inline
image or PDF, or one that the runtime loads, arrives as a
MessageContent.DataMessageContent. An image or PDF that the model fetches itself arrives as
its URI. Session memory stores an inline image or PDF as the text [image] or
[pdf], and a message read from session memory carries that text.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA model reply with its text, requested tool calls, thinking, and provider attributes.static final recordThe result a tool returned for a requested tool call.static final recordA user-authored message.