创建新会话
ManageOrgSessions 权限的服务用户账号。
| 功能 | 所需权限 |
|---|---|
create_as_user_id | ImpersonateOrgSessions |
create_as_user_id 参数允许代表其他用户创建会话。前提条件如下:
ImpersonateOrgSessions 权限UseDevinSessions 权限服务用户凭据(前缀:cog_)
analyze, create, improve, batch, manage 1 - 2083用于验证结构化输出的 JSON Schema(Draft 7),最大 64KB。必须是自包含的(不允许外部 $ref)。
成功响应
new, creating, claimed, running, exit, error, suspended, resuming 有关 session 当前状态的更多详情。当 status 为“running”时,取值可能为“working”(正在执行)、“waiting_for_user”(需要用户输入)、“waiting_for_approval”(在安全模式下等待操作批准)或“finished”(任务已完成)。当 status 为“suspended”时,表示挂起原因,例如“inactivity”“user_request”“usage_limit_exceeded”“out_of_credits”“out_of_quota”“no_quota_allocation”“payment_declined”“org_usage_limit_exceeded”或“error”。仅在 GET/list 端点中返回。
working, waiting_for_user, waiting_for_approval, finished, inactivity, user_request, usage_limit_exceeded, out_of_credits, out_of_quota, no_quota_allocation, payment_declined, org_usage_limit_exceeded, error 来自会话的已验证结构化输出。仅在 GET/LIST 端点中返回。