> ## 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.

# Summarize Thread

> Summarize a task comment thread.

Returns:
    Summary, decisions, open questions, and action items.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json post /agents/assists/summarize-thread
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /agents/assists/summarize-thread:
    post:
      tags:
        - assists
      summary: Summarize Thread
      description: |-
        Summarize a task comment thread.

        Returns:
            Summary, decisions, open questions, and action items.
      operationId: assists-summarize_thread
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SummarizeThreadRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SummarizeThreadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SummarizeThreadRequest:
      properties:
        task_id:
          type: string
          title: Task Id
      type: object
      required:
        - task_id
      title: SummarizeThreadRequest
      description: |-
        Request body for the ``summarize-thread`` assist.

        The server pulls the comment thread for ``task_id`` — callers do
        not (and cannot) inline the messages themselves.

        Attributes:
            task_id: Task whose comment thread should be summarized.
    SummarizeThreadResponse:
      properties:
        summary:
          type: string
          title: Summary
        decisions:
          items:
            type: string
          type: array
          title: Decisions
        open_questions:
          items:
            type: string
          type: array
          title: Open Questions
        action_items:
          items:
            type: string
          type: array
          title: Action Items
      type: object
      required:
        - summary
        - decisions
        - open_questions
        - action_items
      title: SummarizeThreadResponse
      description: |-
        Response body for the ``summarize-thread`` assist.

        Attributes:
            summary: Plain-language summary of the conversation.
            decisions: Decisions that were reached in the thread.
            open_questions: Outstanding questions that still need answers.
            action_items: Concrete follow-ups extracted from the thread.
    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

````