Skip to content

InputContext

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

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

Properties

PropertyTypeRequiredDescription
messagesMessage[]YesOrdered message history to be forwarded to the LLM
metadataMetadataYesAgent and session context

Message

PropertyTypeRequiredDescription
role"system" | "user" | "assistant"YesThe role of the message author
contentstringYesThe text content of the message

Metadata

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

Additional properties are permitted on metadata for runtime-specific extensions.

Example

json
{
  "messages": [
    { "role": "system", "content": "You are a helpful assistant." },
    { "role": "user", "content": "What is the weather in Amsterdam?" }
  ],
  "metadata": {
    "agent_id": "agent-1",
    "session_id": "session-abc",
    "timestamp": "2026-03-31T10:00:00Z"
  }
}

Download

input-context.schema.json

Released under the Apache 2.0 License.