@transcend-io/cli 4.113.1 → 4.114.0

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.
Files changed (31) hide show
  1. package/README.md +65 -6
  2. package/build/ai/TranscendPromptManager.d.ts +41 -0
  3. package/build/ai/TranscendPromptManager.d.ts.map +1 -1
  4. package/build/ai/TranscendPromptManager.js +138 -4
  5. package/build/ai/TranscendPromptManager.js.map +1 -1
  6. package/build/graphql/fetchLargeLanguageModels.d.ts +20 -0
  7. package/build/graphql/fetchLargeLanguageModels.d.ts.map +1 -0
  8. package/build/graphql/fetchLargeLanguageModels.js +32 -0
  9. package/build/graphql/fetchLargeLanguageModels.js.map +1 -0
  10. package/build/graphql/gqls/index.d.ts +2 -0
  11. package/build/graphql/gqls/index.d.ts.map +1 -1
  12. package/build/graphql/gqls/index.js +2 -0
  13. package/build/graphql/gqls/index.js.map +1 -1
  14. package/build/graphql/gqls/largeLanguageModel.d.ts +2 -0
  15. package/build/graphql/gqls/largeLanguageModel.d.ts.map +1 -0
  16. package/build/graphql/gqls/largeLanguageModel.js +33 -0
  17. package/build/graphql/gqls/largeLanguageModel.js.map +1 -0
  18. package/build/graphql/gqls/promptRun.d.ts +2 -0
  19. package/build/graphql/gqls/promptRun.d.ts.map +1 -0
  20. package/build/graphql/gqls/promptRun.js +15 -0
  21. package/build/graphql/gqls/promptRun.js.map +1 -0
  22. package/build/graphql/index.d.ts +1 -0
  23. package/build/graphql/index.d.ts.map +1 -1
  24. package/build/graphql/index.js +1 -0
  25. package/build/graphql/index.js.map +1 -1
  26. package/build/graphql/reportPromptRun.d.ts +46 -0
  27. package/build/graphql/reportPromptRun.d.ts.map +1 -0
  28. package/build/graphql/reportPromptRun.js +20 -0
  29. package/build/graphql/reportPromptRun.js.map +1 -0
  30. package/build/tsbuildinfo +1 -1
  31. package/package.json +2 -2
@@ -0,0 +1,46 @@
1
+ import { GraphQLClient } from 'graphql-request';
2
+ import { QueueStatus, ChatCompletionRole, PromptRunProductArea } from '@transcend-io/privacy-types';
3
+ export interface ReportPromptRunInput {
4
+ /** Name of run */
5
+ name: string;
6
+ /** The related product area being uploaded to */
7
+ productArea: PromptRunProductArea;
8
+ /** Messages reported on */
9
+ promptRunMessages: {
10
+ /** Message reported */
11
+ message: string;
12
+ /** Role of message */
13
+ role: ChatCompletionRole;
14
+ /** Template used if created from prompt */
15
+ template?: string;
16
+ }[];
17
+ /** ID of the Transcend prompt being reported */
18
+ promptId: string;
19
+ /** Error message (if one exists) */
20
+ error?: string;
21
+ /** The status of the run */
22
+ status?: QueueStatus;
23
+ /** Employee email that is executing the request */
24
+ runByEmployeeEmail?: string;
25
+ /** Duration of time that it took to execute the prompt */
26
+ duration?: number;
27
+ /** Temperature used when running prompt */
28
+ temperature?: number;
29
+ /** TopP parameter used when running prompt */
30
+ topP?: number;
31
+ /** Max tokens ot sample parameter used when running prompt */
32
+ maxTokensToSample?: string;
33
+ /** The prompt group being reported */
34
+ promptGroupId?: string;
35
+ /** The LLM Id being reported on */
36
+ largeLanguageModelId?: string;
37
+ }
38
+ /**
39
+ * Record a new prompt run
40
+ *
41
+ * @param client - GraphQL client
42
+ * @param input - Prompt input
43
+ * @returns Prompt ID
44
+ */
45
+ export declare function reportPromptRun(client: GraphQLClient, input: ReportPromptRunInput): Promise<string>;
46
+ //# sourceMappingURL=reportPromptRun.d.ts.map
@@ -0,0 +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,EACrB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,oBAAoB;IACnC,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,WAAW,EAAE,oBAAoB,CAAC;IAClC,2BAA2B;IAC3B,iBAAiB,EAAE;QACjB,uBAAuB;QACvB,OAAO,EAAE,MAAM,CAAC;QAChB,sBAAsB;QACtB,IAAI,EAAE,kBAAkB,CAAC;QACzB,2CAA2C;QAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;IACJ,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,mDAAmD;IACnD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,MAAM,CAAC,CAgBjB"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reportPromptRun = void 0;
4
+ const gqls_1 = require("./gqls");
5
+ const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
6
+ /**
7
+ * Record a new prompt run
8
+ *
9
+ * @param client - GraphQL client
10
+ * @param input - Prompt input
11
+ * @returns Prompt ID
12
+ */
13
+ async function reportPromptRun(client, input) {
14
+ const { reportPromptRun: { promptRun }, } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.CREATE_PROMPT, {
15
+ input,
16
+ });
17
+ return promptRun.id;
18
+ }
19
+ exports.reportPromptRun = reportPromptRun;
20
+ //# sourceMappingURL=reportPromptRun.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportPromptRun.js","sourceRoot":"","sources":["../../src/graphql/reportPromptRun.ts"],"names":[],"mappings":";;;AACA,iCAAuC;AACvC,6DAA0D;AA2C1D;;;;;;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,oBAAa,EAAE;QACxB,KAAK;KACN,CAAC,CAAC;IACH,OAAO,SAAS,CAAC,EAAE,CAAC;AACtB,CAAC;AAnBD,0CAmBC"}