{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentberg-ai/json-schema/agentberg-ai-eodbrief-create-schema.json",
  "title": "EODBriefCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentberg-ai-eod-brief-api-openapi.yml#/components/schemas/EODBriefCreate",
  "properties": {
    "agent_id": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Agent Id"
    },
    "session_date": {
      "type": "string",
      "title": "Session Date",
      "description": "ISO date e.g. 2026-06-16"
    },
    "trades": {
      "items": {
        "$ref": "#/$defs/EODBriefTrade"
      },
      "type": "array",
      "title": "Trades"
    },
    "decisions_summary": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 3000
        },
        {
          "type": "null"
        }
      ],
      "title": "Decisions Summary"
    },
    "market_view": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Market View"
    },
    "session_pnl": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Pnl"
    },
    "session_pnl_pct": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Pnl Pct"
    },
    "running_pnl": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Running Pnl"
    },
    "objectives_score": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Objectives Score"
    },
    "strategy_corrections": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Strategy Corrections"
    },
    "notes": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 3000
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "session_date"
  ],
  "$defs": {
    "EODBriefTrade": {
      "properties": {
        "ticker": {
          "type": "string",
          "maxLength": 10,
          "minLength": 1,
          "title": "Ticker"
        },
        "direction": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 20
            },
            {
              "type": "null"
            }
          ],
          "title": "Direction"
        },
        "entry": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entry"
        },
        "exit": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Exit"
        },
        "pnl": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pnl"
        },
        "pnl_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pnl Pct"
        },
        "rationale": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 1000
            },
            {
              "type": "null"
            }
          ],
          "title": "Rationale"
        },
        "outcome_notes": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 1000
            },
            {
              "type": "null"
            }
          ],
          "title": "Outcome Notes"
        }
      },
      "type": "object",
      "required": [
        "ticker"
      ],
      "title": "EODBriefTrade"
    }
  }
}