Skip to content

OutputContext

The evaluation input provided to policies at the Output Interception point.

Schema ID: https://agentpolicyspecification.github.io/schemas/output-context.schema.json

Properties

PropertyTypeRequiredDescription
responseAssistantMessageYesThe LLM response being evaluated
metadataMetadataYesAgent and session context

AssistantMessage

PropertyTypeRequiredDescription
role"assistant"YesAlways "assistant"
contentstringYesThe text content of the response

Metadata

PropertyTypeRequiredDescription
agent_idstringYesUnique identifier for the agent
session_idstringYesUnique identifier for the session
timestampstring (date-time)YesISO 8601 timestamp of the interception

Example

json
{
  "response": {
    "role": "assistant",
    "content": "The weather in Amsterdam today is 12°C and cloudy."
  },
  "metadata": {
    "agent_id": "agent-1",
    "session_id": "session-abc",
    "timestamp": "2026-03-31T10:00:02Z"
  }
}

Download

output-context.schema.json

Released under the Apache 2.0 License.