> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-content-gov.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# One-shot completion via a deployed agent

> Single-turn LLM completion against the deployed agent model.



## OpenAPI

````yaml /agent-platform/apis/conversation.json post /api/v1/project/{projectSlug}/{env}/agent/{agentSlug}/complete
openapi: 3.0.3
info:
  description: Runtime API for workflow/chat/deployment/session execution.
  title: ABL Runtime API - public/conversation
  version: 1.0.0
  x-generated: 'do not edit; source: route contracts'
servers: []
security: []
paths:
  /api/v1/project/{projectSlug}/{env}/agent/{agentSlug}/complete:
    post:
      tags:
        - Conversation
      summary: One-shot completion via a deployed agent
      description: Single-turn LLM completion against the deployed agent model.
      operationId: runtime.agent.complete
      parameters:
        - description: Project slug
          in: path
          name: projectSlug
          required: true
          schema:
            description: Project slug
            type: string
        - description: Environment tier
          in: path
          name: env
          required: true
          schema:
            description: Environment tier
            enum:
              - dev
              - staging
              - production
            type: string
        - description: Deployed agent slug
          in: path
          name: agentSlug
          required: true
          schema:
            description: Deployed agent slug
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                maxTokens:
                  type: number
                messages:
                  description: Conversation messages
                  items:
                    properties:
                      content:
                        type: string
                      role:
                        enum:
                          - system
                          - user
                          - assistant
                          - tool
                        type: string
                    required:
                      - role
                      - content
                    type: object
                  type: array
                modelId:
                  type: string
                temperature:
                  type: number
              required:
                - messages
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  content:
                    type: string
                  finishReason:
                    type: string
                  latencyMs:
                    type: number
                  model:
                    type: string
                  usage:
                    properties:
                      estimatedCost:
                        nullable: true
                        type: number
                      inputTokens:
                        type: number
                      outputTokens:
                        type: number
                      totalTokens:
                        type: number
                    required:
                      - inputTokens
                      - outputTokens
                      - totalTokens
                      - estimatedCost
                    type: object
                required:
                  - content
                  - usage
                  - latencyMs
                type: object
          description: Success
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal server error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ErrorResponse:
      properties:
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````