@uipath/llmgw-tool 1.205.0-preview.277 → 1.206.0-preview.279

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/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # @uipath/llmgw-tool
2
+
3
+ `uip` plugin for AI Trust Layer bring-your-own (BYO) LLM connections. It adds
4
+ `uip llm-configuration`, which manages BYO LLM product configurations on the
5
+ UiPath LLM Gateway: a record that sends one product feature's LLM traffic (for
6
+ example `agenthub` / `agenthub-llm-call`) to the customer's own vendor account
7
+ through an Integration Service connection.
8
+
9
+ Each record is scoped to a (product, feature) pair and holds one or more model
10
+ mappings. More: [docs/tools/llm-configuration.md](../../../docs/tools/llm-configuration.md).
11
+
12
+ ## Commands
13
+
14
+ | Command | Purpose |
15
+ | --- | --- |
16
+ | `uip llm-configuration byo-connections list-product-configs` | List the products and features that accept BYO LLMs, with allowed models, api-flavors and connectors. Filter with `--product` / `--feature`; `--models-only` drops the per-model flavor and connector lists. |
17
+ | `uip llm-configuration byo-connections list` | List the tenant's BYO configurations. Add `--include-connection-details` for connection info. |
18
+ | `uip llm-configuration byo-connections get <configuration-id>` | Get one configuration. `--force-refresh` re-resolves connection details. |
19
+ | `uip llm-configuration byo-connections create --product <p> --feature <f> --folder-key <key>` | Create a configuration, after server-side validation. |
20
+ | `uip llm-configuration byo-connections update <configuration-id>` | Replace a configuration's mappings, folder, name or enabled state, after validation. |
21
+ | `uip llm-configuration byo-connections delete <configuration-id> --force` | Delete a configuration. Refuses without `--force`. |
22
+
23
+ `create` and `update` take mappings in one of two forms, never both:
24
+
25
+ - Shorthand for one mapping: `--llm-name`, `--llm-identifier`,
26
+ `--connector-type`, `--api-flavor`, `--connection-id` (and optional
27
+ `--default-model`).
28
+ - `--mapping 'llm-name=...,llm-identifier=...,connector-type=...,api-flavor=...,connection-id=...'`,
29
+ repeated once per catalog model. Features whose catalog says `AllModels`
30
+ need one mapping for every model.
31
+
32
+ `update` rebuilds the record from the flags you pass. It keeps product,
33
+ feature, folder and name from the existing record, but every mapping you want
34
+ must be on the command line.
35
+
36
+ ## Examples
37
+
38
+ ```bash
39
+ uip llm-configuration byo-connections list-product-configs --product agenthub --feature agenthub-llm-call
40
+ uip llm-configuration byo-connections list --include-connection-details --output json
41
+
42
+ uip llm-configuration byo-connections create --product agenthub --feature agenthub-llm-call \
43
+ --folder-key <folder-key> --connector-type AmazonWebServices --connection-id <connection-id> \
44
+ --llm-name anthropic.claude-sonnet-4-20250514-v1:0 --api-flavor AwsBedrockInvoke \
45
+ --llm-identifier eu.anthropic.claude-sonnet-4-20250514-v1:0
46
+
47
+ uip llm-configuration byo-connections update <configuration-id> --no-enabled \
48
+ --connector-type AmazonWebServices --connection-id <connection-id> \
49
+ --llm-name anthropic.claude-sonnet-4-20250514-v1:0 --api-flavor AwsBedrockInvoke \
50
+ --llm-identifier eu.anthropic.claude-sonnet-4-20250514-v1:0
51
+
52
+ uip llm-configuration byo-connections delete <configuration-id> --force
53
+ ```
54
+
55
+ ## Authentication
56
+
57
+ Run `uip login` first, with an account that has the OrganizationAdmin role for
58
+ AI Trust Layer. Commands run against the tenant you are logged in to and call
59
+ the tenant's `llmgateway_` service through `@uipath/llmgw-sdk`. Find the folder
60
+ key with `uip or folders list` and the connection id with
61
+ `uip is connections list`.
@@ -1,5 +1,3 @@
1
- import"./tool-1de529jm.js";
2
-
3
1
  // ../../../node_modules/open/index.js
4
2
  import process7 from "node:process";
5
3
  import path from "node:path";
@@ -548,22 +546,6 @@ var open = (target, options) => {
548
546
  target
549
547
  });
550
548
  };
551
- var openApp = (name, options) => {
552
- if (typeof name !== "string" && !Array.isArray(name)) {
553
- throw new TypeError("Expected a valid `name`");
554
- }
555
- const { arguments: appArguments = [] } = options ?? {};
556
- if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
557
- throw new TypeError("Expected `appArguments` as Array type");
558
- }
559
- return baseOpen({
560
- ...options,
561
- app: {
562
- name,
563
- arguments: appArguments
564
- }
565
- });
566
- };
567
549
  function detectArchBinary(binary) {
568
550
  if (typeof binary === "string" || Array.isArray(binary)) {
569
551
  return binary;
@@ -626,9 +608,7 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({
626
608
  }));
627
609
  var open_default = open;
628
610
  export {
629
- apps,
630
- open_default as default,
631
- openApp
611
+ open_default as default
632
612
  };
633
613
 
634
- //# debugId=2C63615B31AE54A364756E2164756E21
614
+ //# debugId=BDC9DE891180DAF464756E2164756E21
package/dist/index.js CHANGED
@@ -1,15 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Command,
4
- metadata,
5
- registerCommands
6
- } from "./tool-y9pawzwd.js";
7
- import"./tool-1de529jm.js";
4
+ metadata2,
5
+ registerCommands2
6
+ } from "./tool-218acvbv.js";
8
7
 
9
8
  // src/index.ts
10
9
  var program = new Command;
11
- program.name(metadata.commandPrefix).description(metadata.description).version(metadata.version);
12
- await registerCommands(program);
10
+ program.name(metadata2.commandPrefix).description(metadata2.description).version(metadata2.version);
11
+ await registerCommands2(program);
13
12
  program.parse(process.argv);
14
13
 
15
- //# debugId=A9AF5D9DCB90B50764756E2164756E21
14
+ //# debugId=E617823BB0C0DA9964756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./tool-1de529jm.js";
3
+ } from "./tool-epsr41wx.js";
4
4
 
5
5
  // ../../../node_modules/jmespath/jmespath.js
6
6
  var require_jmespath = __commonJS(function(exports) {
@@ -1,5 +1,3 @@
1
- import"./tool-1de529jm.js";
2
-
3
1
  // ../../../node_modules/js-yaml/dist/js-yaml.mjs
4
2
  function getDefaultExportFromCjs(x) {
5
3
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -3150,4 +3148,4 @@ export {
3150
3148
  types
3151
3149
  };
3152
3150
 
3153
- //# debugId=87463FE309AE7C9C64756E2164756E21
3151
+ //# debugId=C1B3553ECA3A832664756E2164756E21