{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-channel-query-request-schema.json",
  "title": "ChannelQueryRequest",
  "description": "Body for POST /channel/query.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-channel-api-openapi.yml#/components/schemas/ChannelQueryRequest",
  "properties": {
    "sender_agent": {
      "type": "string",
      "title": "Sender Agent"
    },
    "topic": {
      "type": "string",
      "title": "Topic"
    },
    "content": {
      "type": "string",
      "title": "Content"
    },
    "target_agent": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Agent"
    },
    "target_role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Role"
    },
    "ttl_seconds": {
      "type": "number",
      "title": "Ttl Seconds",
      "default": 300
    }
  },
  "type": "object",
  "required": [
    "sender_agent",
    "topic",
    "content"
  ]
}