PhoenixAI.Guardrails.Request (PhoenixAI v0.3.1)

Copy Markdown View Source

Context object that flows through the guardrails pipeline.

Carries the messages about to be sent to the AI provider, along with identity, tool call data, and pipeline state.

Summary

Types

t()

@type t() :: %PhoenixAI.Guardrails.Request{
  assigns: map(),
  conversation_id: String.t() | nil,
  halted: boolean(),
  messages: [PhoenixAI.Message.t()],
  metadata: map(),
  tool_calls: [PhoenixAI.ToolCall.t()] | nil,
  user_id: String.t() | nil,
  violation: PhoenixAI.Guardrails.PolicyViolation.t() | nil
}