> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Session Vercel

> Get an agent session or legacy chat with message history in Vercel format.

Legacy chats have is_readonly=True.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /workspaces/{workspace_id}/agent/sessions/{session_id}/vercel
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/agent/sessions/{session_id}/vercel:
    get:
      tags:
        - agent-sessions
      summary: Get Session Vercel
      description: >-
        Get an agent session or legacy chat with message history in Vercel
        format.


        Legacy chats have is_readonly=True.
      operationId: agent-sessions-get_session_vercel
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Session Id
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/AgentSessionReadVercel'
                  - $ref: '#/components/schemas/ChatReadVercel'
                title: Response Agent-Sessions-Get Session Vercel
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    AgentSessionReadVercel:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
        title:
          type: string
          title: Title
        created_by:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Created By
        entity_type:
          $ref: '#/components/schemas/AgentSessionEntity'
        entity_id:
          type: string
          format: uuid
          title: Entity Id
        channel_context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Channel Context
        tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tools
        mcp_integrations:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Mcp Integrations
        agent_preset_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Preset Id
        agent_preset_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Preset Version Id
        agents_binding:
          anyOf:
            - $ref: '#/components/schemas/ResolvedAgentsConfig'
            - type: 'null'
        harness_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Harness Type
        last_error:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Error
        last_stream_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Stream Id
        artifacts:
          items:
            $ref: '#/components/schemas/Artifact'
          type: array
          title: Artifacts
        parent_session_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Parent Session Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        messages:
          items:
            $ref: '#/components/schemas/UIMessage'
          type: array
          title: Messages
          description: Session messages in Vercel UI format
      type: object
      required:
        - id
        - workspace_id
        - title
        - created_by
        - entity_type
        - entity_id
        - channel_context
        - tools
        - mcp_integrations
        - agent_preset_id
        - agent_preset_version_id
        - harness_type
        - created_at
        - updated_at
      title: AgentSessionReadVercel
      description: Response schema for agent session with Vercel format messages.
    ChatReadVercel:
      properties:
        id:
          type: string
          format: uuid4
          title: Id
          description: Unique chat identifier
        title:
          type: string
          title: Title
          description: Human-readable title for the chat
        user_id:
          type: string
          format: uuid4
          title: User Id
          description: ID of the user who owns the chat
        entity_type:
          $ref: '#/components/schemas/AgentSessionEntity'
          description: Type of entity this chat is associated with
        entity_id:
          type: string
          format: uuid4
          title: Entity Id
          description: ID of the associated entity
        tools:
          items:
            type: string
          type: array
          title: Tools
          description: Tools available to the agent
        mcp_integrations:
          items:
            type: string
          type: array
          title: Mcp Integrations
          description: MCP integration IDs attached to this chat
        agent_preset_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Preset Id
          description: Agent preset used for this chat, if any
        agent_preset_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Preset Version Id
          description: Pinned preset version used for this chat, if any
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the chat was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the chat was last updated
        last_stream_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Stream Id
          description: Last processed Redis stream ID for this chat
        is_readonly:
          type: boolean
          title: Is Readonly
          description: Whether this chat is read-only (legacy chats cannot be modified)
          default: true
        messages:
          items:
            $ref: '#/components/schemas/UIMessage'
          type: array
          title: Messages
          description: Chat messages from Redis stream
      type: object
      required:
        - id
        - title
        - user_id
        - entity_type
        - entity_id
        - tools
        - created_at
        - updated_at
      title: ChatReadVercel
      description: Model for chat metadata with message history in Vercel format.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentSessionEntity:
      type: string
      enum:
        - case
        - agent_preset
        - agent_preset_builder
        - copilot
        - workflow
        - approval
        - external_channel
      title: AgentSessionEntity
      description: |-
        The type of entity associated with an agent session.

        Determines the context and behavior of the session:
        - CASE: Chat attached to a Case entity for investigation
        - AGENT_PRESET: Live chat testing a preset configuration
        - AGENT_PRESET_BUILDER: Builder chat for editing/configuring a preset
        - WORKSPACE_CHAT: Workspace-level chat assistant (wire value: copilot)
        - WORKFLOW: Workflow-initiated agent run (from action)
        - APPROVAL: Inbox approval continuation (hidden from main chat list)
        - EXTERNAL_CHANNEL: External channel session (e.g. Slack thread)
    ResolvedAgentsConfig:
      properties:
        enabled:
          type: boolean
          title: Enabled
          default: false
        subagents:
          items:
            $ref: '#/components/schemas/ResolvedAttachedSubagentRef'
          type: array
          title: Subagents
      additionalProperties: false
      type: object
      title: ResolvedAgentsConfig
      description: Persisted agents toggle with immutable resolved child refs.
    Artifact:
      oneOf:
        - $ref: '#/components/schemas/CaseArtifact'
        - $ref: '#/components/schemas/WorkflowArtifact'
        - $ref: '#/components/schemas/RunArtifact'
        - $ref: '#/components/schemas/TableArtifact'
        - $ref: '#/components/schemas/AgentArtifact'
        - $ref: '#/components/schemas/AlertArtifact'
        - $ref: '#/components/schemas/IntegrationArtifact'
        - $ref: '#/components/schemas/SecretArtifact'
        - $ref: '#/components/schemas/GenericArtifact'
      discriminator:
        propertyName: type
        mapping:
          agent:
            $ref: '#/components/schemas/AgentArtifact'
          alert:
            $ref: '#/components/schemas/AlertArtifact'
          case:
            $ref: '#/components/schemas/CaseArtifact'
          generic:
            $ref: '#/components/schemas/GenericArtifact'
          integration:
            $ref: '#/components/schemas/IntegrationArtifact'
          run:
            $ref: '#/components/schemas/RunArtifact'
          secret:
            $ref: '#/components/schemas/SecretArtifact'
          table:
            $ref: '#/components/schemas/TableArtifact'
          workflow:
            $ref: '#/components/schemas/WorkflowArtifact'
    UIMessage:
      properties:
        id:
          type: string
          title: Id
        role:
          type: string
          enum:
            - system
            - user
            - assistant
          title: Role
        metadata:
          anyOf:
            - {}
            - type: 'null'
          title: Metadata
        parts:
          items:
            anyOf:
              - $ref: '#/components/schemas/TextUIPart'
              - $ref: '#/components/schemas/ReasoningUIPart'
              - $ref: '#/components/schemas/SourceUrlUIPart'
              - $ref: '#/components/schemas/SourceDocumentUIPart'
              - $ref: '#/components/schemas/FileUIPart'
              - $ref: '#/components/schemas/StepStartUIPart'
              - $ref: '#/components/schemas/DynamicToolUIPartInputStreaming'
              - $ref: '#/components/schemas/DynamicToolUIPartInputAvailable'
              - $ref: '#/components/schemas/DynamicToolUIPartOutputAvailable'
              - $ref: '#/components/schemas/DynamicToolUIPartOutputError'
              - $ref: '#/components/schemas/ToolUIPartInputStreaming'
              - $ref: '#/components/schemas/ToolUIPartInputAvailable'
              - $ref: '#/components/schemas/ToolUIPartOutputAvailable'
              - $ref: '#/components/schemas/ToolUIPartOutputError'
              - $ref: '#/components/schemas/DataUIPart'
          type: array
          title: Parts
      additionalProperties: false
      type: object
      required:
        - id
        - role
        - parts
      title: UIMessage
      description: |-
        Pydantic model for AI SDK UI Messages, used for validation between
        frontend and backend.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ResolvedAttachedSubagentRef:
      properties:
        preset:
          type: string
          maxLength: 160
          minLength: 1
          title: Preset
        preset_version:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Preset Version
        name:
          anyOf:
            - type: string
              maxLength: 80
              minLength: 1
              pattern: ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$
            - type: 'null'
          title: Name
        description:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Description
        max_turns:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Max Turns
        preset_id:
          type: string
          format: uuid
          title: Preset Id
        preset_version_id:
          type: string
          format: uuid
          title: Preset Version Id
      additionalProperties: false
      type: object
      required:
        - preset
        - preset_id
        - preset_version_id
      title: ResolvedAttachedSubagentRef
      description: Persisted subagent ref with immutable preset/version identifiers.
    CaseArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: case
          title: Type
          default: case
        severity:
          $ref: '#/components/schemas/CaseSeverity'
        status:
          $ref: '#/components/schemas/CaseStatus'
      additionalProperties: false
      type: object
      required:
        - id
        - title
        - severity
        - status
      title: CaseArtifact
      description: Case artifact shown in artifact-capable chat surfaces.
    WorkflowArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: workflow
          title: Type
          default: workflow
        color:
          type: string
          title: Color
        isPublished:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Ispublished
      additionalProperties: false
      type: object
      required:
        - id
        - title
        - color
      title: WorkflowArtifact
      description: Workflow artifact shown in artifact-capable chat surfaces.
    RunArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: run
          title: Type
          default: run
        workflowId:
          type: string
          title: Workflowid
        status:
          type: string
          enum:
            - running
            - success
            - failed
            - cancelled
          title: Status
        startedAt:
          type: string
          format: date-time
          title: Startedat
      additionalProperties: false
      type: object
      required:
        - id
        - title
        - workflowId
        - status
        - startedAt
      title: RunArtifact
      description: Workflow run artifact shown in artifact-capable chat surfaces.
    TableArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: table
          title: Type
          default: table
        rowCount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rowcount
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: TableArtifact
      description: Table artifact shown in artifact-capable chat surfaces.
    AgentArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: agent
          title: Type
          default: agent
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: AgentArtifact
      description: Agent preset artifact shown in artifact-capable chat surfaces.
    AlertArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: alert
          title: Type
          default: alert
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: AlertArtifact
      description: Alert artifact stub. Extend when alert surfaces are wired.
    IntegrationArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: integration
          title: Type
          default: integration
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: IntegrationArtifact
      description: Integration artifact stub. Extend when integration surfaces are wired.
    SecretArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: secret
          title: Type
          default: secret
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: SecretArtifact
      description: Secret artifact stub. Extend when secret surfaces are wired.
    GenericArtifact:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        scope:
          anyOf:
            - $ref: '#/components/schemas/ArtifactScope'
            - type: 'null'
        type:
          type: string
          const: generic
          title: Type
          default: generic
        data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data
      additionalProperties: false
      type: object
      required:
        - id
        - title
      title: GenericArtifact
      description: Escape hatch for surfaced objects without a dedicated panel view.
    TextUIPart:
      properties:
        type:
          type: string
          const: text
          title: Type
        text:
          type: string
          title: Text
        state:
          type: string
          enum:
            - streaming
            - done
          title: State
        providerMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Providermetadata
      additionalProperties: false
      type: object
      required:
        - type
        - text
      title: TextUIPart
      description: A text part of a message.
    ReasoningUIPart:
      properties:
        type:
          type: string
          const: reasoning
          title: Type
        text:
          type: string
          title: Text
        state:
          type: string
          enum:
            - streaming
            - done
          title: State
        providerMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Providermetadata
      additionalProperties: false
      type: object
      required:
        - type
        - text
      title: ReasoningUIPart
      description: A reasoning part of a message.
    SourceUrlUIPart:
      properties:
        type:
          type: string
          const: source-url
          title: Type
        sourceId:
          type: string
          title: Sourceid
        url:
          type: string
          title: Url
        title:
          type: string
          title: Title
        providerMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Providermetadata
      additionalProperties: false
      type: object
      required:
        - type
        - sourceId
        - url
      title: SourceUrlUIPart
      description: A source URL part of a message.
    SourceDocumentUIPart:
      properties:
        type:
          type: string
          const: source-document
          title: Type
        sourceId:
          type: string
          title: Sourceid
        mediaType:
          type: string
          title: Mediatype
        title:
          type: string
          title: Title
        filename:
          type: string
          title: Filename
        providerMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Providermetadata
      additionalProperties: false
      type: object
      required:
        - type
        - sourceId
        - mediaType
        - title
      title: SourceDocumentUIPart
      description: A document source part of a message.
    FileUIPart:
      properties:
        type:
          type: string
          const: file
          title: Type
        mediaType:
          type: string
          title: Mediatype
        url:
          type: string
          title: Url
        filename:
          type: string
          title: Filename
        providerMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Providermetadata
      additionalProperties: false
      type: object
      required:
        - type
        - mediaType
        - url
      title: FileUIPart
      description: A file part of a message.
    StepStartUIPart:
      properties:
        type:
          type: string
          const: step-start
          title: Type
      additionalProperties: false
      type: object
      required:
        - type
      title: StepStartUIPart
      description: A step boundary part of a message.
    DynamicToolUIPartInputStreaming:
      properties:
        type:
          type: string
          const: dynamic-tool
          title: Type
        toolName:
          type: string
          title: Toolname
        toolCallId:
          type: string
          title: Toolcallid
        state:
          type: string
          const: input-streaming
          title: State
        input:
          title: Input
        output:
          type: 'null'
          title: Output
        errorText:
          type: 'null'
          title: Errortext
      additionalProperties: false
      type: object
      required:
        - type
        - toolName
        - toolCallId
        - state
      title: DynamicToolUIPartInputStreaming
    DynamicToolUIPartInputAvailable:
      properties:
        type:
          type: string
          const: dynamic-tool
          title: Type
        toolName:
          type: string
          title: Toolname
        toolCallId:
          type: string
          title: Toolcallid
        state:
          type: string
          const: input-available
          title: State
        input:
          title: Input
        output:
          type: 'null'
          title: Output
        errorText:
          type: 'null'
          title: Errortext
        callProviderMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Callprovidermetadata
      additionalProperties: false
      type: object
      required:
        - type
        - toolName
        - toolCallId
        - state
        - input
      title: DynamicToolUIPartInputAvailable
    DynamicToolUIPartOutputAvailable:
      properties:
        type:
          type: string
          const: dynamic-tool
          title: Type
        toolName:
          type: string
          title: Toolname
        toolCallId:
          type: string
          title: Toolcallid
        state:
          type: string
          const: output-available
          title: State
        input:
          title: Input
        output:
          title: Output
        errorText:
          type: 'null'
          title: Errortext
        callProviderMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Callprovidermetadata
        preliminary:
          type: boolean
          title: Preliminary
      additionalProperties: false
      type: object
      required:
        - type
        - toolName
        - toolCallId
        - state
        - input
        - output
      title: DynamicToolUIPartOutputAvailable
    DynamicToolUIPartOutputError:
      properties:
        type:
          type: string
          const: dynamic-tool
          title: Type
        toolName:
          type: string
          title: Toolname
        toolCallId:
          type: string
          title: Toolcallid
        state:
          type: string
          const: output-error
          title: State
        input:
          title: Input
        output:
          type: 'null'
          title: Output
        errorText:
          type: string
          title: Errortext
        callProviderMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Callprovidermetadata
      additionalProperties: false
      type: object
      required:
        - type
        - toolName
        - toolCallId
        - state
        - input
        - errorText
      title: DynamicToolUIPartOutputError
    ToolUIPartInputStreaming:
      properties:
        type:
          type: string
          title: Type
        toolCallId:
          type: string
          title: Toolcallid
        state:
          type: string
          const: input-streaming
          title: State
        input:
          title: Input
        providerExecuted:
          type: boolean
          title: Providerexecuted
        output:
          type: 'null'
          title: Output
        errorText:
          type: 'null'
          title: Errortext
      additionalProperties: false
      type: object
      required:
        - type
        - toolCallId
        - state
      title: ToolUIPartInputStreaming
    ToolUIPartInputAvailable:
      properties:
        type:
          type: string
          title: Type
        toolCallId:
          type: string
          title: Toolcallid
        state:
          type: string
          const: input-available
          title: State
        input:
          title: Input
        providerExecuted:
          type: boolean
          title: Providerexecuted
        output:
          type: 'null'
          title: Output
        errorText:
          type: 'null'
          title: Errortext
        callProviderMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Callprovidermetadata
      additionalProperties: false
      type: object
      required:
        - type
        - toolCallId
        - state
        - input
      title: ToolUIPartInputAvailable
    ToolUIPartOutputAvailable:
      properties:
        type:
          type: string
          title: Type
        toolCallId:
          type: string
          title: Toolcallid
        state:
          type: string
          const: output-available
          title: State
        input:
          title: Input
        output:
          title: Output
        errorText:
          type: 'null'
          title: Errortext
        providerExecuted:
          type: boolean
          title: Providerexecuted
        callProviderMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Callprovidermetadata
        preliminary:
          type: boolean
          title: Preliminary
      additionalProperties: false
      type: object
      required:
        - type
        - toolCallId
        - state
        - input
        - output
      title: ToolUIPartOutputAvailable
    ToolUIPartOutputError:
      properties:
        type:
          type: string
          title: Type
        toolCallId:
          type: string
          title: Toolcallid
        state:
          type: string
          const: output-error
          title: State
        input:
          title: Input
        rawInput:
          title: Rawinput
        output:
          type: 'null'
          title: Output
        errorText:
          type: string
          title: Errortext
        providerExecuted:
          type: boolean
          title: Providerexecuted
        callProviderMetadata:
          additionalProperties:
            additionalProperties: true
            type: object
          type: object
          title: Callprovidermetadata
      additionalProperties: false
      type: object
      required:
        - type
        - toolCallId
        - state
        - errorText
      title: ToolUIPartOutputError
    DataUIPart:
      properties:
        type:
          type: string
          pattern: ^data-.+$
          title: Type
        id:
          type: string
          title: Id
        data:
          title: Data
      additionalProperties: false
      type: object
      required:
        - type
        - data
      title: DataUIPart
      description: A custom data part, where type matches 'data-...'.
    ArtifactScope:
      properties:
        agentId:
          anyOf:
            - type: string
            - type: 'null'
          title: Agentid
        agentType:
          anyOf:
            - type: string
            - type: 'null'
          title: Agenttype
        parentToolCallId:
          anyOf:
            - type: string
            - type: 'null'
          title: Parenttoolcallid
      additionalProperties: false
      type: object
      title: ArtifactScope
      description: Attribution scope for artifact data parts.
    CaseSeverity:
      type: string
      enum:
        - unknown
        - informational
        - low
        - medium
        - high
        - critical
        - fatal
        - other
      title: CaseSeverity
      description: |-
        Case severity values aligned with OCSF severity values.

        Values:
            UNKNOWN (0): The event/finding severity is unknown
            INFORMATIONAL (1): Informational message. No action required
            LOW (2): The user decides if action is needed
            MEDIUM (3): Action is required but the situation is not serious at this time
            HIGH (4): Action is required immediately
            CRITICAL (5): Action is required immediately and the scope is broad
            FATAL (6): An error occurred but it is too late to take remedial action
            OTHER (99): The event/finding severity is not mapped
    CaseStatus:
      type: string
      enum:
        - unknown
        - new
        - in_progress
        - on_hold
        - resolved
        - closed
        - other
      title: CaseStatus
      description: Case status values aligned with OCSF Incident Finding status.
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````