sarvam-agents-client 0.2.3 → 0.3.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/README.md +16 -1
- package/dist/apis/AgentsApi.d.ts +4 -4
- package/dist/apis/AgentsApi.js +4 -4
- package/dist/apis/AppsApi.d.ts +1 -0
- package/dist/apis/AppsApi.js +3 -0
- package/dist/apis/FunctionToolsApi.d.ts +33 -0
- package/dist/apis/FunctionToolsApi.js +65 -0
- package/dist/apis/QueueApi.d.ts +1 -0
- package/dist/apis/QueueApi.js +3 -0
- package/dist/apis/ResponsesApi.d.ts +2 -0
- package/dist/apis/ResponsesApi.js +6 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/compose/agent.d.ts +26 -6
- package/dist/compose/agent.js +84 -7
- package/dist/compose/deploy.d.ts +3 -2
- package/dist/compose/errors.d.ts +22 -1
- package/dist/compose/errors.js +21 -1
- package/dist/compose/events.d.ts +38 -0
- package/dist/compose/events.js +59 -2
- package/dist/compose/functionTool.d.ts +101 -0
- package/dist/compose/functionTool.js +420 -0
- package/dist/compose/index.d.ts +7 -3
- package/dist/compose/index.js +3 -1
- package/dist/compose/output.d.ts +40 -0
- package/dist/compose/output.js +476 -0
- package/dist/compose/run.d.ts +44 -15
- package/dist/compose/run.js +164 -21
- package/dist/compose/runState.d.ts +28 -2
- package/dist/compose/runState.js +30 -0
- package/dist/compose/settingsTransport.d.ts +23 -3
- package/dist/compose/settingsTransport.js +295 -3
- package/dist/compose/transport.d.ts +21 -3
- package/dist/esm/apis/AgentsApi.d.ts +4 -4
- package/dist/esm/apis/AgentsApi.js +4 -4
- package/dist/esm/apis/AppsApi.d.ts +1 -0
- package/dist/esm/apis/AppsApi.js +3 -0
- package/dist/esm/apis/FunctionToolsApi.d.ts +33 -0
- package/dist/esm/apis/FunctionToolsApi.js +61 -0
- package/dist/esm/apis/QueueApi.d.ts +1 -0
- package/dist/esm/apis/QueueApi.js +3 -0
- package/dist/esm/apis/ResponsesApi.d.ts +2 -0
- package/dist/esm/apis/ResponsesApi.js +6 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/compose/agent.d.ts +26 -6
- package/dist/esm/compose/agent.js +84 -7
- package/dist/esm/compose/deploy.d.ts +3 -2
- package/dist/esm/compose/errors.d.ts +22 -1
- package/dist/esm/compose/errors.js +21 -1
- package/dist/esm/compose/events.d.ts +38 -0
- package/dist/esm/compose/events.js +58 -2
- package/dist/esm/compose/functionTool.d.ts +101 -0
- package/dist/esm/compose/functionTool.js +406 -0
- package/dist/esm/compose/index.d.ts +7 -3
- package/dist/esm/compose/index.js +1 -0
- package/dist/esm/compose/output.d.ts +40 -0
- package/dist/esm/compose/output.js +466 -0
- package/dist/esm/compose/run.d.ts +44 -15
- package/dist/esm/compose/run.js +165 -22
- package/dist/esm/compose/runState.d.ts +28 -2
- package/dist/esm/compose/runState.js +31 -1
- package/dist/esm/compose/settingsTransport.d.ts +23 -3
- package/dist/esm/compose/settingsTransport.js +298 -7
- package/dist/esm/compose/transport.d.ts +21 -3
- package/dist/esm/models/AgentConversationDetail.d.ts +7 -0
- package/dist/esm/models/AgentConversationDetail.js +3 -0
- package/dist/esm/models/AppResource.d.ts +29 -0
- package/dist/esm/models/AppResource.js +16 -0
- package/dist/esm/models/AppToolsResponse.d.ts +3 -4
- package/dist/esm/models/AppToolsResponse.js +3 -2
- package/dist/esm/models/AppView.d.ts +48 -0
- package/dist/esm/models/AppView.js +23 -0
- package/dist/esm/models/ClarifyBody.d.ts +6 -0
- package/dist/esm/models/ClarifyBody.js +2 -0
- package/dist/esm/models/ConversationDetail.d.ts +7 -0
- package/dist/esm/models/ConversationDetail.js +3 -0
- package/dist/esm/models/ErrorDetail.d.ts +1 -0
- package/dist/esm/models/ErrorDetail.js +2 -1
- package/dist/esm/models/FunctionResultBody.d.ts +44 -0
- package/dist/esm/models/FunctionResultBody.js +49 -0
- package/dist/esm/models/McpSecurityAppealView.d.ts +50 -0
- package/dist/esm/models/McpSecurityAppealView.js +47 -0
- package/dist/esm/models/McpSecurityView.d.ts +105 -0
- package/dist/esm/models/McpSecurityView.js +66 -0
- package/dist/esm/models/MessagesResponse.d.ts +6 -0
- package/dist/esm/models/MessagesResponse.js +2 -0
- package/dist/esm/models/QueueMessageInput.d.ts +23 -0
- package/dist/esm/models/QueueMessageInput.js +14 -0
- package/dist/esm/models/RequiredAction.d.ts +77 -0
- package/dist/esm/models/RequiredAction.js +69 -0
- package/dist/esm/models/ResponseDetail.d.ts +40 -0
- package/dist/esm/models/ResponseDetail.js +12 -0
- package/dist/esm/models/ResponseInput.d.ts +23 -0
- package/dist/esm/models/ResponseInput.js +14 -0
- package/dist/esm/models/ToolResults200Response.d.ts +38 -0
- package/dist/esm/models/ToolResults200Response.js +47 -0
- package/dist/esm/models/ToolResultsBody.d.ts +39 -0
- package/dist/esm/models/ToolResultsBody.js +48 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/streaming.d.ts +14 -2
- package/dist/esm/streaming.js +26 -4
- package/dist/models/AgentConversationDetail.d.ts +7 -0
- package/dist/models/AgentConversationDetail.js +3 -0
- package/dist/models/AppResource.d.ts +29 -0
- package/dist/models/AppResource.js +17 -1
- package/dist/models/AppToolsResponse.d.ts +3 -4
- package/dist/models/AppToolsResponse.js +3 -2
- package/dist/models/AppView.d.ts +48 -0
- package/dist/models/AppView.js +24 -1
- package/dist/models/ClarifyBody.d.ts +6 -0
- package/dist/models/ClarifyBody.js +2 -0
- package/dist/models/ConversationDetail.d.ts +7 -0
- package/dist/models/ConversationDetail.js +3 -0
- package/dist/models/ErrorDetail.d.ts +1 -0
- package/dist/models/ErrorDetail.js +2 -1
- package/dist/models/FunctionResultBody.d.ts +44 -0
- package/dist/models/FunctionResultBody.js +56 -0
- package/dist/models/McpSecurityAppealView.d.ts +50 -0
- package/dist/models/McpSecurityAppealView.js +54 -0
- package/dist/models/McpSecurityView.d.ts +105 -0
- package/dist/models/McpSecurityView.js +73 -0
- package/dist/models/MessagesResponse.d.ts +6 -0
- package/dist/models/MessagesResponse.js +2 -0
- package/dist/models/QueueMessageInput.d.ts +23 -0
- package/dist/models/QueueMessageInput.js +15 -1
- package/dist/models/RequiredAction.d.ts +77 -0
- package/dist/models/RequiredAction.js +77 -0
- package/dist/models/ResponseDetail.d.ts +40 -0
- package/dist/models/ResponseDetail.js +12 -0
- package/dist/models/ResponseInput.d.ts +23 -0
- package/dist/models/ResponseInput.js +15 -0
- package/dist/models/ToolResults200Response.d.ts +38 -0
- package/dist/models/ToolResults200Response.js +54 -0
- package/dist/models/ToolResultsBody.d.ts +39 -0
- package/dist/models/ToolResultsBody.js +55 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/streaming.d.ts +14 -2
- package/dist/streaming.js +27 -4
- package/package.json +4 -3
- package/src/apis/AgentsApi.ts +4 -4
- package/src/apis/AppsApi.ts +5 -0
- package/src/apis/FunctionToolsApi.ts +102 -0
- package/src/apis/QueueApi.ts +5 -0
- package/src/apis/ResponsesApi.ts +10 -0
- package/src/apis/index.ts +1 -0
- package/src/compose/agent.ts +108 -15
- package/src/compose/deploy.ts +6 -5
- package/src/compose/errors.ts +35 -2
- package/src/compose/events.ts +79 -1
- package/src/compose/functionTool.ts +441 -0
- package/src/compose/index.ts +7 -3
- package/src/compose/output.ts +436 -0
- package/src/compose/run.ts +208 -39
- package/src/compose/runState.ts +46 -6
- package/src/compose/settingsTransport.ts +297 -10
- package/src/compose/transport.ts +27 -3
- package/src/models/AgentConversationDetail.ts +15 -0
- package/src/models/AppResource.ts +42 -0
- package/src/models/AppToolsResponse.ts +11 -4
- package/src/models/AppView.ts +73 -0
- package/src/models/ClarifyBody.ts +8 -0
- package/src/models/ConversationDetail.ts +15 -0
- package/src/models/ErrorDetail.ts +2 -1
- package/src/models/FunctionResultBody.ts +83 -0
- package/src/models/McpSecurityAppealView.ts +89 -0
- package/src/models/McpSecurityView.ts +169 -0
- package/src/models/MessagesResponse.ts +8 -0
- package/src/models/QueueMessageInput.ts +28 -0
- package/src/models/RequiredAction.ts +128 -0
- package/src/models/ResponseDetail.ts +48 -0
- package/src/models/ResponseInput.ts +30 -0
- package/src/models/ToolResults200Response.ts +75 -0
- package/src/models/ToolResultsBody.ts +83 -0
- package/src/models/index.ts +6 -0
- package/src/streaming.ts +39 -3
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One function call the app must run before the turn can continue.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RequiredAction
|
|
16
|
+
*/
|
|
17
|
+
export interface RequiredAction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequiredAction
|
|
22
|
+
*/
|
|
23
|
+
type?: RequiredActionTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RequiredAction
|
|
28
|
+
*/
|
|
29
|
+
requestId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RequiredAction
|
|
34
|
+
*/
|
|
35
|
+
toolCallId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RequiredAction
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: any; }}
|
|
45
|
+
* @memberof RequiredAction
|
|
46
|
+
*/
|
|
47
|
+
arguments: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof RequiredAction
|
|
54
|
+
*/
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof RequiredAction
|
|
60
|
+
*/
|
|
61
|
+
expiresAt?: Date | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const RequiredActionTypeEnum: {
|
|
67
|
+
readonly FunctionCall: "function_call";
|
|
68
|
+
};
|
|
69
|
+
export type RequiredActionTypeEnum = typeof RequiredActionTypeEnum[keyof typeof RequiredActionTypeEnum];
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the RequiredAction interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfRequiredAction(value: object): value is RequiredAction;
|
|
74
|
+
export declare function RequiredActionFromJSON(json: any): RequiredAction;
|
|
75
|
+
export declare function RequiredActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequiredAction;
|
|
76
|
+
export declare function RequiredActionToJSON(json: any): RequiredAction;
|
|
77
|
+
export declare function RequiredActionToJSONTyped(value?: RequiredAction | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const RequiredActionTypeEnum = {
|
|
18
|
+
FunctionCall: 'function_call'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the RequiredAction interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfRequiredAction(value) {
|
|
24
|
+
if (!('requestId' in value) || value['requestId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('toolCallId' in value) || value['toolCallId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('arguments' in value) || value['arguments'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function RequiredActionFromJSON(json) {
|
|
37
|
+
return RequiredActionFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function RequiredActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
45
|
+
'requestId': json['requestId'],
|
|
46
|
+
'toolCallId': json['toolCallId'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'arguments': json['arguments'],
|
|
49
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
50
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function RequiredActionToJSON(json) {
|
|
54
|
+
return RequiredActionToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
export function RequiredActionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'type': value['type'],
|
|
62
|
+
'requestId': value['requestId'],
|
|
63
|
+
'toolCallId': value['toolCallId'],
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'arguments': value['arguments'],
|
|
66
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
67
|
+
'expiresAt': value['expiresAt'] == null ? undefined : (value['expiresAt'].toISOString()),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -34,6 +34,46 @@ export interface ResponseDetail {
|
|
|
34
34
|
* @memberof ResponseDetail
|
|
35
35
|
*/
|
|
36
36
|
output: Array<UIMessage>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {{ [key: string]: any; }}
|
|
40
|
+
* @memberof ResponseDetail
|
|
41
|
+
*/
|
|
42
|
+
usage?: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
} | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {any}
|
|
48
|
+
* @memberof ResponseDetail
|
|
49
|
+
*/
|
|
50
|
+
structuredOutput?: any | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<string>}
|
|
54
|
+
* @memberof ResponseDetail
|
|
55
|
+
*/
|
|
56
|
+
outputErrors?: Array<string> | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
60
|
+
* @memberof ResponseDetail
|
|
61
|
+
*/
|
|
62
|
+
outputCitations?: Array<{
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
}> | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ResponseDetail
|
|
69
|
+
*/
|
|
70
|
+
outputNote?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ResponseDetail
|
|
75
|
+
*/
|
|
76
|
+
outputSkipped?: string | null;
|
|
37
77
|
}
|
|
38
78
|
/**
|
|
39
79
|
* @export
|
|
@@ -44,6 +44,12 @@ export function ResponseDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'responseId': json['responseId'],
|
|
45
45
|
'status': json['status'],
|
|
46
46
|
'output': (json['output'].map(UIMessageFromJSON)),
|
|
47
|
+
'usage': json['usage'] == null ? undefined : json['usage'],
|
|
48
|
+
'structuredOutput': json['structuredOutput'] == null ? undefined : json['structuredOutput'],
|
|
49
|
+
'outputErrors': json['outputErrors'] == null ? undefined : json['outputErrors'],
|
|
50
|
+
'outputCitations': json['outputCitations'] == null ? undefined : json['outputCitations'],
|
|
51
|
+
'outputNote': json['outputNote'] == null ? undefined : json['outputNote'],
|
|
52
|
+
'outputSkipped': json['outputSkipped'] == null ? undefined : json['outputSkipped'],
|
|
47
53
|
};
|
|
48
54
|
}
|
|
49
55
|
export function ResponseDetailToJSON(json) {
|
|
@@ -57,5 +63,11 @@ export function ResponseDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
63
|
'responseId': value['responseId'],
|
|
58
64
|
'status': value['status'],
|
|
59
65
|
'output': (value['output'].map(UIMessageToJSON)),
|
|
66
|
+
'usage': value['usage'],
|
|
67
|
+
'structuredOutput': value['structuredOutput'],
|
|
68
|
+
'outputErrors': value['outputErrors'],
|
|
69
|
+
'outputCitations': value['outputCitations'],
|
|
70
|
+
'outputNote': value['outputNote'],
|
|
71
|
+
'outputSkipped': value['outputSkipped'],
|
|
60
72
|
};
|
|
61
73
|
}
|
|
@@ -58,7 +58,30 @@ export interface ResponseInput {
|
|
|
58
58
|
* @memberof ResponseInput
|
|
59
59
|
*/
|
|
60
60
|
retryOf?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ResponseInput
|
|
65
|
+
*/
|
|
66
|
+
surface?: ResponseInputSurfaceEnum | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ResponseInput
|
|
71
|
+
*/
|
|
72
|
+
endUserId?: string | null;
|
|
61
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const ResponseInputSurfaceEnum: {
|
|
78
|
+
readonly Builder: "builder";
|
|
79
|
+
readonly Playground: "playground";
|
|
80
|
+
readonly Tests: "tests";
|
|
81
|
+
readonly Evals: "evals";
|
|
82
|
+
readonly Cowork: "cowork";
|
|
83
|
+
};
|
|
84
|
+
export type ResponseInputSurfaceEnum = typeof ResponseInputSurfaceEnum[keyof typeof ResponseInputSurfaceEnum];
|
|
62
85
|
/**
|
|
63
86
|
* Check if a given object implements the ResponseInput interface.
|
|
64
87
|
*/
|
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { InputMessageFromJSON, InputMessageToJSON, } from './InputMessage.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ResponseInputSurfaceEnum = {
|
|
19
|
+
Builder: 'builder',
|
|
20
|
+
Playground: 'playground',
|
|
21
|
+
Tests: 'tests',
|
|
22
|
+
Evals: 'evals',
|
|
23
|
+
Cowork: 'cowork'
|
|
24
|
+
};
|
|
15
25
|
/**
|
|
16
26
|
* Check if a given object implements the ResponseInput interface.
|
|
17
27
|
*/
|
|
@@ -37,6 +47,8 @@ export function ResponseInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
47
|
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
38
48
|
'regenerateAfter': json['regenerateAfter'] == null ? undefined : json['regenerateAfter'],
|
|
39
49
|
'retryOf': json['retryOf'] == null ? undefined : json['retryOf'],
|
|
50
|
+
'surface': json['surface'] == null ? undefined : json['surface'],
|
|
51
|
+
'endUserId': json['endUserId'] == null ? undefined : json['endUserId'],
|
|
40
52
|
};
|
|
41
53
|
}
|
|
42
54
|
export function ResponseInputToJSON(json) {
|
|
@@ -54,5 +66,7 @@ export function ResponseInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
66
|
'agentId': value['agentId'],
|
|
55
67
|
'regenerateAfter': value['regenerateAfter'],
|
|
56
68
|
'retryOf': value['retryOf'],
|
|
69
|
+
'surface': value['surface'],
|
|
70
|
+
'endUserId': value['endUserId'],
|
|
57
71
|
};
|
|
58
72
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ToolResults200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolResults200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ToolResults200Response
|
|
22
|
+
*/
|
|
23
|
+
accepted: boolean | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ToolResults200Response
|
|
28
|
+
*/
|
|
29
|
+
duplicate: boolean | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ToolResults200Response interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfToolResults200Response(value: object): value is ToolResults200Response;
|
|
35
|
+
export declare function ToolResults200ResponseFromJSON(json: any): ToolResults200Response;
|
|
36
|
+
export declare function ToolResults200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolResults200Response;
|
|
37
|
+
export declare function ToolResults200ResponseToJSON(json: any): ToolResults200Response;
|
|
38
|
+
export declare function ToolResults200ResponseToJSONTyped(value?: ToolResults200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ToolResults200Response interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfToolResults200Response(value) {
|
|
18
|
+
if (!('accepted' in value) || value['accepted'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('duplicate' in value) || value['duplicate'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ToolResults200ResponseFromJSON(json) {
|
|
25
|
+
return ToolResults200ResponseFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ToolResults200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'accepted': json['accepted'],
|
|
33
|
+
'duplicate': json['duplicate'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ToolResults200ResponseToJSON(json) {
|
|
37
|
+
return ToolResults200ResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ToolResults200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'accepted': value['accepted'],
|
|
45
|
+
'duplicate': value['duplicate'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { FunctionResultBody } from './FunctionResultBody.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ToolResultsBody
|
|
17
|
+
*/
|
|
18
|
+
export interface ToolResultsBody {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ToolResultsBody
|
|
23
|
+
*/
|
|
24
|
+
requestId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<FunctionResultBody>}
|
|
28
|
+
* @memberof ToolResultsBody
|
|
29
|
+
*/
|
|
30
|
+
results: Array<FunctionResultBody>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ToolResultsBody interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfToolResultsBody(value: object): value is ToolResultsBody;
|
|
36
|
+
export declare function ToolResultsBodyFromJSON(json: any): ToolResultsBody;
|
|
37
|
+
export declare function ToolResultsBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolResultsBody;
|
|
38
|
+
export declare function ToolResultsBodyToJSON(json: any): ToolResultsBody;
|
|
39
|
+
export declare function ToolResultsBodyToJSONTyped(value?: ToolResultsBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { FunctionResultBodyFromJSON, FunctionResultBodyToJSON, } from './FunctionResultBody.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ToolResultsBody interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfToolResultsBody(value) {
|
|
19
|
+
if (!('requestId' in value) || value['requestId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('results' in value) || value['results'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ToolResultsBodyFromJSON(json) {
|
|
26
|
+
return ToolResultsBodyFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ToolResultsBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'requestId': json['requestId'],
|
|
34
|
+
'results': (json['results'].map(FunctionResultBodyFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ToolResultsBodyToJSON(json) {
|
|
38
|
+
return ToolResultsBodyToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ToolResultsBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'requestId': value['requestId'],
|
|
46
|
+
'results': (value['results'].map(FunctionResultBodyToJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -99,6 +99,7 @@ export * from './FileQueuedResponse.js';
|
|
|
99
99
|
export * from './FileRawResponse.js';
|
|
100
100
|
export * from './FileRead.js';
|
|
101
101
|
export * from './FileWriteBody.js';
|
|
102
|
+
export * from './FunctionResultBody.js';
|
|
102
103
|
export * from './HTTPValidationError.js';
|
|
103
104
|
export * from './HighlightRange.js';
|
|
104
105
|
export * from './InlineCreateSkillBody.js';
|
|
@@ -106,6 +107,8 @@ export * from './InputMessage.js';
|
|
|
106
107
|
export * from './InstructionsBody.js';
|
|
107
108
|
export * from './InstructionsResponse.js';
|
|
108
109
|
export * from './ListModels403Response.js';
|
|
110
|
+
export * from './McpSecurityAppealView.js';
|
|
111
|
+
export * from './McpSecurityView.js';
|
|
109
112
|
export * from './MessagePart.js';
|
|
110
113
|
export * from './MessagesResponse.js';
|
|
111
114
|
export * from './MintUploadUrl403Response.js';
|
|
@@ -127,6 +130,7 @@ export * from './QueueMessageInput.js';
|
|
|
127
130
|
export * from './QueueMessageResult.js';
|
|
128
131
|
export * from './QueuedTurnView.js';
|
|
129
132
|
export * from './Reason.js';
|
|
133
|
+
export * from './RequiredAction.js';
|
|
130
134
|
export * from './Requiredscope.js';
|
|
131
135
|
export * from './Resourcetype.js';
|
|
132
136
|
export * from './ResponseCompleteFileUpload.js';
|
|
@@ -150,6 +154,8 @@ export * from './StopResponse.js';
|
|
|
150
154
|
export * from './TemplateConnectorTag.js';
|
|
151
155
|
export * from './TemplateWorksWith.js';
|
|
152
156
|
export * from './TextPart.js';
|
|
157
|
+
export * from './ToolResults200Response.js';
|
|
158
|
+
export * from './ToolResultsBody.js';
|
|
153
159
|
export * from './TriggerCronBody.js';
|
|
154
160
|
export * from './TriggerResponse.js';
|
|
155
161
|
export * from './UIMessage.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -101,6 +101,7 @@ export * from './FileQueuedResponse.js';
|
|
|
101
101
|
export * from './FileRawResponse.js';
|
|
102
102
|
export * from './FileRead.js';
|
|
103
103
|
export * from './FileWriteBody.js';
|
|
104
|
+
export * from './FunctionResultBody.js';
|
|
104
105
|
export * from './HTTPValidationError.js';
|
|
105
106
|
export * from './HighlightRange.js';
|
|
106
107
|
export * from './InlineCreateSkillBody.js';
|
|
@@ -108,6 +109,8 @@ export * from './InputMessage.js';
|
|
|
108
109
|
export * from './InstructionsBody.js';
|
|
109
110
|
export * from './InstructionsResponse.js';
|
|
110
111
|
export * from './ListModels403Response.js';
|
|
112
|
+
export * from './McpSecurityAppealView.js';
|
|
113
|
+
export * from './McpSecurityView.js';
|
|
111
114
|
export * from './MessagePart.js';
|
|
112
115
|
export * from './MessagesResponse.js';
|
|
113
116
|
export * from './MintUploadUrl403Response.js';
|
|
@@ -129,6 +132,7 @@ export * from './QueueMessageInput.js';
|
|
|
129
132
|
export * from './QueueMessageResult.js';
|
|
130
133
|
export * from './QueuedTurnView.js';
|
|
131
134
|
export * from './Reason.js';
|
|
135
|
+
export * from './RequiredAction.js';
|
|
132
136
|
export * from './Requiredscope.js';
|
|
133
137
|
export * from './Resourcetype.js';
|
|
134
138
|
export * from './ResponseCompleteFileUpload.js';
|
|
@@ -152,6 +156,8 @@ export * from './StopResponse.js';
|
|
|
152
156
|
export * from './TemplateConnectorTag.js';
|
|
153
157
|
export * from './TemplateWorksWith.js';
|
|
154
158
|
export * from './TextPart.js';
|
|
159
|
+
export * from './ToolResults200Response.js';
|
|
160
|
+
export * from './ToolResultsBody.js';
|
|
155
161
|
export * from './TriggerCronBody.js';
|
|
156
162
|
export * from './TriggerResponse.js';
|
|
157
163
|
export * from './UIMessage.js';
|
package/dist/esm/streaming.d.ts
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* const again = await reconnect(config, conversationId, stream.responseId!, stream.lastEventId);
|
|
15
15
|
*
|
|
16
16
|
* Each item is the event's JSON payload (`type` is `start`, `text-delta`, `data-file-shared`,
|
|
17
|
-
* `data-clarify-request`, `data-stopped`, `error`, `finish`, ...). The stream keeps `lastEventId` and `responseId`
|
|
17
|
+
* `data-clarify-request`, `data-function-call-request`, `data-stopped`, `error`, `finish`, ...). The stream keeps `lastEventId` and `responseId`
|
|
18
18
|
* up to date, the two values `reconnect` needs.
|
|
19
19
|
*/
|
|
20
|
-
import type { ClarifyBody, ResponseInput } from "./models/index.js";
|
|
20
|
+
import type { ClarifyBody, ResponseInput, ToolResultsBody } from "./models/index.js";
|
|
21
21
|
import type { Configuration } from "./runtime.js";
|
|
22
22
|
/** One event's JSON payload. */
|
|
23
23
|
export interface StreamEvent {
|
|
@@ -40,6 +40,9 @@ export declare function iterSse(chunks: AsyncIterable<Uint8Array>): AsyncGenerat
|
|
|
40
40
|
export declare class ResponseStream implements AsyncIterable<StreamEvent> {
|
|
41
41
|
responseId: string | null;
|
|
42
42
|
lastEventId: string | null;
|
|
43
|
+
/** `postToolResults` only: the server already had these results (a repeat with the same idempotency key), so
|
|
44
|
+
* this stream is empty; follow the turn with `reconnect`. */
|
|
45
|
+
duplicate: boolean;
|
|
43
46
|
private readonly body;
|
|
44
47
|
private readonly controller;
|
|
45
48
|
private readonly idleTimeoutMs;
|
|
@@ -66,3 +69,12 @@ export declare function reconnect(config: Configuration, conversationId: string,
|
|
|
66
69
|
* `body.requestId` comes from that event; put your answers in `body.answers`.
|
|
67
70
|
*/
|
|
68
71
|
export declare function answerClarify(config: Configuration, conversationId: string, body: ClarifyBody, options?: StreamOptions): Promise<ResponseStream>;
|
|
72
|
+
/**
|
|
73
|
+
* Answer the agent's function calls (a `data-function-call-request` event) and stream the rest of the reply.
|
|
74
|
+
* `body.requestId` comes from that event, with one result per call. Send the same `idempotencyKey` when you retry a
|
|
75
|
+
* post: a repeat the server already has resolves to an empty stream with `duplicate` set, and the turn can be followed
|
|
76
|
+
* with `reconnect`.
|
|
77
|
+
*/
|
|
78
|
+
export declare function postToolResults(config: Configuration, conversationId: string, body: ToolResultsBody, options?: StreamOptions & {
|
|
79
|
+
idempotencyKey?: string;
|
|
80
|
+
}): Promise<ResponseStream>;
|
package/dist/esm/streaming.js
CHANGED
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
* const again = await reconnect(config, conversationId, stream.responseId!, stream.lastEventId);
|
|
15
15
|
*
|
|
16
16
|
* Each item is the event's JSON payload (`type` is `start`, `text-delta`, `data-file-shared`,
|
|
17
|
-
* `data-clarify-request`, `data-stopped`, `error`, `finish`, ...). The stream keeps `lastEventId` and `responseId`
|
|
17
|
+
* `data-clarify-request`, `data-function-call-request`, `data-stopped`, `error`, `finish`, ...). The stream keeps `lastEventId` and `responseId`
|
|
18
18
|
* up to date, the two values `reconnect` needs.
|
|
19
19
|
*/
|
|
20
20
|
import { ClarifyApi } from "./apis/ClarifyApi.js";
|
|
21
|
+
import { FunctionToolsApi } from "./apis/FunctionToolsApi.js";
|
|
21
22
|
import { ResponsesApi } from "./apis/ResponsesApi.js";
|
|
22
23
|
export const DEFAULT_IDLE_TIMEOUT_MS = 60000;
|
|
23
24
|
/** Parse a server-sent-events body into [last event id, payload] pairs. */
|
|
@@ -77,6 +78,9 @@ export async function* iterSse(chunks) {
|
|
|
77
78
|
/** Async iterator over a reply's events. Call `close()` if you stop early. */
|
|
78
79
|
export class ResponseStream {
|
|
79
80
|
constructor(body, controller, idleTimeoutMs, responseId = null, lastEventId = null) {
|
|
81
|
+
/** `postToolResults` only: the server already had these results (a repeat with the same idempotency key), so
|
|
82
|
+
* this stream is empty; follow the turn with `reconnect`. */
|
|
83
|
+
this.duplicate = false;
|
|
80
84
|
this.body = body;
|
|
81
85
|
this.controller = controller;
|
|
82
86
|
this.idleTimeoutMs = idleTimeoutMs;
|
|
@@ -138,15 +142,24 @@ export class ResponseStream {
|
|
|
138
142
|
this.controller.abort();
|
|
139
143
|
}
|
|
140
144
|
}
|
|
141
|
-
async function open(call, options, responseId = null, lastEventId = null) {
|
|
142
|
-
var _a, _b;
|
|
145
|
+
async function open(call, options, responseId = null, lastEventId = null, jsonIsDuplicate = false) {
|
|
146
|
+
var _a, _b, _c, _d, _e;
|
|
143
147
|
const controller = new AbortController();
|
|
144
148
|
(_a = options.signal) === null || _a === void 0 ? void 0 : _a.addEventListener("abort", () => controller.abort(options.signal.reason), { once: true });
|
|
145
149
|
// Non-2xx responses throw ResponseError here, like every other generated method.
|
|
146
150
|
const response = await call({ signal: controller.signal });
|
|
151
|
+
const contentType = ((_b = response.raw.headers.get("content-type")) !== null && _b !== void 0 ? _b : "").split(";")[0].trim().toLowerCase();
|
|
152
|
+
if (jsonIsDuplicate && contentType === "application/json") {
|
|
153
|
+
await ((_c = response.raw.body) === null || _c === void 0 ? void 0 : _c.cancel().catch(() => undefined));
|
|
154
|
+
const empty = new ReadableStream({ start: (c) => c.close() });
|
|
155
|
+
const stream = new ResponseStream(empty, controller, (_d = options.idleTimeoutMs) !== null && _d !== void 0 ? _d : DEFAULT_IDLE_TIMEOUT_MS);
|
|
156
|
+
stream.duplicate = true;
|
|
157
|
+
stream.close();
|
|
158
|
+
return stream;
|
|
159
|
+
}
|
|
147
160
|
if (!response.raw.body)
|
|
148
161
|
throw new Error("response has no body to stream");
|
|
149
|
-
return new ResponseStream(response.raw.body, controller, (
|
|
162
|
+
return new ResponseStream(response.raw.body, controller, (_e = options.idleTimeoutMs) !== null && _e !== void 0 ? _e : DEFAULT_IDLE_TIMEOUT_MS, responseId, lastEventId);
|
|
150
163
|
}
|
|
151
164
|
/** Send a message (POST /v1/responses) and stream the reply. Same body as `ResponsesApi.createResponse`. */
|
|
152
165
|
export function streamResponse(config, body, options = {}) {
|
|
@@ -169,3 +182,12 @@ export function reconnect(config, conversationId, responseId, lastEventId = null
|
|
|
169
182
|
export function answerClarify(config, conversationId, body, options = {}) {
|
|
170
183
|
return open((init) => new ClarifyApi(config).clarifyRaw({ conversationId, clarifyBody: body }, init), options);
|
|
171
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Answer the agent's function calls (a `data-function-call-request` event) and stream the rest of the reply.
|
|
187
|
+
* `body.requestId` comes from that event, with one result per call. Send the same `idempotencyKey` when you retry a
|
|
188
|
+
* post: a repeat the server already has resolves to an empty stream with `duplicate` set, and the turn can be followed
|
|
189
|
+
* with `reconnect`.
|
|
190
|
+
*/
|
|
191
|
+
export function postToolResults(config, conversationId, body, options = {}) {
|
|
192
|
+
return open((init) => new FunctionToolsApi(config).toolResultsRaw({ conversationId, toolResultsBody: body, idempotencyKey: options.idempotencyKey }, init), options, null, null, true);
|
|
193
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { UIMessage } from './UIMessage.js';
|
|
13
13
|
import type { FieldHighlight } from './FieldHighlight.js';
|
|
14
|
+
import type { RequiredAction } from './RequiredAction.js';
|
|
14
15
|
import type { QueuedTurnView } from './QueuedTurnView.js';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -134,6 +135,12 @@ export interface AgentConversationDetail {
|
|
|
134
135
|
* @memberof AgentConversationDetail
|
|
135
136
|
*/
|
|
136
137
|
queuedTurns?: Array<QueuedTurnView>;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {Array<RequiredAction>}
|
|
141
|
+
* @memberof AgentConversationDetail
|
|
142
|
+
*/
|
|
143
|
+
requiredActions?: Array<RequiredAction>;
|
|
137
144
|
/**
|
|
138
145
|
*
|
|
139
146
|
* @type {boolean}
|