@transcend-io/cli 4.118.0 → 4.119.1
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/build/codecs.d.ts +6 -0
- package/build/codecs.d.ts.map +1 -1
- package/build/graphql/addMessagesToPromptRun.d.ts +40 -0
- package/build/graphql/addMessagesToPromptRun.d.ts.map +1 -0
- package/build/graphql/addMessagesToPromptRun.js +27 -0
- package/build/graphql/addMessagesToPromptRun.js.map +1 -0
- package/build/graphql/gqls/promptRun.d.ts +1 -0
- package/build/graphql/gqls/promptRun.d.ts.map +1 -1
- package/build/graphql/gqls/promptRun.js +13 -1
- package/build/graphql/gqls/promptRun.js.map +1 -1
- package/build/graphql/index.d.ts +1 -0
- package/build/graphql/index.d.ts.map +1 -1
- package/build/graphql/index.js +1 -0
- package/build/graphql/index.js.map +1 -1
- package/build/graphql/reportPromptRun.d.ts +49 -3
- package/build/graphql/reportPromptRun.d.ts.map +1 -1
- package/build/graphql/reportPromptRun.js.map +1 -1
- package/build/tsbuildinfo +1 -1
- package/package.json +9 -9
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
import { GraphQLClient } from 'graphql-request';
|
|
2
|
-
import { QueueStatus, ChatCompletionRole, PromptRunProductArea } from '@transcend-io/privacy-types';
|
|
2
|
+
import { QueueStatus, ChatCompletionRole, PromptRunProductArea, LargeLanguageModelClient } from '@transcend-io/privacy-types';
|
|
3
|
+
/**
|
|
4
|
+
* Interface of metadata that can be passed for logging purposes
|
|
5
|
+
* via the Transcend Pathfinder
|
|
6
|
+
*/
|
|
7
|
+
export interface PathfinderPromptRunMetadata {
|
|
8
|
+
/** Unique name for the current prompt run */
|
|
9
|
+
promptRunName?: string;
|
|
10
|
+
/** ID of the Transcend prompt being reported */
|
|
11
|
+
promptId?: string;
|
|
12
|
+
/** Title of the prompt being reported on */
|
|
13
|
+
promptTitle?: string;
|
|
14
|
+
/** The ID of the prompt group being reported */
|
|
15
|
+
promptGroupId?: string;
|
|
16
|
+
/** The title of the prompt group being reported */
|
|
17
|
+
promptGroupTitle?: string;
|
|
18
|
+
/** Employee email that is executing the request */
|
|
19
|
+
runByEmployeeEmail?: string;
|
|
20
|
+
/** ID of the application calling pathfinder */
|
|
21
|
+
applicationId?: string;
|
|
22
|
+
/** Name of the application calling pathfinder */
|
|
23
|
+
applicationName?: string;
|
|
24
|
+
/** Core identifier of the application user being reported on */
|
|
25
|
+
applicationUserCoreIdentifier?: string;
|
|
26
|
+
/** Name of the application user being reported on */
|
|
27
|
+
applicationUserName?: string;
|
|
28
|
+
}
|
|
3
29
|
export interface ReportPromptRunInput {
|
|
4
30
|
/** Name of run */
|
|
5
31
|
name: string;
|
|
@@ -15,7 +41,9 @@ export interface ReportPromptRunInput {
|
|
|
15
41
|
template?: string;
|
|
16
42
|
}[];
|
|
17
43
|
/** ID of the Transcend prompt being reported */
|
|
18
|
-
promptId
|
|
44
|
+
promptId?: string;
|
|
45
|
+
/** Title of the prompt being reported on */
|
|
46
|
+
promptTitle?: string;
|
|
19
47
|
/** Error message (if one exists) */
|
|
20
48
|
error?: string;
|
|
21
49
|
/** The status of the run */
|
|
@@ -30,10 +58,28 @@ export interface ReportPromptRunInput {
|
|
|
30
58
|
topP?: number;
|
|
31
59
|
/** Max tokens ot sample parameter used when running prompt */
|
|
32
60
|
maxTokensToSample?: number;
|
|
33
|
-
/** The prompt group being reported */
|
|
61
|
+
/** The ID of the prompt group being reported */
|
|
34
62
|
promptGroupId?: string;
|
|
63
|
+
/** The title of the prompt group being reported */
|
|
64
|
+
promptGroupTitle?: string;
|
|
35
65
|
/** The LLM Id being reported on */
|
|
36
66
|
largeLanguageModelId?: string;
|
|
67
|
+
/** The name of the large language model being reported on */
|
|
68
|
+
largeLanguageModelName?: string;
|
|
69
|
+
/** The name of the large language model client reported on */
|
|
70
|
+
largeLanguageModelClient?: LargeLanguageModelClient;
|
|
71
|
+
/** ID of the application calling pathfinder */
|
|
72
|
+
applicationId?: string;
|
|
73
|
+
/** Name of the application calling pathfinder */
|
|
74
|
+
applicationName?: string;
|
|
75
|
+
/** ID of the pathfinder applying policies */
|
|
76
|
+
pathfinderId?: string;
|
|
77
|
+
/** Name of the pathfinder applying policies */
|
|
78
|
+
pathfinderName?: string;
|
|
79
|
+
/** Core identifier of the application user being reported on */
|
|
80
|
+
applicationUserCoreIdentifier?: string;
|
|
81
|
+
/** Name of the application user being reported on */
|
|
82
|
+
applicationUserName?: string;
|
|
37
83
|
}
|
|
38
84
|
/**
|
|
39
85
|
* Record a new prompt run
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportPromptRun.d.ts","sourceRoot":"","sources":["../../src/graphql/reportPromptRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"reportPromptRun.d.ts","sourceRoot":"","sources":["../../src/graphql/reportPromptRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,6CAA6C;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mDAAmD;IACnD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kDAAkD;IAClD,eAAe,CAAC,EAAE,M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,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iEAAiE;IACjE,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,sDAAsD;IACtD,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,MAAM,CAAC,CAwBjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportPromptRun.js","sourceRoot":"","sources":["../../src/graphql/reportPromptRun.ts"],"names":[],"mappings":";;;AACA,iCAA2C;AAC3C,6DAA0D;
|
|
1
|
+
{"version":3,"file":"reportPromptRun.js","sourceRoot":"","sources":["../../src/graphql/reportPromptRun.ts"],"names":[],"mappings":";;;AACA,iCAA2C;AAC3C,6DAA0D;AA2F1D;;;;;;GAMG;AACI,KAAK,UAAU,eAAe,CACnC,MAAqB,EACrB,KAA2B;IAE3B,MAAM,EACJ,eAAe,EAAE,EAAE,SAAS,EAAE,GAC/B,GAAG,MAAM,IAAA,uCAAkB,EASzB,MAAM,EAAE,wBAAiB,EAAE;QAC5B,KAAK,EAAE;YACL,GAAG,KAAK;YACR,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAC5C,CAAC,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;gBACzB,GAAG,IAAI;gBACP,OAAO,EAAE,OAAO;aACjB,CAAC,CACH;SACF;KACF,CAAC,CAAC;IACH,OAAO,SAAS,CAAC,EAAE,CAAC;AACtB,CAAC;AA3BD,0CA2BC"}
|