Method: projects.locations.collections.engines.assistants.agents.a2a.v1.tasks.get

エージェントからタスクの現在の状態を取得します。

HTTP リクエスト

GET https://discoveryengine.googleapis.com/v1/{tenant=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*}/a2a/v1/{name=tasks/*}

この URL は gRPC Transcoding 構文を使用します。

パスパラメータ

パラメータ
tenant

string

パスパラメータとして指定されたテナント(省略可)。試験運用版。1.0 リリースでは変更される可能性があります。

name

string

必須。タスクのリソース名。形式: tasks/{taskId}

クエリ パラメータ

パラメータ
historyLength

integer

取得するタスクの履歴の最新メッセージの数。

リクエストの本文

リクエストの本文は空にする必要があります。

レスポンスの本文

成功した場合、レスポンスの本文には Task のインスタンスが含まれます。

認可スコープ

次の OAuth スコープのいずれかが必要です。

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite
  • https://www.googleapis.com/auth/discoveryengine.serving.readwrite

詳細については、Authentication Overview をご覧ください。