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

# Stream Agent Actions

> Stream real-time agent actions via Server-Sent Events.

Subscribes to NATS for agent action notifications and forwards
them as SSE events. The connection stays open until the client
disconnects.

Returns:
    SSE stream of agent action entries.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json get /projects/{project_id}/agents/{agent_id}/actions/stream
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /projects/{project_id}/agents/{agent_id}/actions/stream:
    get:
      tags:
        - agents
      summary: Stream Agent Actions
      description: |-
        Stream real-time agent actions via Server-Sent Events.

        Subscribes to NATS for agent action notifications and forwards
        them as SSE events. The connection stays open until the client
        disconnects.

        Returns:
            SSE stream of agent action entries.
      operationId: agents-stream_agent_actions
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
      responses:
        '200':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````