文档

API 参考

删除任务

删除任务及其消息。

任务会立即无法访问。智能体生成的文件属于项目,不会被删除。

OpenAPI

openapi: 3.1.0
info:
  title: BioAgent API — V1
  description: Public API for BioAgent, the biomedical AI agent platform.
  version: 0.1.0
servers:
  - url: https://bioagent.cloud/api/v1
    description: >-
      BioAgent public API base URL. Every endpoint on this page is served from
      this host.
security: []
paths:
  /experimental/tasks/{task_id}:
    delete:
      tags:
        - tasks
      summary: Delete a task
      description: Delete a task and its messages.
      operationId: delete_task_experimental_tasks__task_id__delete
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            title: Task Id
      responses:
        '200':
          description: Confirmation that the task was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskDeleted'
              example:
                type: task_deleted
                id: tsk_014MUnN99MEVcklVXXfFbxXb
      security:
        - bearerAuth: []
components:
  schemas:
    TaskDeleted:
      properties:
        type:
          type: string
          const: task_deleted
          title: Type
          default: task_deleted
        id:
          type: string
          title: Id
      type: object
      required:
        - id
      title: TaskDeleted
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Requires an API key. See the Authentication guide.