你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BetaAgentsOperations interface

代表BetaAgent操作的接口。

属性

createSession

为代理端点创建一个新会话。 端点从中解析支持代理版本 version_indicator ,并使用提供的隔离密钥强制会话所有权,用于会话变异操作。

deleteSession

同步删除会话。 会话被删除或不存在时返回204 无内容。

deleteSessionFile

删除会话沙箱中的文件或目录。 如果 recursive 是 false(默认值),且目标目录为非空,API 返回 409 冲突。

downloadSessionFile

从会话沙盒下载文件作为二进制流。

getSession

通过ID检索会话。

listSessionFiles

在会话沙箱中,在给定路径上列出文件和目录。 只返回指定目录的直接子节点(非递归)。

listSessions

返回指定代理的会话列表。

patchAgent

更新代理端点。

uploadSessionFile

通过二进制流上传文件到会话沙箱。 最大文件大小为50 MB。 超过此限制的上传将返回413 有效载荷过大。

属性详细信息

createSession

为代理端点创建一个新会话。 端点从中解析支持代理版本 version_indicator ,并使用提供的隔离密钥强制会话所有权,用于会话变异操作。

createSession: (agentName: string, isolationKey: string, versionIndicator: VersionIndicatorUnion, options?: BetaAgentsCreateSessionOptionalParams) => Promise<AgentSessionResource>

属性值

(agentName: string, isolationKey: string, versionIndicator: VersionIndicatorUnion, options?: BetaAgentsCreateSessionOptionalParams) => Promise<AgentSessionResource>

deleteSession

同步删除会话。 会话被删除或不存在时返回204 无内容。

deleteSession: (agentName: string, sessionId: string, isolationKey: string, options?: BetaAgentsDeleteSessionOptionalParams) => Promise<void>

属性值

(agentName: string, sessionId: string, isolationKey: string, options?: BetaAgentsDeleteSessionOptionalParams) => Promise<void>

deleteSessionFile

删除会话沙箱中的文件或目录。 如果 recursive 是 false(默认值),且目标目录为非空,API 返回 409 冲突。

deleteSessionFile: (agentName: string, sessionId: string, path: string, options?: BetaAgentsDeleteSessionFileOptionalParams) => Promise<void>

属性值

(agentName: string, sessionId: string, path: string, options?: BetaAgentsDeleteSessionFileOptionalParams) => Promise<void>

downloadSessionFile

从会话沙盒下载文件作为二进制流。

downloadSessionFile: (agentName: string, sessionId: string, path: string, options?: BetaAgentsDownloadSessionFileOptionalParams) => Promise<BetaAgentsDownloadSessionFileResponse>

属性值

(agentName: string, sessionId: string, path: string, options?: BetaAgentsDownloadSessionFileOptionalParams) => Promise<BetaAgentsDownloadSessionFileResponse>

getSession

通过ID检索会话。

getSession: (agentName: string, sessionId: string, options?: BetaAgentsGetSessionOptionalParams) => Promise<AgentSessionResource>

属性值

(agentName: string, sessionId: string, options?: BetaAgentsGetSessionOptionalParams) => Promise<AgentSessionResource>

listSessionFiles

在会话沙箱中,在给定路径上列出文件和目录。 只返回指定目录的直接子节点(非递归)。

listSessionFiles: (agentName: string, sessionId: string, path: string, options?: BetaAgentsListSessionFilesOptionalParams) => Promise<SessionDirectoryListResponse>

属性值

(agentName: string, sessionId: string, path: string, options?: BetaAgentsListSessionFilesOptionalParams) => Promise<SessionDirectoryListResponse>

listSessions

返回指定代理的会话列表。

listSessions: (agentName: string, options?: BetaAgentsListSessionsOptionalParams) => PagedAsyncIterableIterator<AgentSessionResource, AgentSessionResource[], PageSettings>

属性值

(agentName: string, options?: BetaAgentsListSessionsOptionalParams) => PagedAsyncIterableIterator<AgentSessionResource, AgentSessionResource[], PageSettings>

patchAgent

更新代理端点。

patchAgent: (agentName: string, options?: BetaAgentsPatchAgentObjectOptionalParams) => Promise<Agent>

属性值

(agentName: string, options?: BetaAgentsPatchAgentObjectOptionalParams) => Promise<Agent>

uploadSessionFile

通过二进制流上传文件到会话沙箱。 最大文件大小为50 MB。 超过此限制的上传将返回413 有效载荷过大。

uploadSessionFile: (agentName: string, sessionId: string, path: string, content: Uint8Array, options?: BetaAgentsUploadSessionFileOptionalParams) => Promise<SessionFileWriteResponse>

属性值

(agentName: string, sessionId: string, path: string, content: Uint8Array, options?: BetaAgentsUploadSessionFileOptionalParams) => Promise<SessionFileWriteResponse>