跳转至

CreateAgentSession

从 ListAgents 中与编码或聊天 Agent 启动新会话。提供该 Agent 的 botId 和一个自包含的初始 prompt。新会话不继承当前对话。在第一个 prompt 被接受后(而非完成工作后)返回其会话 ID。使用 ManageAgentSession 继续现有会话。只创建一次;不要在不确定失败后自动重试。

Parameters

Parameter Type Required Description
agentId string Yes 来自 ListAgents 的 Agent 角色 botId。
prompt string Yes 完整的初始任务及相关上下文。

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 macro3/macro