- Erste Schritte
- UiPath Konversations-Agents
- UiPath Agents in Studio Web
- Über UiPath Agents
- Lizenzierung
- Checkliste für die Konfiguration
- Codierte Agents in Studio Web
- Ausführung von Agents
- Agents und Workflows
- Bewährte Verfahren zum Erstellen von Agents
- Auswahl des besten Modells für Ihren Agenten
- Best Practices für das Veröffentlichen und Bereitstellen von Agents
- Bewährte Verfahren für Kontext-Engineering
- Best Practices für DeepRAG und Batch-Transformation: JIT vs. indexbasierte Strategien
- Arbeiten mit Dateien
- Kontexte
- Eskalationen
- Bewertungen
- Spuren von Agents
- Agent-Überprüfung (Vorschau)
- Codierte UiPath Agents
- Mit Coding Agents erstellen
Clientseitige Tools
Conversational agent tools that run in the user's browser or host application, so the agent can read client data and trigger actions in the host application.
Client-side tools run on the client surface, which is the user's browser or host application, instead of on the UiPath server. When the agent calls a client-side tool, the runtime pauses, sends the tool call to the client, and resumes when the client returns a result.
Wann clientseitige Tools verwendet werden sollten
Verwenden Sie clientseitige Tools, wenn der Agent:
- Read data from the host application that the server can't access, such as the contents of a task board, form fields, or session-specific state.
- Trigger actions in the host application, such as navigating to a page, opening a dialog, creating a record in the local UI, or updating a component.
- Use device or browser features that the server can't access, such as the clipboard, local storage, or geolocation.
Client-side tools are available only for conversational agents deployed through a surface that supports client-side tool handling, such as the UiPath TypeScript SDK or any surface that implements the UiPath conversation protocol. The surface must register a handler for each client-side tool, and tools without a registered handler return an error to the agent.
Konfigurieren von clientseitigen Tools
So fügen Sie Ihrem Conversational Agent ein clientseitiges Tool hinzu:
-
Wählen Sie im Agent-Designer die Option „Tool hinzufügen“ aus.
-
Wählen Sie die Kategorie Client-seitige Tools aus.
-
Füllen Sie folgende Felder aus:
- Tool name: a unique name for the tool. The name must begin with a letter or underscore, and can contain only letters, digits, spaces, and underscores.
- Description: what the tool does and when to use it. The agent uses this description to decide when to call the tool.
- Input schema: a JSON Schema object that defines the parameters the agent passes to the client when it calls the tool.
- Output schema: a JSON Schema object that defines the structure of the result the client returns to the agent.
-
Wählen Sie Erstellen.
After you create the tool, you can configure more settings in the tool properties panel:
- Bearbeiten Sie den Namen des Tools, die Beschreibung und die Schemas.
- Wenden Sie Leitplanken an, um Runtime-Richtlinien zu erzwingen.
- Enable tool-call confirmations to require user approval before the tool runs.
Eingabe- und Ausgabeschemas
Beide Schemas sind erforderlich und müssen gültige JSON Schema-Objekte sein. Sie definieren den Vertrag zwischen dem Agent und dem Kunden:
- The input schema specifies the data that the agent sends to the client when it calls the tool. The agent fills in the input values from the conversation context and the schema definition.
- The output schema specifies the data that the client returns to the agent after it runs the tool. The agent uses this result to continue its reasoning.
Beispielschemas
For a tool that reads tasks from a project board, the input schema is:
{
"type": "object",
"properties": {
"boardId": {
"type": "string",
"description": "The ID of the task board to read from"
},
"status": {
"type": "string",
"enum": ["todo", "in-progress", "done"],
"description": "Filter tasks by status"
}
},
"required": ["boardId"]
}
{
"type": "object",
"properties": {
"boardId": {
"type": "string",
"description": "The ID of the task board to read from"
},
"status": {
"type": "string",
"enum": ["todo", "in-progress", "done"],
"description": "Filter tasks by status"
}
},
"required": ["boardId"]
}
The output schema is:
{
"type": "object",
"properties": {
"tasks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"title": { "type": "string" },
"status": { "type": "string" },
"assignee": { "type": "string" }
}
}
}
}
}
{
"type": "object",
"properties": {
"tasks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"title": { "type": "string" },
"status": { "type": "string" },
"assignee": { "type": "string" }
}
}
}
}
}
Verhalten bei vorgefertigten Oberflächen
On pre-built surfaces, such as Instance Management and iFrame embedding, a client-side tool displays a form to the user based on the output schema. The user fills in the fields and submits the result back to the agent.
On custom surfaces built with the UiPath TypeScript SDK, the host application handles tool calls programmatically. It reads data, triggers actions, or interacts with local systems without manual user input.
So funktionieren clientseitige Tools zur Runtime
Wenn der Agent während eines Gesprächs ein clientseitiges Tool aufruft:
- Der Agent entscheidet, dass das Tool basierend auf dem Konversationskontext und der Toolbeschreibung verwendet wird.
- Wenn Bestätigungen für Toolaufrufe aktiviert sind, überprüft und genehmigt der Benutzer die vorgeschlagene Eingabe, bevor das Tool fortfährt.
- The runtime sends the tool call to the client surface, including the tool name, the input values, and the input and output schemas.
- The client surface runs its registered handler for the tool with the provided input.
- Der Client gibt das Ergebnis an die Runtime zurück.
- Der Agent erhält das Ergebnis und setzt seine Argumentation fort.
Bestätigungen von Tool-Aufrufen
You can require user confirmation before a client-side tool runs. Use confirmations for tools that perform actions with visible side effects, such as creating a task, updating a record, or navigating away from the current page.
To require confirmation for a client-side tool:
- Wählen Sie das clientseitige Tool im Agent-Designer aus.
- Aktivieren Sie in den Tooleigenschaften die Option Bestätigung erfordern.
When confirmation is enabled, the agent pauses before it runs the tool and shows the user the proposed input parameters. The user can approve the tool call, modify the inputs, or reject the tool call. For details, refer to Tool-call confirmations.
Beispiel: Projektplanungsassistent
A project planning assistant is embedded in a task management application. The agent has two client-side tools:
read_board_tasks: reads the current tasks from the user's task board in the host application.create_task: creates a new task on the user's board.
When a user asks "What should I work on next?", the agent calls read_board_tasks to read data from the client. The host application reads the board state and returns the task data. The agent then analyzes the tasks and suggests a priority order based on status, deadlines, and dependencies.
When the user asks "Add a task to review the Q3 report by Friday", the agent calls create_task to write data to the client, with the title, description, and due date. If confirmation is enabled, the user reviews the proposed task details first. The host application creates the task on the board, and the agent confirms that the task was created.
Einschränkungen
- Client-side tool execution depends on the availability and responsiveness of the client surface. If the client disconnects while the tool runs, the tool call can fail.
- The client surface must register a handler for each client-side tool that the agent defines. If a handler is missing, the tool call returns an error to the agent.