BetaAgentsOperations interface
BetaAgentsの操作を表すインターフェース。
プロパティ
| create |
エージェントエンドポイント用の新しいセッションを作成します。
エンドポイントは |
| delete |
同期的にセッションを削除します。 セッションが削除されたり存在しないと、204 No Contentを返します。 |
| delete |
セッションサンドボックスからファイルやディレクトリを削除してください。
|
| download |
セッションサンドボックスからバイナリストリームとしてファイルをダウンロードします。 |
| get |
IDでセッションを取得します。 |
| list |
セッションサンドボックス内の特定のパスにファイルとディレクトリをリストします。 指定されたディレクトリの直近の子のみを返します(非再帰的)。 |
| list |
指定されたエージェントのセッション一覧を返します。 |
| patch |
エージェントのエンドポイントを更新します。 |
| upload |
ファイルをバイナリストリーム経由でセッションサンドボックスにアップロードします。 最大ファイルサイズは50MBです。 この制限を超えるアップロードは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 No Contentを返します。
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 Conflictを返します。
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
ファイルをバイナリストリーム経由でセッションサンドボックスにアップロードします。 最大ファイルサイズは50MBです。 この制限を超えるアップロードは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>