API 参考
运行科学复核
检查已完成任务的分析在科学上是否准确。
复核智能体会重新阅读已完成任务的分析,检查科学准确性、数据使用是否正确、是否有缺乏支持的断言,以及是否说明了局限性。idle 或仍在 running 的任务没有可复核内容。
复核在后台运行。此调用立即返回 status: "running",不返回复核本身。完成后,GET /tasks/{task_id} 的 reviews 会出现新条目。用该条目确切的 message_id 通过 GET /tasks/{task_id}/messages/{message_id} 读取发现。
复核运行期间调用会返回运行中状态。上一次复核完成后调用会启动新的复核并替换之前的结果。
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}/review:
post:
tags:
- tasks
summary: Run a Scientific Review of a Task
description: Check a completed task's analysis for scientific accuracy.
operationId: review_task_experimental_tasks__task_id__review_post
parameters:
- name: task_id
in: path
required: true
schema:
type: string
title: Task Id
responses:
'200':
description: The review is running in the background.
content:
application/json:
schema:
$ref: '#/components/schemas/TaskReviewAck'
example:
type: task_review
id: tsk_014MUnN99MEVcklVXXfFbxXb
status: running
security:
- bearerAuth: []
components:
schemas:
TaskReviewAck:
properties:
type:
type: string
const: task_review
title: Type
default: task_review
id:
type: string
title: Id
status:
type: string
enum:
- running
- done
- failed
title: Status
type: object
required:
- id
- status
title: TaskReviewAck
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Requires an API key. See the Authentication guide.