@uipath/llm-gateway-tool 1.205.0-preview.281 → 1.206.0-preview.282

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,38 @@
1
+ # @uipath/llm-gateway-tool
2
+
3
+ `uip` plugin for UiPath LLM Gateway model discovery. It adds
4
+ `uip llm-gateway`, which lists the LLM models a tenant can use for a given
5
+ product and feature, including UiPath-hosted and bring-your-own (BYO) models.
6
+
7
+ More: [docs/tools/llm-gateway.md](../../../docs/tools/llm-gateway.md).
8
+
9
+ ## Commands
10
+
11
+ | Command | Purpose |
12
+ | --- | --- |
13
+ | `uip llm-gateway models --product <name> --feature <name>` | List the models the LLM Gateway discovery API returns for that product and feature. |
14
+
15
+ Options:
16
+
17
+ - `--product <name>` (required): requesting product, for example `guardrails`.
18
+ - `--feature <name>` (required): requesting feature, for example `llm-as-judge-validator`.
19
+ - `--operation <code>`: operation code to narrow the result, for example `Guardrails.LlmAsJudge.Debug`.
20
+ - `--login-validity <minutes>`: override the interactive-login token lifetime for this call.
21
+
22
+ Each row has `ModelId`, `DisplayName`, `Vendor`, `ModelFamily`,
23
+ `SubscriptionType`, `IsByo`, `IsPreview` and `IsBlockedByPolicy`.
24
+
25
+ ## Examples
26
+
27
+ ```bash
28
+ uip llm-gateway models --product guardrails --feature llm-as-judge-validator
29
+ uip llm-gateway models --product guardrails --feature llm-as-judge-validator \
30
+ --operation Guardrails.LlmAsJudge.Debug --output json
31
+ uip llm-gateway models --product agenthub --feature agent-health-score-linter
32
+ ```
33
+
34
+ ## Authentication
35
+
36
+ Run `uip login` first. The command calls the tenant's `llmgateway_` service
37
+ (`/api/discovery`) for the tenant you are logged in to, through
38
+ `@uipath/llmgw-sdk`. There is no `--tenant` option.
@@ -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
@@ -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
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
18
18
  return cached;
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
21
+ const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
22
  if (mod && typeof mod === "object" || typeof mod === "function") {
23
23
  for (let key of __getOwnPropNames(mod))
24
24
  if (!__hasOwnProp.call(to, key))
@@ -32,8 +32,17 @@ var __toESM = (mod, isNodeMode, target) => {
32
32
  return to;
33
33
  };
34
34
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
35
+ var __exportCjs = (target, getters, setters) => {
36
+ for (var name in getters)
37
+ __defProp(target, name, {
38
+ get: getters[name],
39
+ set: setters[name],
40
+ enumerable: true,
41
+ configurable: true
42
+ });
43
+ };
35
44
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
45
 
37
- export { __toESM, __commonJS, __require };
46
+ export { __toESM, __commonJS, __exportCjs, __require };
38
47
 
39
- //# debugId=4A15A0D6FCDB684764756E2164756E21
48
+ //# debugId=6692E9B4C735B07364756E2164756E21