{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bold-penguin/main/json-schema/bold-penguin-post-targetagent-invocations-request-schema.json",
  "title": "PostTargetagentInvocationsRequest",
  "x-generated": "2026-10-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/bold-penguin-insurance_intelligence-openapi-generated.yml#/components/schemas/PostTargetagentInvocationsRequest",
  "type": "object",
  "properties": {
    "message": {
      "type": "object",
      "description": "The risk message containing a free‑text instruction and a data part."
    },
    "message.role": {
      "type": "string",
      "description": "User role, e.g. \"user\"."
    },
    "message.parts": {
      "type": "array",
      "description": "Array of parts: a text part and a data part."
    },
    "message.parts[].type": {
      "type": "string",
      "description": "Either \"text\" or \"data\"."
    },
    "message.parts[].text": {
      "type": "string",
      "description": "Free‑text instruction, e.g. \"Find the carriers most likely to bind this risk.\""
    },
    "message.parts[].data": {
      "type": "object",
      "description": "Structured risk context."
    },
    "message.parts[].data.state_cd": {
      "type": "string",
      "description": "Two‑letter US state code."
    },
    "message.parts[].data.naics_desc": {
      "type": "string",
      "description": "NAICS description or code."
    },
    "message.parts[].data.products": {
      "type": "array",
      "description": "Coverage product(s), e.g. [\"GL\"]."
    }
  },
  "required": [
    "message",
    "message.role",
    "message.parts",
    "message.parts[].type",
    "message.parts[].data.state_cd"
  ]
}