Creates a model task. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model’s task.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request payload for POST /tasks. Maps to the CreateTask Pydantic model in server.
当前用户输入内容(多模态),按顺序提供给主 Agent。 消息内容,字符串或内容项数组,工具协议兼容的 message_content(保留字段)。
是否启用流式(SSE)返回;true 则以 text/event-stream 推送 Task 事件。
期望的结构化输出 JSON Schema;仅非流式模式有效,流式模式下将被忽略。
调用方客户端标识(如 AIME)。
请求链路唯一 ID;便于将复杂调用串联在一起。
会话 ID;用于跨多轮交互复用上下文。
任务 ID;用于区分主任务与子任务。
终端用户 ID。
指定主 Agent 的配置;为空则按 client_id 推断默认 Agent。
允许使用的工具白名单;为 null 允许全部,空数组表示禁止所有。
禁用的工具黑名单;为 null 或空数组不生效。
允许使用的子代理白名单;为 null 允许全部,空数组禁止所有。
命中则停止代理循环的工具名列表;为 null 或空数组不生效。
客户端自带工具定义;命中后会停止由服务端执行,等待客户端完成。
历史对话消息,用于提供上下文。
An output item produced by the agent/model.
隐藏的助手思考内容(不可见思考轨迹),如有将并入上下文。
An output item produced by the agent/model.
推理参数覆盖项(如温度、最大 tokens 等),具体字段由后端实现决定。
文件系统工作目录;供文件工具与代码解释器使用。
Agent 的运行时环境变量键值对。
日志输出目录。
回溯(rollout)结果保存目录。
是否在最终结果中返回 rollout 事件集合。
是否包含上下文压缩模型的 rollout 结果。
是否包含子 Agent 的 rollout 结果。