@budibase/shared-core 3.38.4 → 3.39.15
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/dist/agentTests.d.ts +26 -0
- package/dist/helpers/url.d.ts +8 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AgentTestCaseDefinition, AgentTestCaseSnapshot, AgentTestReviewer } from "@budibase/types";
|
|
2
|
+
export type ReviewerType = AgentTestReviewer["type"];
|
|
3
|
+
export interface ReviewerEvaluateContext {
|
|
4
|
+
response: string;
|
|
5
|
+
toolCalls: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface ReviewerEvaluation {
|
|
8
|
+
passed: boolean;
|
|
9
|
+
message: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ReviewerDefinition {
|
|
12
|
+
label: string;
|
|
13
|
+
description: string;
|
|
14
|
+
inputType: "input" | "textarea" | "select";
|
|
15
|
+
requiredMessage: string;
|
|
16
|
+
evaluate: ((reviewer: AgentTestReviewer, ctx: ReviewerEvaluateContext) => ReviewerEvaluation) | "async";
|
|
17
|
+
}
|
|
18
|
+
export declare const REVIEWERS: Record<ReviewerType, ReviewerDefinition>;
|
|
19
|
+
export declare const REVIEWER_TYPES: ReviewerType[];
|
|
20
|
+
export declare const readReviewerContent: (reviewer: AgentTestReviewer) => string;
|
|
21
|
+
export declare const writeReviewerContent: (reviewer: AgentTestReviewer, value: string) => AgentTestReviewer;
|
|
22
|
+
export declare const createReviewer: (type: ReviewerType, id: string, value?: string) => AgentTestReviewer;
|
|
23
|
+
export declare const describeReviewer: (reviewer: AgentTestReviewer) => string | undefined;
|
|
24
|
+
export declare const validateReviewer: (reviewer: AgentTestReviewer) => string | null;
|
|
25
|
+
export declare const getReviewerLabel: (type: ReviewerType) => string;
|
|
26
|
+
export declare const buildAgentTestCaseSnapshot: (testCase: AgentTestCaseDefinition) => AgentTestCaseSnapshot;
|
package/dist/helpers/url.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare function applyBaseUrl(currentUrl: string, newBase: string): string;
|
|
2
2
|
export declare const accountPortalAccountUrl: (accountPortalUrl?: string | null) => string;
|
|
3
|
-
export declare const accountPortalBillingUrl: (accountPortalUrl?: string | null
|
|
3
|
+
export declare const accountPortalBillingUrl: (accountPortalUrl?: string | null, options?: {
|
|
4
|
+
tenantId?: string | null;
|
|
5
|
+
purchasePrepaidAiCredits?: boolean;
|
|
6
|
+
} | string | null) => string;
|
|
4
7
|
export declare const accountPortalUpgradeUrl: (accountPortalUrl?: string | null, tenantId?: string | null) => string;
|
|
5
8
|
export declare const builderWorkspacesUrl: (builderBaseUrl?: string | null) => string;
|
|
6
9
|
export declare const builderSettingsEmailUrl: (builderBaseUrl?: string | null) => string;
|
|
@@ -12,7 +15,10 @@ export declare const appAgentUrl: (appUrl: string, agentId: string) => string;
|
|
|
12
15
|
export declare const agentChatUrl: (appUrl: string, agentId: string) => string;
|
|
13
16
|
export declare const urlHelpers: {
|
|
14
17
|
accountPortalAccountUrl: (accountPortalUrl?: string | null) => string;
|
|
15
|
-
accountPortalBillingUrl: (accountPortalUrl?: string | null
|
|
18
|
+
accountPortalBillingUrl: (accountPortalUrl?: string | null, options?: {
|
|
19
|
+
tenantId?: string | null;
|
|
20
|
+
purchasePrepaidAiCredits?: boolean;
|
|
21
|
+
} | string | null) => string;
|
|
16
22
|
accountPortalUpgradeUrl: (accountPortalUrl?: string | null, tenantId?: string | null) => string;
|
|
17
23
|
builderWorkspacesUrl: (builderBaseUrl?: string | null) => string;
|
|
18
24
|
builderSettingsEmailUrl: (builderBaseUrl?: string | null) => string;
|
package/dist/index.d.ts
CHANGED