Authorizations
DashScope API Key
Path Parameters
Response
会话 ID,格式 sesn_<ULID>
固定为 session
会话状态:idle / running / terminated
会话回到 idle 的原因,是一个判别联合:null(running,或 idle 刚创建、尚未产生结束原因)| end_turn(模型主动结束)| retries_exhausted(重试耗尽)| requires_action(等待工具审批)。stop_reason 仅在会话状态为 idle 时用于判断交互状态:running 时为 null;terminated 是终态,接口可能保留此前值,客户端不应依赖或解释。仅 requires_action 分支携带 pending_batch_id 与非空 pending_call_ids;客户端据此还原审批卡片:用 pending_batch_id + pending_call_ids 定位当前待裁决调用,再通过事件 API 拉取对应的 tool_approval_request。畸形对象应校验失败,例如 {}、{"type":"requires_action"}(缺 pending_batch_id/pending_call_ids)、{"type":"requires_action","pending_call_ids":[]}(pending_call_ids 为空)、{"type":"requires_action","pending_batch_id":"","pending_call_ids":["call_xxx"]}(空批次 ID)、{"type":"requires_action","pending_batch_id":"b","pending_call_ids":[""]}(pending_call_ids 含空 item)、{"type":"end_turn","pending_batch_id":"b","pending_call_ids":["c"]}(终态夹带 pending 字段)均非法。全部审批批次/调用 ID 均非空(minLength: 1)
智能体配置完整快照(创建时锁定),含 id/version/name/model/system/tools 等
绑定的运行环境 ID
会话标题
业务自定义元数据
归档时间,未归档时为 null
创建时间,ISO 8601
最近更新时间,ISO 8601
本次请求的唯一标识