UiPath Documentation
activities
latest
false
Integration Service アクティビティ
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

Invoke an Agent

Send a message to a remote Agent2Agent (A2A) agent from a Maestro agentic process and use the agent's response in later process steps.

説明​

This activity sends a message to a remote A2A agent and returns the agent's response, so the agent can take part in a process orchestrated by Maestro.

The agent answers in one of two ways:

  • Immediate reply: the agent returns a message, and the task completes with that message.
  • Long-running task: the agent returns a task. Integration Service polls the agent for the task status, and the task completes when the agent task reaches a final state. For details, refer to Agent 2 Agent events.

前提条件​

Maestro プロセスにアクティビティを追加する​

  1. キャンバスにサービス タスク要素を追加し、タスクの [ プロパティ ] パネルを開きます。
  2. [ 実装 ] セクションの [ アクション ] ドロップダウン リストから、[ 外部エージェントを起動し、待機] を選択します。
  3. Select the Agent 2 Agent connector.
  4. 既存のコネクションを選択するか、新しいコネクションを作成します。
  5. From Activity, select Invoke an Agent.
  6. From Agent Skills, select the skill to use.
  7. In Message content, enter the message to send to the agent.

At runtime, Maestro sends the message to the agent and waits for the response before moving to the next step.

構成​

フィールド方向説明
コネクション入力Integration Service で確立されたコネクション。ドロップダウン メニューからコネクションを選択、追加、または管理します。
Agent Skills入力Required. A skill from the Agent Card of the agent. Selecting a skill shows its description, examples, and parameters, to help you write the message.
メッセージの内容入力必須。エージェントに送信されるメッセージのテキストです。
ロール入力Optional. The role of the message sender, for example user.
Context identifierInput and outputOptional. The ID of an existing conversation context. Enter the Context identifier output of an earlier Invoke an Agent task to continue that conversation.
Blocking (ブロック)入力Optional. Whether to ask the agent for a synchronous reply instead of a long-running task.
Accepted output modes入力Optional. The response formats you accept, for example text.
History length入力Optional. The number of previous messages to include in the context.
メタデータInput and outputOptional. Key-value pairs for additional context or tracking information.
Current status state出力The final state of the agent task, for a long-running task.
Status error出力Error information, if the agent task failed.
成果物出力The results produced by the agent task. Each artifact has an identifier, a name, and parts. The Artifact part text field holds the text of each part.
履歴出力The messages exchanged in the task, with their role and text.

プロセスでエージェントの応答を使用する​

エージェントの応答がプロセスに影響を与えるには (たとえばゲートウェイで意思決定を行うには)、エージェントの応答をプロセス変数に割り当てます。

  1. デザイン モードで、キャンバス上でサービス タスクを選択します。
  2. [プロパティ] を選択します。
  3. [ 出力] で [ 新規追加] を選択します。
  4. String 型の変数を追加します (例: agent_response)。
  5. For Value, select the field that holds the agent's answer from the task's response. For a long-running task, this is usually the Artifact part text field.
ヒント:

When a later step needs structured data, ask the agent to respond only with a JSON object, then parse the response in Maestro.

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得