> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-codex-docs-audit-20260719-0149.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Continue Agent Run

> Advance a persisted agent run from its current state. Dispatches on the body shape and the persisted run state (see ADR-003 in specs/agno/features/checkpointing/decisions.md).

**Variants:**
- PAUSED + tools provided → apply HITL tool results, resume
- PAUSED + resolved admin approval (empty tools) → apply resolution, resume
- RUNNING / ERROR (no unresolved HITL requirements) → resume from last persisted state
- COMPLETED + new tools → continue with appended messages

**Tools Parameter:**
JSON string containing array of tool execution objects with results. Optional — only required when the persisted run has unresolved HITL requirements.



## OpenAPI

````yaml post /agents/{agent_id}/runs/{run_id}/continue
openapi: 3.1.0
info:
  title: Agno API Reference
  description: The all-in-one, private, secure agent platform that runs in your cloud.
  version: 2.7.4
servers: []
security: []
paths:
  /agents/{agent_id}/runs/{run_id}/continue:
    post:
      tags:
        - Agents
      summary: Continue Agent Run
      description: >-
        Advance a persisted agent run from its current state. Dispatches on the
        body shape and the persisted run state (see ADR-003 in
        specs/agno/features/checkpointing/decisions.md).


        **Variants:**

        - PAUSED + tools provided → apply HITL tool results, resume

        - PAUSED + resolved admin approval (empty tools) → apply resolution,
        resume

        - RUNNING / ERROR (no unresolved HITL requirements) → resume from last
        persisted state

        - COMPLETED + new tools → continue with appended messages


        **Tools Parameter:**

        JSON string containing array of tool execution objects with results.
        Optional — only required when the persisted run has unresolved HITL
        requirements.
      operationId: continue_agent_run
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_continue_agent_run'
      responses:
        '200':
          description: >-
            A non-streaming run response or a server-sent event stream.
            Streaming execution failures are delivered as events after the
            stream starts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunSchema'
            text/event-stream:
              example: |+
                event: RunContent
                data: {"created_at": 1757348314, "run_id": "123..."}

              schema:
                type: string
        '400':
          description: >-
            Invalid tools or continuation boundary, missing local session ID,
            rejected input, or background streaming requested for a remote agent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthenticatedResponse'
        '403':
          description: Agent run access denied, or a required admin approval is unresolved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponse'
        '404':
          description: Agent, session, or run not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
        '409':
          description: Run is in a state that cannot be continued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
        '501':
          description: The selected agent does not support run continuation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotImplementedResponse'
        '503':
          description: Remote agent is unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableResponse'
      security:
        - {}
        - HTTPBearer: []
components:
  schemas:
    Body_continue_agent_run:
      properties:
        tools:
          type: string
          title: Tools
          description: JSON string of tool call results to continue the paused run
          default: ''
        input:
          anyOf:
            - type: string
            - type: 'null'
          title: Input
          description: >-
            Optional new user-message text to append to the run before resuming.
            Use for continuing a COMPLETED run with a follow-up, or adding
            context to a RUNNING/ERROR resume.
        continue_from:
          type: string
          title: Continue From
          description: >-
            Continuation boundary. Use 'end', 'last_user', or a numeric message
            index.
          default: end
        fork:
          type: boolean
          title: Fork
          description: >-
            When true, clone the run with a new ``run_id`` before resuming. The
            original is untouched; the clone becomes a sibling within the same
            session, with ``forked_from_run_id`` set.
          default: false
        regenerate:
          type: boolean
          title: Regenerate
          description: >-
            Sugar: regenerate the last response of this run. Auto-computes
            ``continue_from='last_user'`` to land just after the last user
            message. Pair with ``additional_instructions`` to steer the new
            output. By default the original response is hidden from history
            (replaced); pass ``replace_original=false`` to keep both the
            original and the regenerated response visible side by side.
          default: false
        replace_original:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Replace Original
          description: >-
            Only valid with ``regenerate=true``. Controls history visibility of
            the original response; the original run is always retained in
            storage. Defaults to true: the original is marked REGENERATED and
            hidden from history so the new response replaces it. Pass false to
            keep both the original and regenerated responses visible.
        additional_instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Additional Instructions
          description: >-
            Only valid with ``regenerate=true``: extra guidance appended as a
            user message before re-generation. Friendly alias for ``input``.
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
          description: Session ID for the paused run
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
          description: User identifier for tracking and personalization
        stream:
          type: boolean
          title: Stream
          description: Enable streaming responses via Server-Sent Events (SSE)
          default: true
        background:
          type: boolean
          title: Background
          description: >-
            Run continue in background (survives client disconnect). Requires
            database. Use /resume to reconnect.
          default: false
      type: object
      title: Body_continue_agent_run
    RunSchema:
      properties:
        run_id:
          type: string
          title: Run Id
          description: Unique identifier for the run
        parent_run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Run Id
          description: Parent run ID if this is a nested run
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Id
          description: Agent ID that executed this run
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
          description: User ID associated with the run
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Run status (PENDING, RUNNING, COMPLETED, ERROR, etc.)
        run_input:
          anyOf:
            - type: string
            - type: 'null'
          title: Run Input
          description: Input provided to the run
        content:
          anyOf:
            - type: string
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Content
          description: Output content from the run
        run_response_format:
          anyOf:
            - type: string
            - type: 'null'
          title: Run Response Format
          description: Format of the response (text/json)
        reasoning_content:
          anyOf:
            - type: string
            - type: 'null'
          title: Reasoning Content
          description: Reasoning content if reasoning was enabled
        reasoning_steps:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Reasoning Steps
          description: List of reasoning steps
        metrics:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metrics
          description: Performance and usage metrics
        messages:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Messages
          description: Message history for the run
        tools:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Tools
          description: Tools used in the run
        events:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Events
          description: Events generated during the run
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
          description: Run creation timestamp
        references:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: References
          description: References cited in the run
        citations:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Citations
          description: Citations from the model (e.g., from Gemini grounding/search)
        reasoning_messages:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Reasoning Messages
          description: Reasoning process messages
        session_state:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Session State
          description: Session state at the end of the run
        images:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Images
          description: Images included in the run
        videos:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Videos
          description: Videos included in the run
        audio:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Audio
          description: Audio files included in the run
        files:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Files
          description: Files included in the run
        response_audio:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Response Audio
          description: Audio response if generated
        input_media:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Input Media
          description: Input media attachments
        followups:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Followups
          description: Followup suggestions generated after the run
        forked_from_run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Forked From Run Id
          description: If this run was forked from another run, the source run's ID
        forked_from_message_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Forked From Message Index
          description: >-
            If this run was forked, the message index at which the source was
            truncated
        forked_from_session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Forked From Session Id
          description: If this run was created via session branch, the source session's ID
        regenerated_from:
          anyOf:
            - type: string
            - type: 'null'
          title: Regenerated From
          description: If this run was produced via regenerate=true, the source run's ID
        last_checkpoint_at_message_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Last Checkpoint At Message Index
          description: >-
            Message index of the most recent mid-run checkpoint
            (checkpoint='tool-batch' runs)
      type: object
      required:
        - run_id
      title: RunSchema
    BadRequestResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
          description: Error code for categorization
      type: object
      required:
        - detail
      title: BadRequestResponse
      example:
        detail: Bad request
        error_code: BAD_REQUEST
    UnauthenticatedResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
          description: Error code for categorization
      type: object
      required:
        - detail
      title: UnauthenticatedResponse
      example:
        detail: Unauthenticated access
        error_code: UNAUTHENTICATED
    ForbiddenResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
      type: object
      required:
        - detail
      title: ForbiddenResponse
      example:
        detail: Insufficient permissions
    NotFoundResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
          description: Error code for categorization
      type: object
      required:
        - detail
      title: NotFoundResponse
      example:
        detail: Not found
        error_code: NOT_FOUND
    ConflictResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
      type: object
      required:
        - detail
      title: ConflictResponse
      example:
        detail: Resource conflict
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InternalServerErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
          description: Error code for categorization
      type: object
      required:
        - detail
      title: InternalServerErrorResponse
      example:
        detail: Internal server error
        error_code: INTERNAL_SERVER_ERROR
    NotImplementedResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
      type: object
      required:
        - detail
      title: NotImplementedResponse
      example:
        detail: Operation not supported for this resource type
    ServiceUnavailableResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error detail message
      type: object
      required:
        - detail
      title: ServiceUnavailableResponse
      example:
        detail: Feature not supported by the configured service
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````