@vendasta/ai-assistants 0.59.0 → 0.60.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.
- package/esm2020/lib/_internal/assistant.api.service.mjs +2 -12
- package/esm2020/lib/_internal/enums/api.enum.mjs +10 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +311 -449
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/esm2020/lib/_internal/objects/prompt.mjs +1 -77
- package/esm2020/lib/_internal/prompt-module.api.service.mjs +12 -2
- package/fesm2015/vendasta-ai-assistants.mjs +371 -576
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +371 -576
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +2 -4
- package/lib/_internal/enums/api.enum.d.ts +8 -0
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +59 -82
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/interfaces/prompt.interface.d.ts +0 -15
- package/lib/_internal/objects/api.d.ts +100 -132
- package/lib/_internal/objects/index.d.ts +2 -2
- package/lib/_internal/objects/prompt.d.ts +0 -21
- package/lib/_internal/prompt-module.api.service.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CreateAssistantRequest, CreateAssistantResponse, DeleteAssistantRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetMultiAssistantRequest, GetMultiAssistantResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse,
|
|
2
|
-
import { BuildDefaultAssistantRequestInterface, CreateAssistantRequestInterface, DeleteAssistantRequestInterface, ExecuteFunctionRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetMultiAssistantRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, ListAvailableModelsRequestInterface, ListTemplateVariablesRequestInterface,
|
|
1
|
+
import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CreateAssistantRequest, CreateAssistantResponse, DeleteAssistantRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetMultiAssistantRequest, GetMultiAssistantResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
|
|
2
|
+
import { BuildDefaultAssistantRequestInterface, CreateAssistantRequestInterface, DeleteAssistantRequestInterface, ExecuteFunctionRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetMultiAssistantRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, ListAvailableModelsRequestInterface, ListTemplateVariablesRequestInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpsertAssistantRequestInterface } from './interfaces/';
|
|
3
3
|
import { HttpResponse } from '@angular/common/http';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -18,8 +18,6 @@ export declare class AssistantApiService {
|
|
|
18
18
|
listAssistant(r: ListAssistantRequest | ListAssistantRequestInterface): Observable<ListAssistantResponse>;
|
|
19
19
|
listAllAssistantsAssociatedToConnection(r: ListAllAssistantsAssociatedToConnectionRequest | ListAllAssistantsAssociatedToConnectionRequestInterface): Observable<ListAllAssistantsAssociatedToConnectionResponse>;
|
|
20
20
|
generateChatAnswer(r: GenerateChatAnswerRequest | GenerateChatAnswerRequestInterface): Observable<GenerateChatAnswerResponse>;
|
|
21
|
-
streamingGenerateChatAnswer(r: StreamingGenerateChatAnswerRequest | StreamingGenerateChatAnswerRequestInterface): Observable<StreamingGenerateChatAnswerResponse>;
|
|
22
|
-
resumeStreamingGenerateChatAnswer(r: ResumeStreamingGenerateChatAnswerRequest | ResumeStreamingGenerateChatAnswerRequestInterface): Observable<StreamingGenerateChatAnswerResponse>;
|
|
23
21
|
getChatAnswerFunctionExecutionJob(r: GetChatAnswerFunctionExecutionJobRequest | GetChatAnswerFunctionExecutionJobRequestInterface): Observable<GetChatAnswerFunctionExecutionJobResponse>;
|
|
24
22
|
setAssistantConnections(r: SetAssistantConnectionsRequest | SetAssistantConnectionsRequestInterface): Observable<HttpResponse<null>>;
|
|
25
23
|
executeFunction(r: ExecuteFunctionRequest | ExecuteFunctionRequestInterface): Observable<ExecuteFunctionResponse>;
|
|
@@ -15,3 +15,11 @@ export declare enum ListGoalsRequestSortingOrder {
|
|
|
15
15
|
GOAL_SORTING_ORDER_ASCENDING = 0,
|
|
16
16
|
GOAL_SORTING_ORDER_DESCENDING = 1
|
|
17
17
|
}
|
|
18
|
+
export declare enum ValidationFailureAction {
|
|
19
|
+
VALIDATION_FAILURE_ACTION_UNSPECIFIED = 0,
|
|
20
|
+
VALIDATION_FAILURE_ACTION_NONE = 1,
|
|
21
|
+
VALIDATION_FAILURE_ACTION_WARN = 2,
|
|
22
|
+
VALIDATION_FAILURE_ACTION_MODIFY = 3,
|
|
23
|
+
VALIDATION_FAILURE_ACTION_BLOCK = 4,
|
|
24
|
+
VALIDATION_FAILURE_ACTION_EXCEPTION = 5
|
|
25
|
+
}
|
|
@@ -7,4 +7,4 @@ export { ModelType, ModelVendor, } from './model.enum';
|
|
|
7
7
|
export { VendorModel, } from './assistant.enum';
|
|
8
8
|
export { ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessageRole, } from './answer.enum';
|
|
9
9
|
export { SortDirection, } from './integration-tests.enum';
|
|
10
|
-
export { AgentArchitecture, StreamingGenerateChatAnswerResponseContentType, ListGoalsRequestSortingOrder, } from './api.enum';
|
|
10
|
+
export { AgentArchitecture, StreamingGenerateChatAnswerResponseContentType, ListGoalsRequestSortingOrder, ValidationFailureAction, } from './api.enum';
|
|
@@ -23,10 +23,6 @@ export interface SetAssistantConnectionsRequestConnectionStateInterface {
|
|
|
23
23
|
connectionKey?: ConnectionKeyInterface;
|
|
24
24
|
isAssociated?: boolean;
|
|
25
25
|
}
|
|
26
|
-
export interface StreamingGenerateChatAnswerResponseContentChunkInterface {
|
|
27
|
-
content?: string;
|
|
28
|
-
contentType?: e.StreamingGenerateChatAnswerResponseContentType;
|
|
29
|
-
}
|
|
30
26
|
export interface CreateAssistantRequestInterface {
|
|
31
27
|
assistant?: AssistantInterface;
|
|
32
28
|
options?: CreateAssistantRequestOptionsInterface;
|
|
@@ -85,12 +81,6 @@ export interface DeployPromptModuleRequestInterface {
|
|
|
85
81
|
namespace?: NamespaceInterface;
|
|
86
82
|
version?: string;
|
|
87
83
|
}
|
|
88
|
-
export interface StreamingGenerateChatAnswerResponseErrorChunkInterface {
|
|
89
|
-
errorMessage?: string;
|
|
90
|
-
errorCode?: string;
|
|
91
|
-
errorDetails?: KeyValuePairInterface[];
|
|
92
|
-
resumable?: boolean;
|
|
93
|
-
}
|
|
94
84
|
export interface ExecuteFunctionRequestInterface {
|
|
95
85
|
assistantKey?: AssistantKeyInterface;
|
|
96
86
|
functionKey?: FunctionKeyInterface;
|
|
@@ -101,6 +91,12 @@ export interface ExecuteFunctionResponseInterface {
|
|
|
101
91
|
output?: string;
|
|
102
92
|
metadata?: KeyValuePairInterface[];
|
|
103
93
|
}
|
|
94
|
+
export interface ListFunctionRequestFiltersInterface {
|
|
95
|
+
namespace?: NamespaceInterface;
|
|
96
|
+
namespaces?: NamespaceInterface[];
|
|
97
|
+
mcpId?: string;
|
|
98
|
+
constraintFilters?: ConstraintFilterInterface[];
|
|
99
|
+
}
|
|
104
100
|
export interface ListGoalsRequestFiltersInterface {
|
|
105
101
|
namespace?: NamespaceInterface;
|
|
106
102
|
type?: e.GoalType;
|
|
@@ -111,50 +107,24 @@ export interface ListGoalsRequestFiltersInterface {
|
|
|
111
107
|
sortOptions?: ListGoalsRequestSortOptionsInterface[];
|
|
112
108
|
omitOverrides?: boolean;
|
|
113
109
|
}
|
|
114
|
-
export interface ListPromptModuleRequestFiltersInterface {
|
|
115
|
-
namespace?: NamespaceInterface;
|
|
116
|
-
}
|
|
117
110
|
export interface ListAssistantRequestFiltersInterface {
|
|
118
111
|
namespace?: NamespaceInterface;
|
|
119
112
|
type?: e.AssistantType;
|
|
120
113
|
}
|
|
121
|
-
export interface
|
|
114
|
+
export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
115
|
+
type?: e.AssistantType;
|
|
116
|
+
}
|
|
117
|
+
export interface ListPromptModuleRequestFiltersInterface {
|
|
122
118
|
namespace?: NamespaceInterface;
|
|
123
|
-
assistantType?: e.AssistantType;
|
|
124
119
|
}
|
|
125
|
-
export interface
|
|
120
|
+
export interface ListConnectionsRequestFiltersInterface {
|
|
126
121
|
namespace?: NamespaceInterface;
|
|
127
|
-
|
|
128
|
-
mcpId?: string;
|
|
129
|
-
constraintFilters?: ConstraintFilterInterface[];
|
|
122
|
+
assistantType?: e.AssistantType;
|
|
130
123
|
}
|
|
131
124
|
export interface ListAvailableModelsRequestFiltersInterface {
|
|
132
125
|
vendor?: e.ModelVendor[];
|
|
133
126
|
type?: e.ModelType[];
|
|
134
127
|
}
|
|
135
|
-
export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
136
|
-
type?: e.AssistantType;
|
|
137
|
-
}
|
|
138
|
-
export interface StreamingGenerateChatAnswerResponseFinalChunkInterface {
|
|
139
|
-
}
|
|
140
|
-
export interface StreamingGenerateChatAnswerResponseFunctionCompleteChunkInterface {
|
|
141
|
-
functionName?: string;
|
|
142
|
-
result?: string;
|
|
143
|
-
metadata?: KeyValuePairInterface[];
|
|
144
|
-
functionCallId?: string;
|
|
145
|
-
}
|
|
146
|
-
export interface StreamingGenerateChatAnswerResponseFunctionProgressChunkInterface {
|
|
147
|
-
functionName?: string;
|
|
148
|
-
status?: string;
|
|
149
|
-
progressMessage?: string;
|
|
150
|
-
functionCallId?: string;
|
|
151
|
-
}
|
|
152
|
-
export interface StreamingGenerateChatAnswerResponseFunctionStartChunkInterface {
|
|
153
|
-
functionName?: string;
|
|
154
|
-
functionDescription?: string;
|
|
155
|
-
arguments?: string;
|
|
156
|
-
functionCallId?: string;
|
|
157
|
-
}
|
|
158
128
|
export interface GenerateChatAnswerRequestInterface {
|
|
159
129
|
connectionKey?: ConnectionKeyInterface;
|
|
160
130
|
chatHistory?: ChatMessageInterface[];
|
|
@@ -168,6 +138,7 @@ export interface GenerateChatAnswerResponseInterface {
|
|
|
168
138
|
answer?: string;
|
|
169
139
|
metadata?: KeyValuePairInterface[];
|
|
170
140
|
pendingJobId?: string;
|
|
141
|
+
validationResult?: ValidationResultInterface;
|
|
171
142
|
}
|
|
172
143
|
export interface GetAssistantRequestInterface {
|
|
173
144
|
id?: string;
|
|
@@ -341,36 +312,29 @@ export interface ListTemplateVariablesRequestInterface {
|
|
|
341
312
|
export interface ListTemplateVariablesResponseInterface {
|
|
342
313
|
assistantScopedVariables?: TemplateVariableInterface[];
|
|
343
314
|
}
|
|
344
|
-
export interface
|
|
345
|
-
|
|
346
|
-
}
|
|
347
|
-
export interface GetAssistantRequestOptionsInterface {
|
|
348
|
-
skipGoalsHydration?: boolean;
|
|
315
|
+
export interface UpsertAssistantRequestOptionsInterface {
|
|
316
|
+
applyDefaults?: boolean;
|
|
349
317
|
}
|
|
350
318
|
export interface GetMultiAssistantRequestOptionsInterface {
|
|
351
319
|
skipGoalsHydration?: boolean;
|
|
352
320
|
}
|
|
353
|
-
export interface
|
|
354
|
-
|
|
321
|
+
export interface CreatePromptModuleVersionRequestOptionsInterface {
|
|
322
|
+
shouldDeploy?: boolean;
|
|
355
323
|
}
|
|
356
324
|
export interface CreateAssistantRequestOptionsInterface {
|
|
357
325
|
applyDefaults?: boolean;
|
|
358
326
|
}
|
|
359
|
-
export interface
|
|
360
|
-
|
|
361
|
-
contextInfo?: ContextInfoInterface;
|
|
327
|
+
export interface GetAssistantRequestOptionsInterface {
|
|
328
|
+
skipGoalsHydration?: boolean;
|
|
362
329
|
}
|
|
363
330
|
export interface GenerateChatAnswerRequestOptionsInterface {
|
|
364
331
|
includeAllCitations?: boolean;
|
|
365
332
|
enableAsyncFunctions?: boolean;
|
|
366
333
|
maxTokens?: number;
|
|
367
334
|
}
|
|
368
|
-
export interface
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
export interface ResumeStreamingGenerateChatAnswerRequestInterface {
|
|
372
|
-
streamId?: string;
|
|
373
|
-
lastReceivedSequenceNumber?: number;
|
|
335
|
+
export interface ExecuteFunctionRequestOptionsInterface {
|
|
336
|
+
skipComputeTemplateVariables?: boolean;
|
|
337
|
+
contextInfo?: ContextInfoInterface;
|
|
374
338
|
}
|
|
375
339
|
export interface SetAssistantConnectionsRequestInterface {
|
|
376
340
|
associationStates?: SetAssistantConnectionsRequestConnectionStateInterface[];
|
|
@@ -380,30 +344,6 @@ export interface ListGoalsRequestSortOptionsInterface {
|
|
|
380
344
|
field?: string;
|
|
381
345
|
order?: e.ListGoalsRequestSortingOrder;
|
|
382
346
|
}
|
|
383
|
-
export interface StreamingGenerateChatAnswerResponseStartChunkInterface {
|
|
384
|
-
streamId?: string;
|
|
385
|
-
metadata?: KeyValuePairInterface[];
|
|
386
|
-
}
|
|
387
|
-
export interface StreamingGenerateChatAnswerRequestInterface {
|
|
388
|
-
connectionKey?: ConnectionKeyInterface;
|
|
389
|
-
assistantKey?: AssistantKeyInterface;
|
|
390
|
-
chatHistory?: ChatMessageInterface[];
|
|
391
|
-
chatUserInfo?: ChatUserInfoInterface;
|
|
392
|
-
chatChannel?: e.ChatChannel;
|
|
393
|
-
contextInfo?: ContextInfoInterface;
|
|
394
|
-
agentArchitecture?: e.AgentArchitecture;
|
|
395
|
-
}
|
|
396
|
-
export interface StreamingGenerateChatAnswerResponseInterface {
|
|
397
|
-
sequenceNumber?: number;
|
|
398
|
-
start?: StreamingGenerateChatAnswerResponseStartChunkInterface;
|
|
399
|
-
content?: StreamingGenerateChatAnswerResponseContentChunkInterface;
|
|
400
|
-
metadata?: StreamingGenerateChatAnswerResponseMetadataChunkInterface;
|
|
401
|
-
functionStart?: StreamingGenerateChatAnswerResponseFunctionStartChunkInterface;
|
|
402
|
-
functionProgress?: StreamingGenerateChatAnswerResponseFunctionProgressChunkInterface;
|
|
403
|
-
functionComplete?: StreamingGenerateChatAnswerResponseFunctionCompleteChunkInterface;
|
|
404
|
-
final?: StreamingGenerateChatAnswerResponseFinalChunkInterface;
|
|
405
|
-
error?: StreamingGenerateChatAnswerResponseErrorChunkInterface;
|
|
406
|
-
}
|
|
407
347
|
export interface UpdateAssistantRequestInterface {
|
|
408
348
|
assistant?: AssistantInterface;
|
|
409
349
|
fieldMask?: FieldMaskInterface;
|
|
@@ -440,3 +380,40 @@ export interface ValidatePromptModuleResponseInterface {
|
|
|
440
380
|
isValid?: boolean;
|
|
441
381
|
errorMessage?: string;
|
|
442
382
|
}
|
|
383
|
+
export interface ValidatePromptModuleVersionsRequestInterface {
|
|
384
|
+
versions?: PromptModuleVersionInterface[];
|
|
385
|
+
}
|
|
386
|
+
export interface ValidatePromptModuleVersionsResponseInterface {
|
|
387
|
+
results?: ValidatePromptModuleVersionsResponseValidationResultInterface[];
|
|
388
|
+
allValid?: boolean;
|
|
389
|
+
}
|
|
390
|
+
export interface ValidatePromptModulesRequestInterface {
|
|
391
|
+
promptModules?: PromptModuleInterface[];
|
|
392
|
+
}
|
|
393
|
+
export interface ValidatePromptModulesResponseInterface {
|
|
394
|
+
results?: ValidatePromptModulesResponseValidationResultInterface[];
|
|
395
|
+
allValid?: boolean;
|
|
396
|
+
}
|
|
397
|
+
export interface ValidatePromptModulesResponseValidationResultInterface {
|
|
398
|
+
id?: string;
|
|
399
|
+
namespace?: NamespaceInterface;
|
|
400
|
+
isValid?: boolean;
|
|
401
|
+
errorMessage?: string;
|
|
402
|
+
}
|
|
403
|
+
export interface ValidatePromptModuleVersionsResponseValidationResultInterface {
|
|
404
|
+
id?: string;
|
|
405
|
+
namespace?: NamespaceInterface;
|
|
406
|
+
isValid?: boolean;
|
|
407
|
+
errorMessage?: string;
|
|
408
|
+
}
|
|
409
|
+
export interface ValidationResultInterface {
|
|
410
|
+
failureAction?: e.ValidationFailureAction;
|
|
411
|
+
violations?: ValidationViolationInterface[];
|
|
412
|
+
}
|
|
413
|
+
export interface ValidationViolationInterface {
|
|
414
|
+
failureAction?: e.ValidationFailureAction;
|
|
415
|
+
confidence?: number;
|
|
416
|
+
message?: string;
|
|
417
|
+
validatorName?: string;
|
|
418
|
+
isInputValidation?: boolean;
|
|
419
|
+
}
|
|
@@ -2,7 +2,7 @@ export { NamespaceAccountGroupNamespaceInterface, NamespaceGlobalNamespaceInterf
|
|
|
2
2
|
export { ConstraintInterface, ConstraintFilterInterface, ScopeInterface, } from './constraints.interface';
|
|
3
3
|
export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
|
|
4
4
|
export { FunctionAuthStrategyConnectedIntegrationAuthStrategyInterface, CreateMCPFromIntegrationRequestInterface, DeleteMCPRequestInterface, ListMCPsRequestFiltersInterface, FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, FunctionAuthStrategyImpersonationAuthStrategyInterface, ListMCPToolsRequestInterface, ListMCPToolsResponseInterface, ListMCPsRequestInterface, ListMCPsResponseInterface, MCPInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, UpsertMCPRequestInterface, } from './function.interface';
|
|
5
|
-
export {
|
|
5
|
+
export { PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, } from './prompt.interface';
|
|
6
6
|
export { GoalInterface, GoalKeyInterface, } from './goal.interface';
|
|
7
7
|
export { KeyValuePairInterface, } from './common.interface';
|
|
8
8
|
export { ModelInterface, } from './model.interface';
|
|
@@ -12,4 +12,4 @@ export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJob
|
|
|
12
12
|
export { CancelTestRunRequestInterface, TestResultCitationInterface, DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, SortOptionsInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
|
|
13
13
|
export { AccessInterface, MCPOptionsInterface, } from './annotations.interface';
|
|
14
14
|
export { FieldMaskInterface, } from './field-mask.interface';
|
|
15
|
-
export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface,
|
|
15
|
+
export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeployPromptModuleRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListFunctionRequestFiltersInterface, ListGoalsRequestFiltersInterface, ListAssistantRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListAvailableModelsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiAssistantRequestInterface, GetMultiAssistantResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListAvailableModelsRequestInterface, ListAvailableModelsResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListTemplateVariablesRequestInterface, ListTemplateVariablesResponseInterface, UpsertAssistantRequestOptionsInterface, GetMultiAssistantRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, CreateAssistantRequestOptionsInterface, GetAssistantRequestOptionsInterface, GenerateChatAnswerRequestOptionsInterface, ExecuteFunctionRequestOptionsInterface, SetAssistantConnectionsRequestInterface, ListGoalsRequestSortOptionsInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, ValidatePromptModuleRequestInterface, ValidatePromptModuleResponseInterface, ValidatePromptModuleVersionsRequestInterface, ValidatePromptModuleVersionsResponseInterface, ValidatePromptModulesRequestInterface, ValidatePromptModulesResponseInterface, ValidatePromptModulesResponseValidationResultInterface, ValidatePromptModuleVersionsResponseValidationResultInterface, ValidationResultInterface, ValidationViolationInterface, } from './api.interface';
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { NamespaceInterface } from './namespace.interface';
|
|
2
|
-
export interface PromptInterface {
|
|
3
|
-
id?: string;
|
|
4
|
-
deployedVersion?: string;
|
|
5
|
-
deployedBy?: string;
|
|
6
|
-
updated?: Date;
|
|
7
|
-
description?: string;
|
|
8
|
-
deployed?: Date;
|
|
9
|
-
}
|
|
10
2
|
export interface PromptModuleInterface {
|
|
11
3
|
id?: string;
|
|
12
4
|
namespace?: NamespaceInterface;
|
|
@@ -30,10 +22,3 @@ export interface PromptModuleVersionInterface {
|
|
|
30
22
|
createdBy?: string;
|
|
31
23
|
created?: Date;
|
|
32
24
|
}
|
|
33
|
-
export interface PromptVersionInterface {
|
|
34
|
-
id?: string;
|
|
35
|
-
version?: string;
|
|
36
|
-
content?: string;
|
|
37
|
-
createdBy?: string;
|
|
38
|
-
created?: Date;
|
|
39
|
-
}
|
|
@@ -34,13 +34,6 @@ export declare class SetAssistantConnectionsRequestConnectionState implements i.
|
|
|
34
34
|
constructor(kwargs?: i.SetAssistantConnectionsRequestConnectionStateInterface);
|
|
35
35
|
toApiJson(): object;
|
|
36
36
|
}
|
|
37
|
-
export declare class StreamingGenerateChatAnswerResponseContentChunk implements i.StreamingGenerateChatAnswerResponseContentChunkInterface {
|
|
38
|
-
content: string;
|
|
39
|
-
contentType: e.StreamingGenerateChatAnswerResponseContentType;
|
|
40
|
-
static fromProto(proto: any): StreamingGenerateChatAnswerResponseContentChunk;
|
|
41
|
-
constructor(kwargs?: i.StreamingGenerateChatAnswerResponseContentChunkInterface);
|
|
42
|
-
toApiJson(): object;
|
|
43
|
-
}
|
|
44
37
|
export declare class CreateAssistantRequest implements i.CreateAssistantRequestInterface {
|
|
45
38
|
assistant: Assistant;
|
|
46
39
|
options: CreateAssistantRequestOptions;
|
|
@@ -138,15 +131,6 @@ export declare class DeployPromptModuleRequest implements i.DeployPromptModuleRe
|
|
|
138
131
|
constructor(kwargs?: i.DeployPromptModuleRequestInterface);
|
|
139
132
|
toApiJson(): object;
|
|
140
133
|
}
|
|
141
|
-
export declare class StreamingGenerateChatAnswerResponseErrorChunk implements i.StreamingGenerateChatAnswerResponseErrorChunkInterface {
|
|
142
|
-
errorMessage: string;
|
|
143
|
-
errorCode: string;
|
|
144
|
-
errorDetails: KeyValuePair[];
|
|
145
|
-
resumable: boolean;
|
|
146
|
-
static fromProto(proto: any): StreamingGenerateChatAnswerResponseErrorChunk;
|
|
147
|
-
constructor(kwargs?: i.StreamingGenerateChatAnswerResponseErrorChunkInterface);
|
|
148
|
-
toApiJson(): object;
|
|
149
|
-
}
|
|
150
134
|
export declare class ExecuteFunctionRequest implements i.ExecuteFunctionRequestInterface {
|
|
151
135
|
assistantKey: AssistantKey;
|
|
152
136
|
functionKey: FunctionKey;
|
|
@@ -163,6 +147,15 @@ export declare class ExecuteFunctionResponse implements i.ExecuteFunctionRespons
|
|
|
163
147
|
constructor(kwargs?: i.ExecuteFunctionResponseInterface);
|
|
164
148
|
toApiJson(): object;
|
|
165
149
|
}
|
|
150
|
+
export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
|
|
151
|
+
namespace: Namespace;
|
|
152
|
+
namespaces: Namespace[];
|
|
153
|
+
mcpId: string;
|
|
154
|
+
constraintFilters: ConstraintFilter[];
|
|
155
|
+
static fromProto(proto: any): ListFunctionRequestFilters;
|
|
156
|
+
constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
|
|
157
|
+
toApiJson(): object;
|
|
158
|
+
}
|
|
166
159
|
export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
|
|
167
160
|
namespace: Namespace;
|
|
168
161
|
type: e.GoalType;
|
|
@@ -176,12 +169,6 @@ export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFilter
|
|
|
176
169
|
constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
|
|
177
170
|
toApiJson(): object;
|
|
178
171
|
}
|
|
179
|
-
export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
|
|
180
|
-
namespace: Namespace;
|
|
181
|
-
static fromProto(proto: any): ListPromptModuleRequestFilters;
|
|
182
|
-
constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
|
|
183
|
-
toApiJson(): object;
|
|
184
|
-
}
|
|
185
172
|
export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
|
|
186
173
|
namespace: Namespace;
|
|
187
174
|
type: e.AssistantType;
|
|
@@ -189,6 +176,18 @@ export declare class ListAssistantRequestFilters implements i.ListAssistantReque
|
|
|
189
176
|
constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
|
|
190
177
|
toApiJson(): object;
|
|
191
178
|
}
|
|
179
|
+
export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
180
|
+
type: e.AssistantType;
|
|
181
|
+
static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
|
|
182
|
+
constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
|
|
183
|
+
toApiJson(): object;
|
|
184
|
+
}
|
|
185
|
+
export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
|
|
186
|
+
namespace: Namespace;
|
|
187
|
+
static fromProto(proto: any): ListPromptModuleRequestFilters;
|
|
188
|
+
constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
|
|
189
|
+
toApiJson(): object;
|
|
190
|
+
}
|
|
192
191
|
export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
|
|
193
192
|
namespace: Namespace;
|
|
194
193
|
assistantType: e.AssistantType;
|
|
@@ -196,15 +195,6 @@ export declare class ListConnectionsRequestFilters implements i.ListConnectionsR
|
|
|
196
195
|
constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
|
|
197
196
|
toApiJson(): object;
|
|
198
197
|
}
|
|
199
|
-
export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
|
|
200
|
-
namespace: Namespace;
|
|
201
|
-
namespaces: Namespace[];
|
|
202
|
-
mcpId: string;
|
|
203
|
-
constraintFilters: ConstraintFilter[];
|
|
204
|
-
static fromProto(proto: any): ListFunctionRequestFilters;
|
|
205
|
-
constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
|
|
206
|
-
toApiJson(): object;
|
|
207
|
-
}
|
|
208
198
|
export declare class ListAvailableModelsRequestFilters implements i.ListAvailableModelsRequestFiltersInterface {
|
|
209
199
|
vendor: e.ModelVendor[];
|
|
210
200
|
type: e.ModelType[];
|
|
@@ -212,44 +202,6 @@ export declare class ListAvailableModelsRequestFilters implements i.ListAvailabl
|
|
|
212
202
|
constructor(kwargs?: i.ListAvailableModelsRequestFiltersInterface);
|
|
213
203
|
toApiJson(): object;
|
|
214
204
|
}
|
|
215
|
-
export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
216
|
-
type: e.AssistantType;
|
|
217
|
-
static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
|
|
218
|
-
constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
|
|
219
|
-
toApiJson(): object;
|
|
220
|
-
}
|
|
221
|
-
export declare class StreamingGenerateChatAnswerResponseFinalChunk implements i.StreamingGenerateChatAnswerResponseFinalChunkInterface {
|
|
222
|
-
static fromProto(proto: any): StreamingGenerateChatAnswerResponseFinalChunk;
|
|
223
|
-
constructor(kwargs?: i.StreamingGenerateChatAnswerResponseFinalChunkInterface);
|
|
224
|
-
toApiJson(): object;
|
|
225
|
-
}
|
|
226
|
-
export declare class StreamingGenerateChatAnswerResponseFunctionCompleteChunk implements i.StreamingGenerateChatAnswerResponseFunctionCompleteChunkInterface {
|
|
227
|
-
functionName: string;
|
|
228
|
-
result: string;
|
|
229
|
-
metadata: KeyValuePair[];
|
|
230
|
-
functionCallId: string;
|
|
231
|
-
static fromProto(proto: any): StreamingGenerateChatAnswerResponseFunctionCompleteChunk;
|
|
232
|
-
constructor(kwargs?: i.StreamingGenerateChatAnswerResponseFunctionCompleteChunkInterface);
|
|
233
|
-
toApiJson(): object;
|
|
234
|
-
}
|
|
235
|
-
export declare class StreamingGenerateChatAnswerResponseFunctionProgressChunk implements i.StreamingGenerateChatAnswerResponseFunctionProgressChunkInterface {
|
|
236
|
-
functionName: string;
|
|
237
|
-
status: string;
|
|
238
|
-
progressMessage: string;
|
|
239
|
-
functionCallId: string;
|
|
240
|
-
static fromProto(proto: any): StreamingGenerateChatAnswerResponseFunctionProgressChunk;
|
|
241
|
-
constructor(kwargs?: i.StreamingGenerateChatAnswerResponseFunctionProgressChunkInterface);
|
|
242
|
-
toApiJson(): object;
|
|
243
|
-
}
|
|
244
|
-
export declare class StreamingGenerateChatAnswerResponseFunctionStartChunk implements i.StreamingGenerateChatAnswerResponseFunctionStartChunkInterface {
|
|
245
|
-
functionName: string;
|
|
246
|
-
functionDescription: string;
|
|
247
|
-
arguments: string;
|
|
248
|
-
functionCallId: string;
|
|
249
|
-
static fromProto(proto: any): StreamingGenerateChatAnswerResponseFunctionStartChunk;
|
|
250
|
-
constructor(kwargs?: i.StreamingGenerateChatAnswerResponseFunctionStartChunkInterface);
|
|
251
|
-
toApiJson(): object;
|
|
252
|
-
}
|
|
253
205
|
export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
|
|
254
206
|
connectionKey: ConnectionKey;
|
|
255
207
|
chatHistory: ChatMessage[];
|
|
@@ -266,6 +218,7 @@ export declare class GenerateChatAnswerResponse implements i.GenerateChatAnswerR
|
|
|
266
218
|
answer: string;
|
|
267
219
|
metadata: KeyValuePair[];
|
|
268
220
|
pendingJobId: string;
|
|
221
|
+
validationResult: ValidationResult;
|
|
269
222
|
static fromProto(proto: any): GenerateChatAnswerResponse;
|
|
270
223
|
constructor(kwargs?: i.GenerateChatAnswerResponseInterface);
|
|
271
224
|
toApiJson(): object;
|
|
@@ -580,16 +533,10 @@ export declare class ListTemplateVariablesResponse implements i.ListTemplateVari
|
|
|
580
533
|
constructor(kwargs?: i.ListTemplateVariablesResponseInterface);
|
|
581
534
|
toApiJson(): object;
|
|
582
535
|
}
|
|
583
|
-
export declare class
|
|
584
|
-
|
|
585
|
-
static fromProto(proto: any):
|
|
586
|
-
constructor(kwargs?: i.
|
|
587
|
-
toApiJson(): object;
|
|
588
|
-
}
|
|
589
|
-
export declare class GetAssistantRequestOptions implements i.GetAssistantRequestOptionsInterface {
|
|
590
|
-
skipGoalsHydration: boolean;
|
|
591
|
-
static fromProto(proto: any): GetAssistantRequestOptions;
|
|
592
|
-
constructor(kwargs?: i.GetAssistantRequestOptionsInterface);
|
|
536
|
+
export declare class UpsertAssistantRequestOptions implements i.UpsertAssistantRequestOptionsInterface {
|
|
537
|
+
applyDefaults: boolean;
|
|
538
|
+
static fromProto(proto: any): UpsertAssistantRequestOptions;
|
|
539
|
+
constructor(kwargs?: i.UpsertAssistantRequestOptionsInterface);
|
|
593
540
|
toApiJson(): object;
|
|
594
541
|
}
|
|
595
542
|
export declare class GetMultiAssistantRequestOptions implements i.GetMultiAssistantRequestOptionsInterface {
|
|
@@ -598,10 +545,10 @@ export declare class GetMultiAssistantRequestOptions implements i.GetMultiAssist
|
|
|
598
545
|
constructor(kwargs?: i.GetMultiAssistantRequestOptionsInterface);
|
|
599
546
|
toApiJson(): object;
|
|
600
547
|
}
|
|
601
|
-
export declare class
|
|
602
|
-
|
|
603
|
-
static fromProto(proto: any):
|
|
604
|
-
constructor(kwargs?: i.
|
|
548
|
+
export declare class CreatePromptModuleVersionRequestOptions implements i.CreatePromptModuleVersionRequestOptionsInterface {
|
|
549
|
+
shouldDeploy: boolean;
|
|
550
|
+
static fromProto(proto: any): CreatePromptModuleVersionRequestOptions;
|
|
551
|
+
constructor(kwargs?: i.CreatePromptModuleVersionRequestOptionsInterface);
|
|
605
552
|
toApiJson(): object;
|
|
606
553
|
}
|
|
607
554
|
export declare class CreateAssistantRequestOptions implements i.CreateAssistantRequestOptionsInterface {
|
|
@@ -610,11 +557,10 @@ export declare class CreateAssistantRequestOptions implements i.CreateAssistantR
|
|
|
610
557
|
constructor(kwargs?: i.CreateAssistantRequestOptionsInterface);
|
|
611
558
|
toApiJson(): object;
|
|
612
559
|
}
|
|
613
|
-
export declare class
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
constructor(kwargs?: i.ExecuteFunctionRequestOptionsInterface);
|
|
560
|
+
export declare class GetAssistantRequestOptions implements i.GetAssistantRequestOptionsInterface {
|
|
561
|
+
skipGoalsHydration: boolean;
|
|
562
|
+
static fromProto(proto: any): GetAssistantRequestOptions;
|
|
563
|
+
constructor(kwargs?: i.GetAssistantRequestOptionsInterface);
|
|
618
564
|
toApiJson(): object;
|
|
619
565
|
}
|
|
620
566
|
export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatAnswerRequestOptionsInterface {
|
|
@@ -625,17 +571,11 @@ export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatA
|
|
|
625
571
|
constructor(kwargs?: i.GenerateChatAnswerRequestOptionsInterface);
|
|
626
572
|
toApiJson(): object;
|
|
627
573
|
}
|
|
628
|
-
export declare class
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}
|
|
634
|
-
export declare class ResumeStreamingGenerateChatAnswerRequest implements i.ResumeStreamingGenerateChatAnswerRequestInterface {
|
|
635
|
-
streamId: string;
|
|
636
|
-
lastReceivedSequenceNumber: number;
|
|
637
|
-
static fromProto(proto: any): ResumeStreamingGenerateChatAnswerRequest;
|
|
638
|
-
constructor(kwargs?: i.ResumeStreamingGenerateChatAnswerRequestInterface);
|
|
574
|
+
export declare class ExecuteFunctionRequestOptions implements i.ExecuteFunctionRequestOptionsInterface {
|
|
575
|
+
skipComputeTemplateVariables: boolean;
|
|
576
|
+
contextInfo: ContextInfo;
|
|
577
|
+
static fromProto(proto: any): ExecuteFunctionRequestOptions;
|
|
578
|
+
constructor(kwargs?: i.ExecuteFunctionRequestOptionsInterface);
|
|
639
579
|
toApiJson(): object;
|
|
640
580
|
}
|
|
641
581
|
export declare class SetAssistantConnectionsRequest implements i.SetAssistantConnectionsRequestInterface {
|
|
@@ -652,39 +592,6 @@ export declare class ListGoalsRequestSortOptions implements i.ListGoalsRequestSo
|
|
|
652
592
|
constructor(kwargs?: i.ListGoalsRequestSortOptionsInterface);
|
|
653
593
|
toApiJson(): object;
|
|
654
594
|
}
|
|
655
|
-
export declare class StreamingGenerateChatAnswerResponseStartChunk implements i.StreamingGenerateChatAnswerResponseStartChunkInterface {
|
|
656
|
-
streamId: string;
|
|
657
|
-
metadata: KeyValuePair[];
|
|
658
|
-
static fromProto(proto: any): StreamingGenerateChatAnswerResponseStartChunk;
|
|
659
|
-
constructor(kwargs?: i.StreamingGenerateChatAnswerResponseStartChunkInterface);
|
|
660
|
-
toApiJson(): object;
|
|
661
|
-
}
|
|
662
|
-
export declare class StreamingGenerateChatAnswerRequest implements i.StreamingGenerateChatAnswerRequestInterface {
|
|
663
|
-
connectionKey: ConnectionKey;
|
|
664
|
-
assistantKey: AssistantKey;
|
|
665
|
-
chatHistory: ChatMessage[];
|
|
666
|
-
chatUserInfo: ChatUserInfo;
|
|
667
|
-
chatChannel: e.ChatChannel;
|
|
668
|
-
contextInfo: ContextInfo;
|
|
669
|
-
agentArchitecture: e.AgentArchitecture;
|
|
670
|
-
static fromProto(proto: any): StreamingGenerateChatAnswerRequest;
|
|
671
|
-
constructor(kwargs?: i.StreamingGenerateChatAnswerRequestInterface);
|
|
672
|
-
toApiJson(): object;
|
|
673
|
-
}
|
|
674
|
-
export declare class StreamingGenerateChatAnswerResponse implements i.StreamingGenerateChatAnswerResponseInterface {
|
|
675
|
-
sequenceNumber: number;
|
|
676
|
-
start: StreamingGenerateChatAnswerResponseStartChunk;
|
|
677
|
-
content: StreamingGenerateChatAnswerResponseContentChunk;
|
|
678
|
-
metadata: StreamingGenerateChatAnswerResponseMetadataChunk;
|
|
679
|
-
functionStart: StreamingGenerateChatAnswerResponseFunctionStartChunk;
|
|
680
|
-
functionProgress: StreamingGenerateChatAnswerResponseFunctionProgressChunk;
|
|
681
|
-
functionComplete: StreamingGenerateChatAnswerResponseFunctionCompleteChunk;
|
|
682
|
-
final: StreamingGenerateChatAnswerResponseFinalChunk;
|
|
683
|
-
error: StreamingGenerateChatAnswerResponseErrorChunk;
|
|
684
|
-
static fromProto(proto: any): StreamingGenerateChatAnswerResponse;
|
|
685
|
-
constructor(kwargs?: i.StreamingGenerateChatAnswerResponseInterface);
|
|
686
|
-
toApiJson(): object;
|
|
687
|
-
}
|
|
688
595
|
export declare class UpdateAssistantRequest implements i.UpdateAssistantRequestInterface {
|
|
689
596
|
assistant: Assistant;
|
|
690
597
|
fieldMask: FieldMask;
|
|
@@ -751,3 +658,64 @@ export declare class ValidatePromptModuleResponse implements i.ValidatePromptMod
|
|
|
751
658
|
constructor(kwargs?: i.ValidatePromptModuleResponseInterface);
|
|
752
659
|
toApiJson(): object;
|
|
753
660
|
}
|
|
661
|
+
export declare class ValidatePromptModuleVersionsRequest implements i.ValidatePromptModuleVersionsRequestInterface {
|
|
662
|
+
versions: PromptModuleVersion[];
|
|
663
|
+
static fromProto(proto: any): ValidatePromptModuleVersionsRequest;
|
|
664
|
+
constructor(kwargs?: i.ValidatePromptModuleVersionsRequestInterface);
|
|
665
|
+
toApiJson(): object;
|
|
666
|
+
}
|
|
667
|
+
export declare class ValidatePromptModuleVersionsResponse implements i.ValidatePromptModuleVersionsResponseInterface {
|
|
668
|
+
results: ValidatePromptModuleVersionsResponseValidationResult[];
|
|
669
|
+
allValid: boolean;
|
|
670
|
+
static fromProto(proto: any): ValidatePromptModuleVersionsResponse;
|
|
671
|
+
constructor(kwargs?: i.ValidatePromptModuleVersionsResponseInterface);
|
|
672
|
+
toApiJson(): object;
|
|
673
|
+
}
|
|
674
|
+
export declare class ValidatePromptModulesRequest implements i.ValidatePromptModulesRequestInterface {
|
|
675
|
+
promptModules: PromptModule[];
|
|
676
|
+
static fromProto(proto: any): ValidatePromptModulesRequest;
|
|
677
|
+
constructor(kwargs?: i.ValidatePromptModulesRequestInterface);
|
|
678
|
+
toApiJson(): object;
|
|
679
|
+
}
|
|
680
|
+
export declare class ValidatePromptModulesResponse implements i.ValidatePromptModulesResponseInterface {
|
|
681
|
+
results: ValidatePromptModulesResponseValidationResult[];
|
|
682
|
+
allValid: boolean;
|
|
683
|
+
static fromProto(proto: any): ValidatePromptModulesResponse;
|
|
684
|
+
constructor(kwargs?: i.ValidatePromptModulesResponseInterface);
|
|
685
|
+
toApiJson(): object;
|
|
686
|
+
}
|
|
687
|
+
export declare class ValidatePromptModulesResponseValidationResult implements i.ValidatePromptModulesResponseValidationResultInterface {
|
|
688
|
+
id: string;
|
|
689
|
+
namespace: Namespace;
|
|
690
|
+
isValid: boolean;
|
|
691
|
+
errorMessage: string;
|
|
692
|
+
static fromProto(proto: any): ValidatePromptModulesResponseValidationResult;
|
|
693
|
+
constructor(kwargs?: i.ValidatePromptModulesResponseValidationResultInterface);
|
|
694
|
+
toApiJson(): object;
|
|
695
|
+
}
|
|
696
|
+
export declare class ValidatePromptModuleVersionsResponseValidationResult implements i.ValidatePromptModuleVersionsResponseValidationResultInterface {
|
|
697
|
+
id: string;
|
|
698
|
+
namespace: Namespace;
|
|
699
|
+
isValid: boolean;
|
|
700
|
+
errorMessage: string;
|
|
701
|
+
static fromProto(proto: any): ValidatePromptModuleVersionsResponseValidationResult;
|
|
702
|
+
constructor(kwargs?: i.ValidatePromptModuleVersionsResponseValidationResultInterface);
|
|
703
|
+
toApiJson(): object;
|
|
704
|
+
}
|
|
705
|
+
export declare class ValidationResult implements i.ValidationResultInterface {
|
|
706
|
+
failureAction: e.ValidationFailureAction;
|
|
707
|
+
violations: ValidationViolation[];
|
|
708
|
+
static fromProto(proto: any): ValidationResult;
|
|
709
|
+
constructor(kwargs?: i.ValidationResultInterface);
|
|
710
|
+
toApiJson(): object;
|
|
711
|
+
}
|
|
712
|
+
export declare class ValidationViolation implements i.ValidationViolationInterface {
|
|
713
|
+
failureAction: e.ValidationFailureAction;
|
|
714
|
+
confidence: number;
|
|
715
|
+
message: string;
|
|
716
|
+
validatorName: string;
|
|
717
|
+
isInputValidation: boolean;
|
|
718
|
+
static fromProto(proto: any): ValidationViolation;
|
|
719
|
+
constructor(kwargs?: i.ValidationViolationInterface);
|
|
720
|
+
toApiJson(): object;
|
|
721
|
+
}
|