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

# Suggest Assignee

> Recommend an assignee from a candidate pool.

Returns:
    Recommended candidate with rationale and confidence.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json post /agents/assists/suggest-assignee
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /agents/assists/suggest-assignee:
    post:
      tags:
        - assists
      summary: Suggest Assignee
      description: |-
        Recommend an assignee from a candidate pool.

        Returns:
            Recommended candidate with rationale and confidence.
      operationId: assists-suggest_assignee
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SuggestAssigneeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuggestAssigneeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SuggestAssigneeRequest:
      properties:
        task_id:
          type: string
          title: Task Id
        candidates:
          items:
            $ref: '#/components/schemas/AssigneeCandidate'
          type: array
          title: Candidates
      type: object
      required:
        - task_id
        - candidates
      title: SuggestAssigneeRequest
      description: |-
        Request body for the ``suggest-assignee`` assist.

        Attributes:
            task_id: Task to assign.
            candidates: Eligible agent instances for the assist to rank.
    SuggestAssigneeResponse:
      properties:
        instance_id:
          type: string
          title: Instance Id
        rationale:
          type: string
          title: Rationale
        confidence:
          type: number
          title: Confidence
      type: object
      required:
        - instance_id
        - rationale
        - confidence
      title: SuggestAssigneeResponse
      description: |-
        Response body for the ``suggest-assignee`` assist.

        Attributes:
            instance_id: Recommended agent instance identifier.
            rationale: Short explanation of why this candidate was picked.
            confidence: Model confidence in the suggestion, in ``[0.0, 1.0]``.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AssigneeCandidate:
      properties:
        instance_id:
          type: string
          title: Instance Id
        type:
          type: string
          title: Type
        current_load:
          type: integer
          title: Current Load
        recent_tasks:
          items:
            type: string
          type: array
          title: Recent Tasks
      type: object
      required:
        - instance_id
        - type
        - current_load
        - recent_tasks
      title: AssigneeCandidate
      description: |-
        An agent instance the caller wants the assist to consider.

        Attributes:
            instance_id: Candidate agent instance identifier.
            type: Candidate type (e.g., the agent type slug).
            current_load: Current in-flight task count for the candidate.
            recent_tasks: Identifiers of tasks the candidate worked on
                recently — used as evidence of capability fit.
    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

````