@uipath/skills 1.207.0 → 1.208.0-preview.2389
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/CODEOWNERS +13 -3
- package/README.md +6 -5
- package/assets/skill-status.json +10 -2
- package/assets/uip-browser-commands-snapshot.json +55 -3
- package/assets/uip-browser-host-served.json +2 -1
- package/assets/uip-catalog-snapshot.json +83 -3
- package/commands/install-permissions.md +8 -10
- package/package.json +3 -2
- package/skills/uipath-a2a-agents/SKILL.md +111 -0
- package/skills/uipath-a2a-agents/references/authentication-guide.md +61 -0
- package/skills/uipath-a2a-agents/references/troubleshooting-guide.md +98 -0
- package/skills/uipath-a2a-agents/references/updating-agents-guide.md +64 -0
- package/skills/uipath-activity-migrator/SKILL.md +31 -27
- package/skills/uipath-activity-migrator/references/acquisition-guide.md +91 -35
- package/skills/uipath-activity-migrator/references/build-verification-guide.md +1 -1
- package/skills/uipath-activity-migrator/references/packages/gsuite-guide.md +2 -2
- package/skills/uipath-activity-migrator/references/packages/mail-guide.md +1 -1
- package/skills/uipath-activity-migrator/references/packages/uia-guide.md +1 -1
- package/skills/uipath-activity-migrator/references/tool-behavior-guide.md +18 -8
- package/skills/uipath-activity-migrator/scripts/ensure-migrator.mjs +114 -49
- package/skills/uipath-activity-migrator/scripts/summarize-sarif.mjs +6 -0
- package/skills/uipath-admin/references/tenant-management.md +3 -3
- package/skills/uipath-admin/references/tenants-commands.md +2 -2
- package/skills/uipath-agents/SKILL.md +9 -4
- package/skills/uipath-agents/references/coded/capabilities/datafabric.md +8 -5
- package/skills/uipath-agents/references/coded/lifecycle/setup.md +2 -0
- package/skills/uipath-agents/references/coded/quickstart.md +1 -1
- package/skills/uipath-agents/references/lowcode/agent-definition.md +11 -1
- package/skills/uipath-agents/references/lowcode/capabilities/built-in-tools/analyze-attachments.md +2 -0
- package/skills/uipath-agents/references/lowcode/capabilities/built-in-tools/built-in-tools.md +5 -2
- package/skills/uipath-agents/references/lowcode/capabilities/escalation/escalation.md +8 -4
- package/skills/uipath-agents/references/lowcode/capabilities/guardrails/builtin-examples-guide.md +185 -0
- package/skills/uipath-agents/references/lowcode/capabilities/guardrails/byo-guide.md +12 -0
- package/skills/uipath-agents/references/lowcode/capabilities/guardrails/escalation-guide.md +6 -4
- package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails-recommend.md +2 -2
- package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails.md +15 -191
- package/skills/uipath-agents/references/lowcode/capabilities/inline-in-flow/inline-in-flow.md +5 -3
- package/skills/uipath-agents/references/lowcode/capabilities/integration-service/integration-service.md +12 -2
- package/skills/uipath-agents/references/lowcode/capabilities/process/process.md +66 -15
- package/skills/uipath-agents/references/lowcode/capabilities/process/solution-files.md +4 -0
- package/skills/uipath-agents/references/lowcode/critical-rules/critical-rules.md +2 -2
- package/skills/uipath-agents/references/lowcode/evaluations/runtime-eval-run.md +18 -18
- package/skills/uipath-agents/references/lowcode/lowcode.md +4 -2
- package/skills/uipath-agents/references/lowcode/project-lifecycle.md +8 -3
- package/skills/uipath-agents/references/lowcode/solution-resources.md +2 -2
- package/skills/uipath-aops/SKILL.md +1 -0
- package/skills/uipath-aops/references/discovery-flow.md +1 -1
- package/skills/uipath-aops/references/migration-guide.md +2 -1
- package/skills/uipath-api-workflow/SKILL.md +6 -4
- package/skills/uipath-api-workflow/assets/templates/genai-model-call-example.json +143 -0
- package/skills/uipath-api-workflow/references/cli-reference.md +9 -9
- package/skills/uipath-api-workflow/references/connector-activity-discovery.md +12 -3
- package/skills/uipath-api-workflow/references/troubleshooting.md +1 -1
- package/skills/uipath-coded-apps/SKILL.md +20 -12
- package/skills/uipath-coded-apps/references/commands-reference.md +25 -2
- package/skills/uipath-coded-apps/references/create-action-app.md +28 -0
- package/skills/uipath-coded-apps/references/create-web-app.md +33 -1
- package/skills/uipath-coded-apps/references/dashboards/plugins/deploy/impl.md +3 -3
- package/skills/uipath-coded-apps/references/debug.md +1 -1
- package/skills/uipath-coded-apps/references/pack-publish-deploy.md +71 -22
- package/skills/uipath-coded-apps/references/public-coded-app.md +1 -1
- package/skills/uipath-coded-apps/references/widgets/decisions-and-reasons.md +194 -0
- package/skills/uipath-connector-builder/SKILL.md +34 -0
- package/skills/uipath-connector-builder/references/community-submit-guide.md +103 -0
- package/skills/uipath-connector-builder/references/scripts.md +174 -0
- package/skills/uipath-connector-builder/references/v4-flow.md +97 -0
- package/skills/uipath-genome/references/build-guide.md +2 -2
- package/skills/uipath-genome/references/completion-report-guide.md +7 -5
- package/skills/uipath-genome/references/configuration-questions-guide.md +8 -7
- package/skills/uipath-genome/references/execution-guide.md +33 -7
- package/skills/uipath-genome/references/execution-parts-guide.md +4 -3
- package/skills/uipath-genome/references/genome-reading-guide.md +24 -7
- package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +1 -1
- package/skills/uipath-genome/references/open-items-guide.md +5 -4
- package/skills/uipath-genome/references/package-doc-errata-guide.md +21 -0
- package/skills/uipath-genome/references/prepare-guide.md +38 -2
- package/skills/uipath-genome/references/refactor-guide.md +6 -4
- package/skills/uipath-genome/references/selector-translation-desktop-guide.md +8 -62
- package/skills/uipath-genome/references/selector-translation-guide.md +51 -51
- package/skills/uipath-genome/references/selector-translation-sap-guide.md +22 -39
- package/skills/uipath-genome/references/selector-translation-web-guide.md +32 -86
- package/skills/uipath-genome/references/source-frameworks-guide.md +1 -1
- package/skills/uipath-genome/references/source-migration-guide.md +9 -3
- package/skills/uipath-genome/references/test-execution-guide.md +2 -2
- package/skills/uipath-genome/references/transactional-execution-guide.md +2 -2
- package/skills/uipath-genome/references/ui-target-migration-guide.md +4 -2
- package/skills/uipath-governance/SKILL.md +1 -1
- package/skills/uipath-governance/references/access-policy/resource-lookup-guide.md +2 -2
- package/skills/uipath-governance/references/aops-policy/aops-policy-overview-guide.md +1 -1
- package/skills/uipath-governance/references/cli-cheatsheet.md +16 -16
- package/skills/uipath-ixp/references/cli-reference.md +3 -1
- package/skills/uipath-maestro-bpmn/SKILL.md +1 -1
- package/skills/uipath-maestro-bpmn/references/bpmn-runtime.md +1 -1
- package/skills/uipath-maestro-bpmn/references/evaluate.md +3 -3
- package/skills/uipath-maestro-case/SKILL.md +3 -3
- package/skills/uipath-maestro-case/examples/CreditDecision.case.ts +9 -2
- package/skills/uipath-maestro-case/references/case-runtime.md +47 -0
- package/skills/uipath-maestro-flow/references/author.md +1 -1
- package/skills/uipath-maestro-flow/references/evaluate.md +3 -3
- package/skills/uipath-maestro-flow/references/event-trigger.md +4 -0
- package/skills/uipath-mcp-servers/SKILL.md +28 -7
- package/skills/uipath-mcp-servers/references/connections-guide.md +13 -0
- package/skills/uipath-mcp-servers/references/guardrails-guide.md +66 -0
- package/skills/uipath-mcp-servers/references/troubleshooting-guide.md +23 -0
- package/skills/uipath-ontology/SKILL.md +3 -3
- package/skills/uipath-ontology/references/artifacts-guide.md +1 -1
- package/skills/uipath-ontology/references/owl-patterns-guide.md +1 -1
- package/skills/uipath-planner/SKILL.md +17 -7
- package/skills/uipath-planner/assets/templates/agent-sdd-template.md +27 -3
- package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +5 -1
- package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +5 -1
- package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +5 -1
- package/skills/uipath-planner/assets/templates/component-genome-template.md +3 -3
- package/skills/uipath-planner/assets/templates/flow-sdd-template.md +5 -1
- package/skills/uipath-planner/assets/templates/process-genome-template.md +4 -4
- package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +5 -1
- package/skills/uipath-planner/references/author/author-guide.md +4 -5
- package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +3 -3
- package/skills/uipath-planner/references/design/case-product-guide.md +1 -1
- package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +4 -1
- package/skills/uipath-planner/references/design/design-guide.md +2 -2
- package/skills/uipath-planner/references/design/scope-recommendation-guide.md +1 -1
- package/skills/uipath-planner/references/design/sdd-writing-guide.md +5 -7
- package/skills/uipath-planner/references/edit/edit-guide.md +2 -2
- package/skills/uipath-planner/references/extract/extract-guide.md +34 -22
- package/skills/uipath-planner/references/extract/uipath-non-rpa-signals-guide.md +12 -5
- package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +2 -2
- package/skills/uipath-planner/references/extract/uipath-source-guide.md +9 -4
- package/skills/uipath-planner/references/interview/interview-guide.md +11 -11
- package/skills/uipath-planner/references/shared/defect-verification-guide.md +2 -2
- package/skills/uipath-planner/references/shared/extracted-genome-guide.md +16 -11
- package/skills/uipath-planner/references/shared/extraction-parts-guide.md +19 -12
- package/skills/uipath-planner/references/shared/genome-format-guide.md +19 -85
- package/skills/uipath-planner/references/shared/genome-questions-guide.md +51 -0
- package/skills/uipath-planner/references/shared/multi-skill-patterns-guide.md +11 -0
- package/skills/uipath-planner/references/shared/open-questions-guide.md +1 -1
- package/skills/uipath-planner/references/shared/plan-and-tasks-format.md +1 -1
- package/skills/uipath-planner/references/shared/process-genome-sections-guide.md +28 -0
- package/skills/uipath-planner/references/shared/sdd-from-genome-guide.md +1 -1
- package/skills/uipath-planner/references/shared/skill-mapping-guide.md +5 -0
- package/skills/uipath-planner/references/shared/tenant-library-search-guide.md +9 -9
- package/skills/uipath-planner/references/shared/transactional-shape-guide.md +3 -3
- package/skills/uipath-planner/scripts/case-sdd-check.mjs +68 -1
- package/skills/uipath-planner/scripts/check-genome.mjs +70 -6
- package/skills/uipath-planner/scripts/scope-check.mjs +22 -2
- package/skills/uipath-platform/SKILL.md +36 -25
- package/skills/uipath-platform/references/cli-freeze-guide.md +61 -0
- package/skills/uipath-platform/references/data-fabric/data-fabric.md +7 -3
- package/skills/uipath-platform/references/integration-service/integration-service.md +1 -1
- package/skills/uipath-platform/references/integration-service/triggers.md +32 -0
- package/skills/uipath-platform/references/licensing/folder-outcome-billing.md +121 -0
- package/skills/uipath-platform/references/licensing/licensing.md +11 -6
- package/skills/uipath-platform/references/licensing/user-usage-topups.md +236 -0
- package/skills/uipath-platform/references/llmgateway/custom-connector/custom-connector-guide.md +6 -4
- package/skills/uipath-platform/references/orchestrator/api-limits.md +1 -1
- package/skills/uipath-platform/references/orchestrator/resources.md +8 -5
- package/skills/uipath-platform/references/orchestrator/run-jobs.md +4 -0
- package/skills/uipath-platform/references/orchestrator/setup-environment.md +5 -3
- package/skills/uipath-platform/references/orchestrator/tenant-admin.md +9 -6
- package/skills/uipath-platform/references/orchestrator/triggers-and-webhooks.md +8 -4
- package/skills/uipath-platform/references/orchestrator/work-with-storage.md +31 -8
- package/skills/uipath-platform/references/traces/decisions.md +2 -0
- package/skills/uipath-platform/references/uip-commands.md +7 -5
- package/skills/uipath-review/references/rpa/rpa-review-checklist.md +1 -1
- package/skills/uipath-rpa/SKILL.md +5 -5
- package/skills/uipath-rpa/references/cli-reference.md +3 -3
- package/skills/uipath-rpa/references/common-pattern-card.md +7 -1
- package/skills/uipath-rpa/references/debugging.md +4 -2
- package/skills/uipath-rpa/references/execution-journeys-catalog.md +1 -1
- package/skills/uipath-rpa/references/legacy/selector-guide.md +0 -12
- package/skills/uipath-rpa/references/library-authoring-guide.md +5 -5
- package/skills/uipath-rpa/references/remote-session-guide.md +54 -8
- package/skills/uipath-rpa/references/tenant-library-search-guide.md +9 -9
- package/skills/uipath-rpa/references/testing-guide.md +2 -2
- package/skills/uipath-rpa/references/uia-policies-catalog.md +4 -2
- package/skills/uipath-rpa/references/xaml/common-pitfalls.md +2 -21
- package/skills/uipath-rpa/references/xaml/xaml-basics-and-rules.md +0 -1
- package/skills/uipath-rules/SKILL.md +20 -16
- package/skills/uipath-rules/references/drd-guide.md +333 -0
- package/skills/uipath-rules/references/failure-modes-guide.md +1 -1
- package/skills/uipath-solution/SKILL.md +7 -4
- package/skills/uipath-solution/references/activate-and-manage.md +57 -23
- package/skills/uipath-solution/references/develop-solution.md +98 -8
- package/skills/uipath-solution/references/pack-and-deploy.md +108 -29
- package/skills/uipath-solution/references/pack-build-guide.md +151 -0
- package/skills/uipath-solution/references/scenarios/failure-modes.md +20 -2
- package/skills/uipath-solution/references/scenarios/manual-edits.md +2 -1
- package/skills/uipath-solution/references/scenarios/shared-cloud-resource.md +1 -1
- package/skills/uipath-solution/references/scenarios.md +2 -1
- package/skills/uipath-solution/references/solution-overview.md +5 -4
- package/skills/uipath-troubleshoot/references/activity-packages/classic-activities/playbooks/queue-operation-failed.md +2 -2
- package/skills/uipath-troubleshoot/references/investigation_guide.md +1 -0
- package/skills/uipath-troubleshoot/references/products/agents/playbooks/context-grounding-index-not-found.md +2 -1
- package/skills/uipath-troubleshoot/references/products/agents/playbooks/guardrail-violation.md +5 -3
- package/skills/uipath-troubleshoot/references/products/agents/playbooks/input-schema-validation-failure.md +2 -1
- package/skills/uipath-troubleshoot/references/products/agents/playbooks/is-connection-disabled.md +2 -2
- package/skills/uipath-troubleshoot/references/products/agents/playbooks/is-invalid-credentials.md +3 -5
- package/skills/uipath-troubleshoot/references/products/agents/playbooks/is-invalid-element-instance.md +2 -2
- package/skills/uipath-troubleshoot/references/products/agents/playbooks/llm-insufficient-information.md +2 -3
- package/skills/uipath-troubleshoot/references/products/api-workflows/playbooks/never-ran-no-job.md +1 -1
- package/skills/uipath-troubleshoot/references/products/api-workflows/playbooks/platform-limits.md +1 -1
- package/skills/uipath-troubleshoot/references/products/coded-apps/overview.md +1 -0
- package/skills/uipath-troubleshoot/references/products/coded-apps/playbooks/api-401-after-login.md +1 -1
- package/skills/uipath-troubleshoot/references/products/coded-apps/playbooks/api-403-folder-permission.md +2 -2
- package/skills/uipath-troubleshoot/references/products/coded-apps/playbooks/invalid-scope.md +1 -1
- package/skills/uipath-troubleshoot/references/products/coded-apps/playbooks/redirect-uri-mismatch.md +1 -1
- package/skills/uipath-troubleshoot/references/products/orchestrator/investigation_guide.md +4 -4
- package/skills/uipath-troubleshoot/references/products/orchestrator/overview.md +2 -2
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/platform-incident-correlation.md +2 -2
- package/version-manifest.json +2 -2
- package/skills/uipath-genome/references/selector-matching-guide.md +0 -60
|
@@ -122,7 +122,7 @@ Fetch the region-specific catalog and apply the **default-provision filter** (`p
|
|
|
122
122
|
|
|
123
123
|
```bash
|
|
124
124
|
uip admin tenants services list-available --region "<REGION>" --output json \
|
|
125
|
-
--output-filter "[?
|
|
125
|
+
--output-filter "[?ProvisioningMode=='Implicit' && IsVisible==\`true\` && IsAlwaysProvision==\`false\`].Name"
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
> Filter root is the `Data` array itself — start the expression with `[?...]`, NOT `Data[?...]`.
|
|
@@ -247,10 +247,10 @@ uip admin tenants services list --tenant-id <TENANT_ID> --output json
|
|
|
247
247
|
Or, when you need a single service's status, filter the tenant record:
|
|
248
248
|
|
|
249
249
|
```bash
|
|
250
|
-
uip admin tenants get <TENANT_ID> --output-filter "
|
|
250
|
+
uip admin tenants get <TENANT_ID> --output-filter "TenantServiceInstances[?ServiceType=='<SVC>']" --output json
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
-
Surface the resulting `
|
|
253
|
+
Surface the resulting `Status` to the user. For `disable`, confirm the row now reads `Disabled`; for `remove`, confirm it reads `Disabled` / `Deleted` rather than disappearing silently. See [tenants-commands.md — Concepts](tenants-commands.md#concepts-and-safety-rules) for the list of services where `disable` / `remove` is a no-op despite the Success code.
|
|
254
254
|
|
|
255
255
|
## Workflow: Soft-Remove Tenant Services
|
|
256
256
|
|
|
@@ -33,7 +33,7 @@ If not logged in, run `uip login`.
|
|
|
33
33
|
- Before `services add`, `enable`, `disable`, or `remove`, run `tenants get <ID> --output json`, resolve `<TENANT_ID>`, and echo the tenant name, especially for `remove`. These commands silently default `--tenant-id` to the login tenant.
|
|
34
34
|
- Disable is not honored for Integration Service (`connections`), Data Fabric (`dataservice`), or Insights (`insights`). Remove is rejected or not honored for Orchestrator (`orchestrator`), Maestro (`maestro`), Integration Service (`connections`), Data Fabric (`dataservice`), Insights (`insights`), or Test Manager (`testmanager`).
|
|
35
35
|
- Before submitting an unsupported disable/remove, warn: *"Service `<X>` cannot be {disabled|removed} via the CLI — it's pinned by the platform. The call will return Success but the service will stay {Enabled|provisioned}. To deprovision, revoke the org entitlement via the UiPath Portal. Continue anyway, or skip `<X>`?"* Skip it or continue only with the user's choice. If continuing, warn again in the post-state summary.
|
|
36
|
-
- After every `services disable` or `services remove`, run `tenants get <TENANT_ID> --output-filter "
|
|
36
|
+
- After every `services disable` or `services remove`, run `tenants get <TENANT_ID> --output-filter "TenantServiceInstances[?ServiceType=='<SVC>']"` and inspect the instance `Status`; HTTP 200 or `Success` does not prove a state change.
|
|
37
37
|
|
|
38
38
|
## Tenant Lifecycle — `uip admin tenants`
|
|
39
39
|
|
|
@@ -196,7 +196,7 @@ Run this default-provision filter for the target region. The root is the `Data`
|
|
|
196
196
|
|
|
197
197
|
```bash
|
|
198
198
|
uip admin tenants services list-available --region "<REGION>" --output json \
|
|
199
|
-
--output-filter "[?
|
|
199
|
+
--output-filter "[?ProvisioningMode=='Implicit' && IsVisible==\`true\` && IsAlwaysProvision==\`false\`].Name"
|
|
200
200
|
```
|
|
201
201
|
|
|
202
202
|
Render results as create defaults, let the user remove unwanted entries or explicitly add services, and pass confirmed catalog `name` values—not `id` values—as the create body's string-array `services` field. Output code: `OmsTenantServicesAvailable`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: uipath-agents
|
|
3
3
|
description: "UiPath Agents of all types — end-to-end work: build, integrate with UiPath Products (e.g., Orchestrator, Flow, Maestro), design with UiPath Tools (e.g., Agent Builder/Studio Web), deploy, and configure/validate. Covers Coded Agents (e.g., LangGraph, LlamaIndex, OpenAI Agents) and Low-Code Agents (`agent.json` / Agent Builder). For deterministic Coded Functions — Python or JS/TS (`uip function`, `uipath.json` functions map, no agent runtime/LLM)→uipath-functions."
|
|
4
|
-
when_to_use: "Must use when user mentions or implies any Agent lifecycle phase - e.g., auth, design, scaffold, Studio Web sync, flow integration, editing, pack/deploy/version bump, eval, debug, tracing, guardrails, memory spaces, bindings, attachments. Example requests: 'create/build a UiPath agent', 'build a low-code / Agent Builder agent', 'add agent memory spaces', 'build a coded / Python agent (LangGraph / LlamaIndex / OpenAI Agents)', 'scaffold an agent project', 'run / debug / evaluate / deploy my agent'."
|
|
4
|
+
when_to_use: "Must use when user mentions or implies any Agent lifecycle phase - e.g., auth, design, scaffold, Studio Web sync, flow integration, editing, pack/deploy/version bump, eval, debug, tracing, guardrails, memory spaces, bindings, attachments. Example requests: 'create/build a UiPath agent', 'build a low-code / Agent Builder agent', 'add agent memory spaces', 'build a coded / Python agent (LangGraph / LlamaIndex / OpenAI Agents)', 'scaffold an agent project', 'use a Maestro Flow as an agent tool', 'run / debug / evaluate / deploy my agent'."
|
|
5
5
|
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, AskUserQuestion, WebFetch
|
|
6
6
|
user-invocable: true
|
|
7
7
|
---
|
|
@@ -22,7 +22,11 @@ user-invocable: true
|
|
|
22
22
|
|
|
23
23
|
Determine the agent mode before proceeding:
|
|
24
24
|
|
|
25
|
-
1. **First — confirm this is an agent, not a Coded Function.**
|
|
25
|
+
1. **First — confirm this is an agent, not a Coded Function.** It is a **Coded Function** when either holds:
|
|
26
|
+
- **The request is deterministic logic with no LLM reasoning** — exact computation, validation, data transforms, API calls with fixed logic, file upload/download — where every input has one correct output and no model decides anything. This applies even when the user calls it an "agent" or "coded agent", and even in an empty directory.
|
|
27
|
+
- **`uipath.json` declares a `functions` map** — a Python entrypoint (e.g. `"functions": {"main": "main.py:main"}`, sibling `pyproject.toml`) or a JS/TS one (e.g. `"functions": {"invoice": "functions/invoice.ts:default"}`, sibling `package.json`).
|
|
28
|
+
|
|
29
|
+
Then stop here and use the [`uipath-functions`](/uipath:uipath-functions) skill instead — do NOT run `uip codedagent new` / `uip codedagent init`, even after loading it. Functions are deterministic, do not reason via LLM, and have a distinct lifecycle (`uip function new/pack/publish/run`; `init` is Python-only). If an LLM chooses, classifies, generates, or decides anything, it is an agent — continue below.
|
|
26
30
|
2. **Check for existing agent project files** in the working directory:
|
|
27
31
|
- `pyproject.toml` + `.py` files + a framework dep (`uipath-langchain`, `uipath-llamaindex`, or `uipath-openai-agents`) → **Coded**. The framework package already declares `uipath` as a dependency, so an explicit `uipath` entry is not required.
|
|
28
32
|
- `agent.json` with `"type": "lowCode"` + `project.uiproj`, AND no `pyproject.toml` → **Low-code**
|
|
@@ -52,10 +56,11 @@ Determine the agent mode before proceeding:
|
|
|
52
56
|
| Run coded evaluations | Coded | [coded/quickstart.md](references/coded/quickstart.md) § Evaluate | `coded/lifecycle/evaluate.md` |
|
|
53
57
|
| Create or scaffold a new low-code agent project | Low-code | [lowcode/lowcode.md](references/lowcode/lowcode.md) § Quick Start | `lowcode/project-lifecycle.md`, `lowcode/agent-definition.md` |
|
|
54
58
|
| Edit `agent.json` (prompts, model, schemas, contentTokens, entry-points.json) | Low-code | [lowcode/lowcode.md](references/lowcode/lowcode.md) § Capability Registry | `lowcode/agent-definition.md` |
|
|
55
|
-
| Add a low-code tool (Orchestrator process — RPA / agent / API / agentic — or Integration Service) | Low-code | [lowcode/lowcode.md](references/lowcode/lowcode.md) § Capability Registry | `lowcode/capabilities/process/*`, `lowcode/capabilities/integration-service/*` |
|
|
59
|
+
| Add a low-code tool (Orchestrator process — RPA / agent / API / agentic / Maestro Flow — or Integration Service) | Low-code | [lowcode/lowcode.md](references/lowcode/lowcode.md) § Capability Registry | `lowcode/capabilities/process/*`, `lowcode/capabilities/integration-service/*` |
|
|
60
|
+
| Use a Maestro Flow as a tool of a low-code agent (`type: "flow"`) | Low-code | [lowcode/capabilities/process/process.md](references/lowcode/capabilities/process/process.md) § Maestro Flow as a Tool | `lowcode/capabilities/inline-in-flow/inline-in-flow.md` for the `uipath.agent.resource.tool.flow.<release-key>` node on an inline agent |
|
|
56
61
|
| Add a client-side tool (conversational only — executes on the client surface, not the server) to a low-code agent | Low-code | [lowcode/lowcode.md](references/lowcode/lowcode.md) § Capability Registry | `lowcode/capabilities/client-side-tools/client-side-tools.md` |
|
|
57
62
|
| Add an MCP (Model Context Protocol) server tool to a low-code agent | Low-code | [lowcode/lowcode.md](references/lowcode/lowcode.md) § Capability Registry | `lowcode/capabilities/mcp/mcp.md` |
|
|
58
|
-
| Accept files as agent input /
|
|
63
|
+
| Accept files as agent input / read them with a built-in tool (Analyze Files; Deep RAG for long or multiple documents with citations) | Low-code | [lowcode/capabilities/built-in-tools/built-in-tools.md](references/lowcode/capabilities/built-in-tools/built-in-tools.md) | `lowcode/capabilities/built-in-tools/analyze-attachments.md`, `lowcode/capabilities/built-in-tools/deeprag/planning.md`, `lowcode/agent-definition.md` § File Attachments |
|
|
59
64
|
| Work with file attachments (input, output, or created mid-run) | Coded | [coded/capabilities/file-attachments.md](references/coded/capabilities/file-attachments.md) | |
|
|
60
65
|
| Build a conversational (chat-style) agent | Low-code | [lowcode/lowcode.md](references/lowcode/lowcode.md) | `lowcode/project-lifecycle.md`, `lowcode/agent-definition.md` |
|
|
61
66
|
| Add a low-code context (Context Grounding RAG / attachments / DataFabric entity set) | Low-code | [lowcode/lowcode.md](references/lowcode/lowcode.md) § Capability Registry | `lowcode/capabilities/context/*` |
|
|
@@ -36,16 +36,19 @@ Each entity in the output has:
|
|
|
36
36
|
|
|
37
37
|
## Step 2: Choose the Integration Path
|
|
38
38
|
|
|
39
|
-
| Path | Best for | Trade-off |
|
|
40
|
-
|
|
41
|
-
| **SDK direct** (`sdk.entities`) | The query shape is known at build time — same filter, same fields every time | Reliable, no LLM cost, but you code every query |
|
|
42
|
-
| **`create_datafabric_tool`** | Users ask freeform questions the agent can't anticipate | Flexible, but adds an inner LLM call for SQL generation |
|
|
39
|
+
| Path | Best for | Trade-off | How-to |
|
|
40
|
+
|------|----------|-----------|--------|
|
|
41
|
+
| **SDK direct** (`sdk.entities`) | The query shape is known at build time — same filter, same fields every time | Reliable, no LLM cost, but you code every query | [§ Path 1](#path-1-sdk-direct-access-sdkentities) |
|
|
42
|
+
| **`create_datafabric_tool`** | Users ask freeform questions the agent can't anticipate | Flexible, but adds an inner LLM call for SQL generation | [§ Path 2](#path-2-datafabric-tool-create_datafabric_tool) |
|
|
43
|
+
| **Both** | Fixed operations plus freeform questions in one agent | Two tool kinds in one `create_agent` call | [§ Combining Both Paths](#combining-both-paths) |
|
|
44
|
+
|
|
45
|
+
Each path's section is further down this file. Read the chosen path's section in full before writing code — Path 2 and Combining sit after the long Path 1 section.
|
|
43
46
|
|
|
44
47
|
**Rule of thumb:** If the user describes a fixed operation (e.g. "look up orders by customer name"), use the SDK. If they say "users can ask anything" or "I can't predict the questions," use `create_datafabric_tool`.
|
|
45
48
|
|
|
46
49
|
**CRITICAL: For freeform/unpredictable queries, always use `create_datafabric_tool` from `uipath_langchain.agent.tools`.** Do NOT build a custom NL-to-SQL solution, do NOT use internal functions like `create_datafabric_query_tool`, and do NOT wrap raw SDK calls to handle freeform questions. The `create_datafabric_tool` factory handles schema resolution, SQL generation, error correction, and caching — reimplementing this is fragile and unsupported.
|
|
47
50
|
|
|
48
|
-
Both paths can coexist in a single agent — use SDK for known operations and `create_datafabric_tool` for open-ended exploration.
|
|
51
|
+
Both paths can coexist in a single agent — use SDK for known operations and `create_datafabric_tool` for open-ended exploration ([§ Combining Both Paths](#combining-both-paths)).
|
|
49
52
|
|
|
50
53
|
---
|
|
51
54
|
|
|
@@ -12,6 +12,8 @@ Windows PowerShell fresh-machine setup: `irm https://download.uipath.com/uipath-
|
|
|
12
12
|
|
|
13
13
|
## Framework Selection
|
|
14
14
|
|
|
15
|
+
> **Not an agent? Stop.** Deterministic logic with no LLM reasoning is a **Coded Function**, even when the user calls it an agent — apply [SKILL.md](../../../SKILL.md) § Project Type Detection step 1, use [`uipath-functions`](/uipath:uipath-functions), and do not run `uip codedagent new`.
|
|
16
|
+
|
|
15
17
|
Pick the framework before starting: the package installed in the active venv selects the agent template. Install `<FRAMEWORK_PACKAGE>` before `new`, not after — with none installed, `new` fails with an error naming what to install.
|
|
16
18
|
|
|
17
19
|
With several installed, name the one to scaffold with: `uip codedagent new <PROJECT_NAME> --agent-framework <FRAMEWORK_PACKAGE>`. Without it, `new` fails and lists them.
|
|
@@ -321,7 +321,7 @@ Execute the following in order, end-to-end, in one pass — do not pause for con
|
|
|
321
321
|
|
|
322
322
|
## Framework Selection
|
|
323
323
|
|
|
324
|
-
> **First — is this an agent at all?**
|
|
324
|
+
> **First — is this an agent at all?** Apply [SKILL.md](../../SKILL.md) § Project Type Detection step 1: deterministic logic with no LLM reasoning (validate data, call an API with custom auth, transform records, upload/download files) is a **Coded Function** — not an agent — even when the user calls it an agent. Use the [`uipath-functions`](/uipath:uipath-functions) skill (Python or TypeScript/JavaScript) instead of this one, and do not run `uip codedagent new` / `init`. Coded Functions use typed I/O (Pydantic `BaseModel` in Python, `defineSchema<T>()` in TS) and a `functions` map in `uipath.json`; what distinguishes an agent is LLM reasoning and a framework graph.
|
|
325
325
|
|
|
326
326
|
If the task needs LLM reasoning, infer the framework from the user's prompt when possible. If ambiguous, ask them to choose:
|
|
327
327
|
|
|
@@ -192,6 +192,16 @@ No other keys. Never plain-string prompts: [critical-rules/conversational-critic
|
|
|
192
192
|
| `"array"` | Lists |
|
|
193
193
|
| `$ref: "#/definitions/job-attachment"` | File attachments (input or output). See § File Attachments. |
|
|
194
194
|
|
|
195
|
+
**Closed value sets are `enum`s.** When a field takes one of a fixed set of values (a category, a status, a priority scale such as P1–P4), list every value in an `enum` on that field, in input and output schemas alike. Use the `description` to explain what each value means. A range or summary in the description ("P1 to P4", "low to urgent") is not a contract the automation reading the output can rely on.
|
|
196
|
+
|
|
197
|
+
```jsonc
|
|
198
|
+
"priority": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"enum": ["P1", "P2", "P3", "P4"],
|
|
201
|
+
"description": "P1 = team-wide or production outage, P4 = minor or cosmetic"
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
195
205
|
### File Attachments (`job-attachment`)
|
|
196
206
|
|
|
197
207
|
To accept or return a file, declare the field as `$ref: "#/definitions/job-attachment"` and add the canonical `job-attachment` block to `inputSchema.definitions` (or `outputSchema.definitions`). Schema is fixed — copy verbatim. `x-uipath-resource-kind: "JobAttachment"` is required.
|
|
@@ -497,7 +507,7 @@ For each resource type's full schema, see the relevant capability file:
|
|
|
497
507
|
|
|
498
508
|
### Add an Output Field
|
|
499
509
|
|
|
500
|
-
1. Add to `agent.json` → `outputSchema.properties`
|
|
510
|
+
1. Add to `agent.json` → `outputSchema.properties`; a field with a fixed set of values gets an `enum` (§ Schema Types)
|
|
501
511
|
2. Mirror in `entry-points.json` → `entryPoints[0].output.properties`
|
|
502
512
|
3. Refresh, then validate
|
|
503
513
|
|
package/skills/uipath-agents/references/lowcode/capabilities/built-in-tools/analyze-attachments.md
CHANGED
|
@@ -9,6 +9,8 @@ For the built-in-tools capability overview, see [built-in-tools.md](built-in-too
|
|
|
9
9
|
- Agent has a `job-attachment` input field (or receives attachments inside a tool call) and must read contents
|
|
10
10
|
- Agent must summarize, classify, or extract from PDFs, images, documents passed at runtime
|
|
11
11
|
|
|
12
|
+
Not for researching answers across long or multiple documents, or when the answers must cite their sources: use Deep RAG (`deep-rag`, [deeprag/planning.md](deeprag/planning.md)) instead.
|
|
13
|
+
|
|
12
14
|
## Pairing Pattern
|
|
13
15
|
|
|
14
16
|
Typical low-code shape: one `job-attachment` input field on the agent + one `analyze-attachments` tool resource. The user message references the attachment metadata with `{{input.<field>}}`; the agent calls `analyze-attachments`, passing the same attachment in `attachments[]` along with an `analysisTask`.
|
package/skills/uipath-agents/references/lowcode/capabilities/built-in-tools/built-in-tools.md
CHANGED
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Built-in tools are pre-built agent tools that ship with the platform. They share a wire shape (`$resourceType: "tool"`, `type: "internal"`) and a fixed input/output schema per tool. Unlike process or Integration Service tools, built-in tools are self-contained at the agent level — no solution-level files, no `uip solution resources refresh`.
|
|
4
4
|
|
|
5
|
-
For process tools (RPA / agent / API / agentic), see [../process/process.md](../process/process.md). For Integration Service tools, see [../integration-service/integration-service.md](../integration-service/integration-service.md).
|
|
5
|
+
For process tools (RPA / agent / API / agentic / Maestro Flow), see [../process/process.md](../process/process.md). For Integration Service tools, see [../integration-service/integration-service.md](../integration-service/integration-service.md).
|
|
6
6
|
|
|
7
7
|
## When to Use
|
|
8
8
|
|
|
9
|
-
- Agent
|
|
9
|
+
- Agent must research answers across long or multiple documents it receives at run time, with citations (questionnaires, policies, reports) → pair a `job-attachment` array input with `deep-rag` ([deeprag/planning.md](deeprag/planning.md))
|
|
10
|
+
- Agent needs a one-shot summary, classification or extraction from a short file at run time → pair a `job-attachment` input field with `analyze-attachments`
|
|
10
11
|
- Agent needs a platform capability that ships pre-built and does not require deployment
|
|
11
12
|
|
|
13
|
+
When the documents are long, numerous, or the answers must cite where they came from, use `deep-rag`, not `analyze-attachments`: it handles larger files and returns citations, while `analyze-attachments` is a single synthesis pass with lower page limits. Enable only one of the two for the same documents.
|
|
14
|
+
|
|
12
15
|
## Critical Rules
|
|
13
16
|
|
|
14
17
|
1. **Built-in tools are not implicit.** Add them as `resources/{Name}/resource.json` with `type: "internal"` to make them callable. Without the resource file, the tool is unavailable.
|
|
@@ -54,7 +54,7 @@ Filter the result for entries whose `Type` is `"Workflow Action"` (Coded / Coded
|
|
|
54
54
|
|
|
55
55
|
### Step 3 — Fetch the app's action schema
|
|
56
56
|
|
|
57
|
-
Pass the `Key` from Step 2 to `uip solution resources get
|
|
57
|
+
Pass the `Key` from Step 2 to `uip solution resources get`. Run from the solution directory (or pass `--solution-folder <path>`). For external apps (`Source: "Remote"`) one call returns the app spec, including the action schema, even before the app is imported into the solution. Solution-internal apps (`Source: "Local"`) return no action schema — see below.
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
60
|
uip solution resources get <APP_KEY> --output json
|
|
@@ -68,16 +68,20 @@ The `Data.Spec` object carries everything needed to build the channel:
|
|
|
68
68
|
| `Name` | `channel.properties.appName` (matches the `Name` from `resources list`) |
|
|
69
69
|
| `ActionSchema` | a JSON **string** — `json.loads` it to get `inputs` / `inOuts` / `outputs` / `outcomes` (Step 4) |
|
|
70
70
|
|
|
71
|
-
`
|
|
71
|
+
**Solution-internal apps (`Source: "Local"`): `ActionSchema` is `null`.** No `uip` command returns the form of an app that lives in the solution — not `resources get`, `--include-dependencies`, or a `resources refresh`. Read it from the app project instead: `<SOLUTION_DIR>/<APP_NAME>/.app/schemas/*.json`. It has the same shape as the parsed `ActionSchema` below (`version`, `inputs`, `inOuts`, `outputs`, `outcomes`) — use it as-is. `.app/` is a hidden directory and `rg` skips it, so open it by path or list it with `find <SOLUTION_DIR>/<APP_NAME>/.app/schemas -name '*.json'`. Never invent form fields: if no schema file exists, stop and report it.
|
|
72
|
+
|
|
73
|
+
`uip solution resources refresh` re-keys solution-internal apps. After a refresh, take `channel.properties.resourceKey` from a fresh `resources list`.
|
|
74
|
+
|
|
75
|
+
`channel.properties.appVersion` (the integer deploy version) is the `version` field of the parsed `ActionSchema` (or of the `.app/schemas` file) — not `Spec.Version`, which is the package semver (e.g. `"1.0.0"`).
|
|
72
76
|
|
|
73
77
|
Parsed `ActionSchema` shape:
|
|
74
78
|
|
|
75
79
|
```jsonc
|
|
76
80
|
{
|
|
77
81
|
"version": 1,
|
|
78
|
-
"inputs": [{ "name": "
|
|
82
|
+
"inputs": [{ "name": "<INPUT_NAME>", "type": "System.String", ... }],
|
|
79
83
|
"outputs": [],
|
|
80
|
-
"inOuts": [{ "name": "
|
|
84
|
+
"inOuts": [{ "name": "<INOUT_NAME>", "type": "System.String", "description": "..." }],
|
|
81
85
|
"outcomes": [{ "name": "approve", "description": "..." }, { "name": "reject", ... }]
|
|
82
86
|
}
|
|
83
87
|
```
|
package/skills/uipath-agents/references/lowcode/capabilities/guardrails/builtin-examples-guide.md
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# Built-in Validator Guardrail Examples
|
|
2
|
+
|
|
3
|
+
Complete `builtInValidator` guardrail objects to copy and adapt. Schema, validator discovery, scoping, and the numbered rules are in [guardrails.md](guardrails.md); read it first. Generate a fresh UUID for each `id`.
|
|
4
|
+
|
|
5
|
+
### Example 1: Block PII in Agent and Tool Outputs
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"$guardrailType": "builtInValidator",
|
|
10
|
+
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
11
|
+
"name": "PII detection guardrail",
|
|
12
|
+
"description": "This validator is designed to detect personally identifiable information using Azure Cognitive Services",
|
|
13
|
+
"validatorType": "pii_detection",
|
|
14
|
+
"validatorParameters": [
|
|
15
|
+
{
|
|
16
|
+
"$parameterType": "enum-list",
|
|
17
|
+
"id": "entities",
|
|
18
|
+
"value": ["Email", "PhoneNumber", "CreditCardNumber", "USSocialSecurityNumber"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"$parameterType": "map-enum",
|
|
22
|
+
"id": "entityThresholds",
|
|
23
|
+
"value": {
|
|
24
|
+
"Email": 0.8,
|
|
25
|
+
"PhoneNumber": 0.7,
|
|
26
|
+
"CreditCardNumber": 0.9,
|
|
27
|
+
"USSocialSecurityNumber": 0.9
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"action": {
|
|
32
|
+
"$actionType": "block",
|
|
33
|
+
"reason": "PII detected in output — execution blocked."
|
|
34
|
+
},
|
|
35
|
+
"enabledForEvals": true,
|
|
36
|
+
"selector": {
|
|
37
|
+
"scopes": ["Agent", "Tool"],
|
|
38
|
+
"matchNames": ["MyToolName"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Example 2: Log Harmful Content at Agent Level
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"$guardrailType": "builtInValidator",
|
|
48
|
+
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
|
|
49
|
+
"name": "Harmful content guardrail",
|
|
50
|
+
"description": "Logs harmful content violations at agent level without blocking",
|
|
51
|
+
"validatorType": "harmful_content",
|
|
52
|
+
"validatorParameters": [
|
|
53
|
+
{
|
|
54
|
+
"$parameterType": "enum-list",
|
|
55
|
+
"id": "harmfulContentEntities",
|
|
56
|
+
"value": ["Hate", "SelfHarm", "Sexual", "Violence"]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"$parameterType": "map-enum",
|
|
60
|
+
"id": "harmfulContentEntityThresholds",
|
|
61
|
+
"value": {
|
|
62
|
+
"Hate": 2,
|
|
63
|
+
"SelfHarm": 2,
|
|
64
|
+
"Sexual": 4,
|
|
65
|
+
"Violence": 2
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"action": {
|
|
70
|
+
"$actionType": "log",
|
|
71
|
+
"severityLevel": "Warning"
|
|
72
|
+
},
|
|
73
|
+
"enabledForEvals": false,
|
|
74
|
+
"selector": {
|
|
75
|
+
"scopes": ["Agent"]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Example 3: Prompt Injection Detection
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
{
|
|
84
|
+
"$guardrailType": "builtInValidator",
|
|
85
|
+
"id": "e5f6a7b8-c9d0-1234-efab-567890123456",
|
|
86
|
+
"name": "Prompt injection guardrail",
|
|
87
|
+
"description": "This validator is provided by Noma Security and is built to detect malicious attack attempts (e.g. prompt injection, jailbreak) in LLM calls.",
|
|
88
|
+
"validatorType": "prompt_injection",
|
|
89
|
+
"validatorParameters": [
|
|
90
|
+
{
|
|
91
|
+
"$parameterType": "number",
|
|
92
|
+
"id": "threshold",
|
|
93
|
+
"value": 0.5
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"action": {
|
|
97
|
+
"$actionType": "log",
|
|
98
|
+
"severityLevel": "Info"
|
|
99
|
+
},
|
|
100
|
+
"enabledForEvals": true,
|
|
101
|
+
"selector": {
|
|
102
|
+
"scopes": ["Llm"]
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Example 4: User Prompt Attack Detection — Block Jailbreaks
|
|
108
|
+
|
|
109
|
+
No required parameters — binary detection via Azure Prompt Shield; `detectionScope` is the only optional one (see [Files and attachments](guardrails.md#files-and-attachments-detectionscope)). Llm PreExecution only.
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"$guardrailType": "builtInValidator",
|
|
114
|
+
"id": "f1a2b3c4-d5e6-7890-abcd-ef0123456789",
|
|
115
|
+
"name": "User prompt attack guardrail",
|
|
116
|
+
"description": "Detects jailbreak attempts and indirect prompt injection via Azure Prompt Shield",
|
|
117
|
+
"validatorType": "user_prompt_attacks",
|
|
118
|
+
"validatorParameters": [],
|
|
119
|
+
"action": {
|
|
120
|
+
"$actionType": "block",
|
|
121
|
+
"reason": "Adversarial input detected — execution blocked."
|
|
122
|
+
},
|
|
123
|
+
"enabledForEvals": true,
|
|
124
|
+
"selector": {
|
|
125
|
+
"scopes": ["Llm"]
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Example 5: Intellectual Property Detection — Block Copyrighted Text and Code
|
|
131
|
+
|
|
132
|
+
PostExecution only — no content exists to check before the LLM generates output. To check a file the agent produces instead of its text, see [files-guide.md § Recipe 3](files-guide.md#recipe-3--guard-a-file-the-agent-produces).
|
|
133
|
+
|
|
134
|
+
```json
|
|
135
|
+
{
|
|
136
|
+
"$guardrailType": "builtInValidator",
|
|
137
|
+
"id": "a2b3c4d5-e6f7-8901-bcde-f01234567890",
|
|
138
|
+
"name": "IP detection guardrail",
|
|
139
|
+
"description": "Detects copyrighted text and licensed GitHub code in LLM output",
|
|
140
|
+
"validatorType": "intellectual_property",
|
|
141
|
+
"validatorParameters": [
|
|
142
|
+
{
|
|
143
|
+
"$parameterType": "enum-list",
|
|
144
|
+
"id": "ipEntities",
|
|
145
|
+
"value": ["Text", "Code"]
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"action": {
|
|
149
|
+
"$actionType": "block",
|
|
150
|
+
"reason": "Protected material detected in output — execution blocked."
|
|
151
|
+
},
|
|
152
|
+
"enabledForEvals": true,
|
|
153
|
+
"selector": {
|
|
154
|
+
"scopes": ["Llm"]
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Example 6: Block PII Inside Attached Files
|
|
160
|
+
|
|
161
|
+
`detectionScope: "Files"` — only the run's attachments are evaluated; Agent PreExecution blocks before the model runs. Requires a `job-attachment` input field ([../../agent-definition.md](../../agent-definition.md) § File Attachments). Full recipe and variants: [files-guide.md](files-guide.md).
|
|
162
|
+
|
|
163
|
+
```json
|
|
164
|
+
{
|
|
165
|
+
"$guardrailType": "builtInValidator",
|
|
166
|
+
"id": "<UUID>",
|
|
167
|
+
"name": "PII in uploaded documents",
|
|
168
|
+
"description": "Blocks runs whose attached files contain customer identifiers",
|
|
169
|
+
"validatorType": "pii_detection",
|
|
170
|
+
"validatorParameters": [
|
|
171
|
+
{ "$parameterType": "enum-list", "id": "entities", "value": ["Email", "CreditCardNumber"] },
|
|
172
|
+
{ "$parameterType": "enum", "id": "detectionScope", "value": "Files" }
|
|
173
|
+
],
|
|
174
|
+
"action": { "$actionType": "block", "reason": "An attached file contains personal data." },
|
|
175
|
+
"enabledForEvals": true,
|
|
176
|
+
"selector": { "scopes": ["Agent"] }
|
|
177
|
+
}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Custom-rule, filter, and escalation examples
|
|
181
|
+
|
|
182
|
+
Moved to the owning guides:
|
|
183
|
+
|
|
184
|
+
- Custom word rules (block / log / specific fields with titles) and the filter redaction example → [custom-rules-guide.md § Examples](custom-rules-guide.md#examples)
|
|
185
|
+
- Escalate PII violations to Action Center → [escalation-guide.md](escalation-guide.md#example-escalate-pii-violations-to-action-center--multiple-tool-targets)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# BYO (bring-your-own) Guardrails
|
|
2
|
+
|
|
3
|
+
Rules for a guardrail that a tenant-registered external provider fulfils. Base schema, validator discovery, scoping, and actions are in [guardrails.md](guardrails.md); read its Overview and Walkthrough first.
|
|
4
|
+
|
|
5
|
+
A validator can be fulfilled by a tenant-registered **external** provider (a "BYOG" configuration — e.g. Azure AI Content Safety, Databricks AI Guardrails) instead of, or alongside, UiPath's own built-in implementation. A tenant admin registers these at Admin → AI Trust Layer → Guardrails Configurations or via `uip guardrails byo-configurations create`; see [uipath-platform § BYO Guardrail Configurations](/uipath:uipath-platform) for the admin-side lifecycle commands (`uip guardrails byo-configurations list|create|update|delete`).
|
|
6
|
+
|
|
7
|
+
- **No file support for BYO guardrails.** BYO entries carry no `detectionScope` parameter and the external provider receives the text payload only — do not set `detectionScope: "Files"` / `"Both"` on a guardrail pinned with `byoValidatorName`.
|
|
8
|
+
- **`Validator` is not unique.** A tenant with a BYOG `harmful_content` configuration sees **two** entries named `harmful_content` in `uip agent guardrails list` output — one built-in, one BYO. Use `IsByo` to tell them apart; never assume a single match.
|
|
9
|
+
- **Filter to BYO-only entries** with `uip agent guardrails list --byo --output json` when the user specifically wants to see or target a BYO-backed validator.
|
|
10
|
+
- **BYO entries carry extra fields**: `ByoValidatorName`, `ByoConnectionId`, `ByoConfigurationId`, `ByoConnectorName`, `ByoConnectorKey`, `FolderKey` — alongside the same `Parameters`/`AllowedScopes`/`GuardrailStages`/`Status` shape a built-in entry has.
|
|
11
|
+
- **To author a guardrail against a specific BYO configuration**, build the `builtInValidator` guardrail exactly as for a built-in validator (same `validatorType`, same `validatorParameters` from that entry's `Parameters`), and add `byoValidatorName` set to that entry's `ByoValidatorName`. Omit it to use the built-in implementation. (`ByoConfigurationId` is the configuration's own admin-side id — useful for cross-referencing `uip guardrails byo-configurations list`, but it is not what the guardrail JSON carries; `ByoValidatorName` is unique per tenant and is the value that pins it.)
|
|
12
|
+
- **`Status: "Disabled"` on a BYO entry** means the tenant switched that specific configuration off — the entry still shows (it doesn't vanish), so a disabled BYOG configuration is distinguishable from one that was never set up. Do not author a guardrail against a `Disabled` BYO entry; treat it the same as `Unauthorised` (skip, tell the user).
|
|
@@ -80,10 +80,12 @@ Prefer `type: 3` (UserEmail) when adding manually — it requires no GUID or ass
|
|
|
80
80
|
|
|
81
81
|
## Adding an escalation guardrail — step-by-step
|
|
82
82
|
|
|
83
|
-
**Scaffolding gate (MANDATORY):** when the request includes creating
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
**Scaffolding gate (MANDATORY):** when the request includes creating an agent,
|
|
84
|
+
scaffold it with `uip agent init "<SOLUTION>/<AGENT>"` before app discovery. Run
|
|
85
|
+
`uip solution init` only when the request asks for a new solution and the target
|
|
86
|
+
directory has no `.uipx` — never on an existing solution. An incompatible or
|
|
87
|
+
missing escalation app rejects only the guardrail; it does not cancel the
|
|
88
|
+
requested scaffolding.
|
|
87
89
|
|
|
88
90
|
**Step 0 — Discover available validators (MANDATORY — do not skip even when validator type is already known):**
|
|
89
91
|
|
package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails-recommend.md
CHANGED
|
@@ -51,7 +51,7 @@ uip agent guardrails list --output json
|
|
|
51
51
|
|
|
52
52
|
Build a lookup of `{ validatorId: status }` from the `Data` array. You will use this in Steps 2 and 5 to filter recommendations.
|
|
53
53
|
|
|
54
|
-
> **`Validator` is not unique — key the lookup on `(Validator, IsByo)`, not `Validator` alone.** A tenant with a bring-your-own (BYOG) configuration for a validator sees two entries sharing the same `Validator` name — one built-in (`IsByo` absent/false), one BYO (`IsByo: true`, carrying `ByoValidatorName`/`ByoConfigurationId`/etc.). Collapsing them into a single `{ validatorId: status }` key silently picks whichever entry happens to win the collision and can validate against the wrong `Parameters`/`AllowedScopes`. See [
|
|
54
|
+
> **`Validator` is not unique — key the lookup on `(Validator, IsByo)`, not `Validator` alone.** A tenant with a bring-your-own (BYOG) configuration for a validator sees two entries sharing the same `Validator` name — one built-in (`IsByo` absent/false), one BYO (`IsByo: true`, carrying `ByoValidatorName`/`ByoConfigurationId`/etc.). Collapsing them into a single `{ validatorId: status }` key silently picks whichever entry happens to win the collision and can validate against the wrong `Parameters`/`AllowedScopes`. See [byo-guide.md](byo-guide.md).
|
|
55
55
|
|
|
56
56
|
> **Catalog vs. list — the key distinction:** The catalog lists all guardrails that exist on the platform (with rich metadata for reasoning). The guardrails list returns only those accessible to this tenant. Only recommend validators where `Status == "Available"` in the list.
|
|
57
57
|
|
|
@@ -293,5 +293,5 @@ If the user asks to fix identified issues: apply corrections to `agent.json`, ru
|
|
|
293
293
|
12. **All map-enum keys must exactly match the corresponding enum-list values** — no extra or missing keys. This is the most common correctness error.
|
|
294
294
|
13. **Read [guardrails.md](guardrails.md) before writing any JSON** — discriminator fields, PascalCase constraints, and parameter shapes are specified there and cannot be safely inferred.
|
|
295
295
|
14. **Do NOT use TaskCreate, TaskUpdate, or other task-tracking tools for guardrail edits.** Edit `agent.json` directly — task management tools add bookkeeping turns without benefit and push runs over their turn budget.
|
|
296
|
-
15. **`Validator` is not unique — disambiguate built-in vs. BYO by `IsByo` before matching on name.** A tenant can have both a built-in and one or more BYOG entries sharing the same `Validator` name. Key any lookup on `(Validator, IsByo)`, and when an existing guardrail carries `byoValidatorName`, match it against `ByoValidatorName` — not `Validator` alone — before reading `Parameters`/`AllowedScopes` for correctness or recommendation. Default recommendations to the built-in entry unless the user asks for BYO. See [
|
|
296
|
+
15. **`Validator` is not unique — disambiguate built-in vs. BYO by `IsByo` before matching on name.** A tenant can have both a built-in and one or more BYOG entries sharing the same `Validator` name. Key any lookup on `(Validator, IsByo)`, and when an existing guardrail carries `byoValidatorName`, match it against `ByoValidatorName` — not `Validator` alone — before reading `Parameters`/`AllowedScopes` for correctness or recommendation. Default recommendations to the built-in entry unless the user asks for BYO. See [byo-guide.md](byo-guide.md).
|
|
297
297
|
16. **`detectionScope` is list-driven.** Set it only when the matched list entry's `Parameters` contains `Id: "detectionScope"`; never on custom guardrails or BYO-pinned guardrails (BYO has no file support). Attached input files → Agent scope + `"Files"`; produced output files → a Post validator at Agent scope + `"Files"`. A `Text` (or omitted) `detectionScope` on a guardrail meant to protect a `job-attachment` field is a coverage gap — report it. See [files-guide.md](files-guide.md).
|