mavenagi 1.0.2 → 1.0.4
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 +13 -15
- package/api/resources/actions/client/Client.js +6 -6
- package/api/resources/actions/types/ActionParameter.d.ts +3 -0
- package/api/resources/appSettings/client/Client.js +2 -2
- package/api/resources/commons/types/ActionParameterType.d.ts +9 -0
- package/api/resources/commons/types/ActionParameterType.js +8 -0
- package/api/resources/commons/types/EntityType.d.ts +2 -2
- package/api/resources/commons/types/EntityType.js +1 -1
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/conversation/client/Client.d.ts +27 -35
- package/api/resources/conversation/client/Client.js +47 -55
- package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +1 -3
- package/api/resources/conversation/types/ActionFormField.d.ts +3 -1
- package/api/resources/conversation/types/Capability.d.ts +1 -13
- package/api/resources/conversation/types/ResponseConfig.d.ts +11 -1
- package/api/resources/knowledge/client/Client.js +14 -14
- package/api/resources/translations/client/Client.js +2 -2
- package/api/resources/triggers/client/Client.js +6 -6
- package/api/resources/users/client/Client.js +4 -4
- package/dist/api/resources/actions/client/Client.js +6 -6
- package/dist/api/resources/actions/types/ActionParameter.d.ts +3 -0
- package/dist/api/resources/appSettings/client/Client.js +2 -2
- package/dist/api/resources/commons/types/ActionParameterType.d.ts +9 -0
- package/dist/api/resources/commons/types/ActionParameterType.js +8 -0
- package/dist/api/resources/commons/types/EntityType.d.ts +2 -2
- package/dist/api/resources/commons/types/EntityType.js +1 -1
- package/dist/api/resources/commons/types/index.d.ts +1 -0
- package/dist/api/resources/commons/types/index.js +1 -0
- package/dist/api/resources/conversation/client/Client.d.ts +27 -35
- package/dist/api/resources/conversation/client/Client.js +47 -55
- package/dist/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +1 -3
- package/dist/api/resources/conversation/types/ActionFormField.d.ts +3 -1
- package/dist/api/resources/conversation/types/Capability.d.ts +1 -13
- package/dist/api/resources/conversation/types/ResponseConfig.d.ts +11 -1
- package/dist/api/resources/knowledge/client/Client.js +14 -14
- package/dist/api/resources/translations/client/Client.js +2 -2
- package/dist/api/resources/triggers/client/Client.js +6 -6
- package/dist/api/resources/users/client/Client.js +4 -4
- package/dist/serialization/resources/actions/types/ActionParameter.d.ts +2 -0
- package/dist/serialization/resources/actions/types/ActionParameter.js +2 -0
- package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/ActionParameterType.js +5 -0
- package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EntityType.js +1 -1
- package/dist/serialization/resources/commons/types/index.d.ts +1 -0
- package/dist/serialization/resources/commons/types/index.js +1 -0
- package/dist/serialization/resources/conversation/types/ActionFormField.d.ts +3 -1
- package/dist/serialization/resources/conversation/types/ActionFormField.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +30 -33
- package/serialization/resources/actions/types/ActionParameter.d.ts +2 -0
- package/serialization/resources/actions/types/ActionParameter.js +2 -0
- package/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
- package/serialization/resources/commons/types/ActionParameterType.js +5 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -1
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/conversation/types/ActionFormField.d.ts +3 -1
- package/serialization/resources/conversation/types/ActionFormField.js +3 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -51,8 +51,8 @@ export class Triggers {
|
|
|
51
51
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "mavenagi",
|
|
54
|
-
"X-Fern-SDK-Version": "1.0.
|
|
55
|
-
"User-Agent": "mavenagi/1.0.
|
|
54
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
55
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
56
56
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
57
57
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
58
58
|
},
|
|
@@ -141,8 +141,8 @@ export class Triggers {
|
|
|
141
141
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
142
142
|
"X-Fern-Language": "JavaScript",
|
|
143
143
|
"X-Fern-SDK-Name": "mavenagi",
|
|
144
|
-
"X-Fern-SDK-Version": "1.0.
|
|
145
|
-
"User-Agent": "mavenagi/1.0.
|
|
144
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
145
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
146
146
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
147
147
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
148
148
|
},
|
|
@@ -230,8 +230,8 @@ export class Triggers {
|
|
|
230
230
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
231
231
|
"X-Fern-Language": "JavaScript",
|
|
232
232
|
"X-Fern-SDK-Name": "mavenagi",
|
|
233
|
-
"X-Fern-SDK-Version": "1.0.
|
|
234
|
-
"User-Agent": "mavenagi/1.0.
|
|
233
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
234
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
235
235
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
236
236
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
237
237
|
},
|
|
@@ -59,8 +59,8 @@ export class Users {
|
|
|
59
59
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "mavenagi",
|
|
62
|
-
"X-Fern-SDK-Version": "1.0.
|
|
63
|
-
"User-Agent": "mavenagi/1.0.
|
|
62
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
63
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
64
64
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
65
65
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
66
66
|
},
|
|
@@ -149,8 +149,8 @@ export class Users {
|
|
|
149
149
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
150
150
|
"X-Fern-Language": "JavaScript",
|
|
151
151
|
"X-Fern-SDK-Name": "mavenagi",
|
|
152
|
-
"X-Fern-SDK-Version": "1.0.
|
|
153
|
-
"User-Agent": "mavenagi/1.0.
|
|
152
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
153
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
154
154
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
155
155
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
156
156
|
},
|
|
@@ -64,8 +64,8 @@ export class Actions {
|
|
|
64
64
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
65
65
|
"X-Fern-Language": "JavaScript",
|
|
66
66
|
"X-Fern-SDK-Name": "mavenagi",
|
|
67
|
-
"X-Fern-SDK-Version": "1.0.
|
|
68
|
-
"User-Agent": "mavenagi/1.0.
|
|
67
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
68
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
69
69
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
70
70
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
71
71
|
},
|
|
@@ -154,8 +154,8 @@ export class Actions {
|
|
|
154
154
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
155
155
|
"X-Fern-Language": "JavaScript",
|
|
156
156
|
"X-Fern-SDK-Name": "mavenagi",
|
|
157
|
-
"X-Fern-SDK-Version": "1.0.
|
|
158
|
-
"User-Agent": "mavenagi/1.0.
|
|
157
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
158
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
159
159
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
160
160
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
161
161
|
},
|
|
@@ -243,8 +243,8 @@ export class Actions {
|
|
|
243
243
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
244
244
|
"X-Fern-Language": "JavaScript",
|
|
245
245
|
"X-Fern-SDK-Name": "mavenagi",
|
|
246
|
-
"X-Fern-SDK-Version": "1.0.
|
|
247
|
-
"User-Agent": "mavenagi/1.0.
|
|
246
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
247
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
248
248
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
249
249
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
250
250
|
},
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
4
5
|
export interface ActionParameter {
|
|
5
6
|
id: string;
|
|
6
7
|
label: string;
|
|
7
8
|
description: string;
|
|
8
9
|
required: boolean;
|
|
10
|
+
/** The parameter type. Values provided to executeAction will conform to this type. Defaults to STRING. */
|
|
11
|
+
type?: MavenAGI.ActionParameterType;
|
|
9
12
|
}
|
|
@@ -44,8 +44,8 @@ export class AppSettings {
|
|
|
44
44
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
45
45
|
"X-Fern-Language": "JavaScript",
|
|
46
46
|
"X-Fern-SDK-Name": "mavenagi",
|
|
47
|
-
"X-Fern-SDK-Version": "1.0.
|
|
48
|
-
"User-Agent": "mavenagi/1.0.
|
|
47
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
48
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
49
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
51
|
},
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type ActionParameterType = "STRING" | "BOOLEAN" | "NUMBER";
|
|
5
|
+
export declare const ActionParameterType: {
|
|
6
|
+
readonly String: "STRING";
|
|
7
|
+
readonly Boolean: "BOOLEAN";
|
|
8
|
+
readonly Number: "NUMBER";
|
|
9
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "
|
|
4
|
+
export declare type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
|
|
5
5
|
export declare const EntityType: {
|
|
6
6
|
readonly Conversation: "CONVERSATION";
|
|
7
7
|
readonly ConversationMessage: "CONVERSATION_MESSAGE";
|
|
@@ -9,7 +9,7 @@ export declare const EntityType: {
|
|
|
9
9
|
readonly KnowledgeDocument: "KNOWLEDGE_DOCUMENT";
|
|
10
10
|
readonly Action: "ACTION";
|
|
11
11
|
readonly User: "USER";
|
|
12
|
-
readonly
|
|
12
|
+
readonly Event: "EVENT";
|
|
13
13
|
readonly EventTrigger: "EVENT_TRIGGER";
|
|
14
14
|
readonly UserProfile: "USER_PROFILE";
|
|
15
15
|
readonly Feedback: "FEEDBACK";
|
|
@@ -44,22 +44,17 @@ export declare class Conversation {
|
|
|
44
44
|
* @example
|
|
45
45
|
* await client.conversation.initialize({
|
|
46
46
|
* conversationId: {
|
|
47
|
-
* referenceId: "
|
|
47
|
+
* referenceId: "referenceId"
|
|
48
48
|
* },
|
|
49
|
-
* messages: [{
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* updatedAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
59
|
-
* tags: new Set(["string"]),
|
|
60
|
-
* metadata: {
|
|
61
|
-
* "string": "string"
|
|
62
|
-
* }
|
|
49
|
+
* messages: [{
|
|
50
|
+
* conversationMessageId: {
|
|
51
|
+
* referenceId: "referenceId"
|
|
52
|
+
* }
|
|
53
|
+
* }, {
|
|
54
|
+
* conversationMessageId: {
|
|
55
|
+
* referenceId: "referenceId"
|
|
56
|
+
* }
|
|
57
|
+
* }]
|
|
63
58
|
* })
|
|
64
59
|
*/
|
|
65
60
|
initialize(request: MavenAGI.ConversationRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
@@ -75,9 +70,7 @@ export declare class Conversation {
|
|
|
75
70
|
* @throws {@link MavenAGI.ServerError}
|
|
76
71
|
*
|
|
77
72
|
* @example
|
|
78
|
-
* await client.conversation.get("
|
|
79
|
-
* appId: "string"
|
|
80
|
-
* })
|
|
73
|
+
* await client.conversation.get("conversationId")
|
|
81
74
|
*/
|
|
82
75
|
get(conversationId: string, request?: MavenAGI.ConversationGetRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
83
76
|
/**
|
|
@@ -92,17 +85,14 @@ export declare class Conversation {
|
|
|
92
85
|
* @throws {@link MavenAGI.ServerError}
|
|
93
86
|
*
|
|
94
87
|
* @example
|
|
95
|
-
* await client.conversation.appendNewMessages("
|
|
88
|
+
* await client.conversation.appendNewMessages("conversationId", [{
|
|
96
89
|
* conversationMessageId: {
|
|
97
|
-
* referenceId: "
|
|
98
|
-
* }
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* userMessageType: "USER",
|
|
104
|
-
* createdAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
105
|
-
* updatedAt: new Date("2024-01-15T09:30:00.000Z")
|
|
90
|
+
* referenceId: "referenceId"
|
|
91
|
+
* }
|
|
92
|
+
* }, {
|
|
93
|
+
* conversationMessageId: {
|
|
94
|
+
* referenceId: "referenceId"
|
|
95
|
+
* }
|
|
106
96
|
* }])
|
|
107
97
|
*/
|
|
108
98
|
appendNewMessages(conversationId: string, request: MavenAGI.ConversationMessageRequest[], requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
@@ -149,9 +139,11 @@ export declare class Conversation {
|
|
|
149
139
|
* @throws {@link MavenAGI.ServerError}
|
|
150
140
|
*
|
|
151
141
|
* @example
|
|
152
|
-
* await client.conversation.generateMavenSuggestions("
|
|
142
|
+
* await client.conversation.generateMavenSuggestions("conversationId", {
|
|
153
143
|
* conversationMessageIds: [{
|
|
154
|
-
* referenceId: "
|
|
144
|
+
* referenceId: "referenceId"
|
|
145
|
+
* }, {
|
|
146
|
+
* referenceId: "referenceId"
|
|
155
147
|
* }]
|
|
156
148
|
* })
|
|
157
149
|
*/
|
|
@@ -167,7 +159,7 @@ export declare class Conversation {
|
|
|
167
159
|
* @throws {@link MavenAGI.ServerError}
|
|
168
160
|
*
|
|
169
161
|
* @example
|
|
170
|
-
* await client.conversation.categorize("
|
|
162
|
+
* await client.conversation.categorize("conversationId")
|
|
171
163
|
*/
|
|
172
164
|
categorize(conversationId: string, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.CategorizationResponse>;
|
|
173
165
|
/**
|
|
@@ -211,10 +203,10 @@ export declare class Conversation {
|
|
|
211
203
|
* @throws {@link MavenAGI.ServerError}
|
|
212
204
|
*
|
|
213
205
|
* @example
|
|
214
|
-
* await client.conversation.submitActionForm("
|
|
215
|
-
* actionFormId: "
|
|
206
|
+
* await client.conversation.submitActionForm("conversationId", {
|
|
207
|
+
* actionFormId: "actionFormId",
|
|
216
208
|
* parameters: {
|
|
217
|
-
* "
|
|
209
|
+
* "parameters": {
|
|
218
210
|
* "key": "value"
|
|
219
211
|
* }
|
|
220
212
|
* }
|
|
@@ -233,7 +225,7 @@ export declare class Conversation {
|
|
|
233
225
|
* @throws {@link MavenAGI.ServerError}
|
|
234
226
|
*
|
|
235
227
|
* @example
|
|
236
|
-
* await client.conversation.addConversationMetadata("
|
|
228
|
+
* await client.conversation.addConversationMetadata("conversationId", {
|
|
237
229
|
* "string": "string"
|
|
238
230
|
* })
|
|
239
231
|
*/
|
|
@@ -33,22 +33,17 @@ export class Conversation {
|
|
|
33
33
|
* @example
|
|
34
34
|
* await client.conversation.initialize({
|
|
35
35
|
* conversationId: {
|
|
36
|
-
* referenceId: "
|
|
36
|
+
* referenceId: "referenceId"
|
|
37
37
|
* },
|
|
38
|
-
* messages: [{
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* updatedAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
48
|
-
* tags: new Set(["string"]),
|
|
49
|
-
* metadata: {
|
|
50
|
-
* "string": "string"
|
|
51
|
-
* }
|
|
38
|
+
* messages: [{
|
|
39
|
+
* conversationMessageId: {
|
|
40
|
+
* referenceId: "referenceId"
|
|
41
|
+
* }
|
|
42
|
+
* }, {
|
|
43
|
+
* conversationMessageId: {
|
|
44
|
+
* referenceId: "referenceId"
|
|
45
|
+
* }
|
|
46
|
+
* }]
|
|
52
47
|
* })
|
|
53
48
|
*/
|
|
54
49
|
initialize(request, requestOptions) {
|
|
@@ -63,8 +58,8 @@ export class Conversation {
|
|
|
63
58
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
64
59
|
"X-Fern-Language": "JavaScript",
|
|
65
60
|
"X-Fern-SDK-Name": "mavenagi",
|
|
66
|
-
"X-Fern-SDK-Version": "1.0.
|
|
67
|
-
"User-Agent": "mavenagi/1.0.
|
|
61
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
62
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
68
63
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
69
64
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
70
65
|
},
|
|
@@ -140,9 +135,7 @@ export class Conversation {
|
|
|
140
135
|
* @throws {@link MavenAGI.ServerError}
|
|
141
136
|
*
|
|
142
137
|
* @example
|
|
143
|
-
* await client.conversation.get("
|
|
144
|
-
* appId: "string"
|
|
145
|
-
* })
|
|
138
|
+
* await client.conversation.get("conversationId")
|
|
146
139
|
*/
|
|
147
140
|
get(conversationId, request = {}, requestOptions) {
|
|
148
141
|
var _a, _b;
|
|
@@ -161,8 +154,8 @@ export class Conversation {
|
|
|
161
154
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
162
155
|
"X-Fern-Language": "JavaScript",
|
|
163
156
|
"X-Fern-SDK-Name": "mavenagi",
|
|
164
|
-
"X-Fern-SDK-Version": "1.0.
|
|
165
|
-
"User-Agent": "mavenagi/1.0.
|
|
157
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
158
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
166
159
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
167
160
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
168
161
|
},
|
|
@@ -238,17 +231,14 @@ export class Conversation {
|
|
|
238
231
|
* @throws {@link MavenAGI.ServerError}
|
|
239
232
|
*
|
|
240
233
|
* @example
|
|
241
|
-
* await client.conversation.appendNewMessages("
|
|
234
|
+
* await client.conversation.appendNewMessages("conversationId", [{
|
|
242
235
|
* conversationMessageId: {
|
|
243
|
-
* referenceId: "
|
|
244
|
-
* }
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* userMessageType: "USER",
|
|
250
|
-
* createdAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
251
|
-
* updatedAt: new Date("2024-01-15T09:30:00.000Z")
|
|
236
|
+
* referenceId: "referenceId"
|
|
237
|
+
* }
|
|
238
|
+
* }, {
|
|
239
|
+
* conversationMessageId: {
|
|
240
|
+
* referenceId: "referenceId"
|
|
241
|
+
* }
|
|
252
242
|
* }])
|
|
253
243
|
*/
|
|
254
244
|
appendNewMessages(conversationId, request, requestOptions) {
|
|
@@ -263,8 +253,8 @@ export class Conversation {
|
|
|
263
253
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
264
254
|
"X-Fern-Language": "JavaScript",
|
|
265
255
|
"X-Fern-SDK-Name": "mavenagi",
|
|
266
|
-
"X-Fern-SDK-Version": "1.0.
|
|
267
|
-
"User-Agent": "mavenagi/1.0.
|
|
256
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
257
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
268
258
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
269
259
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
270
260
|
},
|
|
@@ -368,8 +358,8 @@ export class Conversation {
|
|
|
368
358
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
369
359
|
"X-Fern-Language": "JavaScript",
|
|
370
360
|
"X-Fern-SDK-Name": "mavenagi",
|
|
371
|
-
"X-Fern-SDK-Version": "1.0.
|
|
372
|
-
"User-Agent": "mavenagi/1.0.
|
|
361
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
362
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
373
363
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
374
364
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
375
365
|
},
|
|
@@ -448,8 +438,8 @@ export class Conversation {
|
|
|
448
438
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
449
439
|
"X-Fern-Language": "JavaScript",
|
|
450
440
|
"X-Fern-SDK-Name": "mavenagi",
|
|
451
|
-
"X-Fern-SDK-Version": "1.0.
|
|
452
|
-
"User-Agent": "mavenagi/1.0.
|
|
441
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
442
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
453
443
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
454
444
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
455
445
|
},
|
|
@@ -536,9 +526,11 @@ export class Conversation {
|
|
|
536
526
|
* @throws {@link MavenAGI.ServerError}
|
|
537
527
|
*
|
|
538
528
|
* @example
|
|
539
|
-
* await client.conversation.generateMavenSuggestions("
|
|
529
|
+
* await client.conversation.generateMavenSuggestions("conversationId", {
|
|
540
530
|
* conversationMessageIds: [{
|
|
541
|
-
* referenceId: "
|
|
531
|
+
* referenceId: "referenceId"
|
|
532
|
+
* }, {
|
|
533
|
+
* referenceId: "referenceId"
|
|
542
534
|
* }]
|
|
543
535
|
* })
|
|
544
536
|
*/
|
|
@@ -554,8 +546,8 @@ export class Conversation {
|
|
|
554
546
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
555
547
|
"X-Fern-Language": "JavaScript",
|
|
556
548
|
"X-Fern-SDK-Name": "mavenagi",
|
|
557
|
-
"X-Fern-SDK-Version": "1.0.
|
|
558
|
-
"User-Agent": "mavenagi/1.0.
|
|
549
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
550
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
559
551
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
560
552
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
561
553
|
},
|
|
@@ -630,7 +622,7 @@ export class Conversation {
|
|
|
630
622
|
* @throws {@link MavenAGI.ServerError}
|
|
631
623
|
*
|
|
632
624
|
* @example
|
|
633
|
-
* await client.conversation.categorize("
|
|
625
|
+
* await client.conversation.categorize("conversationId")
|
|
634
626
|
*/
|
|
635
627
|
categorize(conversationId, requestOptions) {
|
|
636
628
|
var _a, _b;
|
|
@@ -644,8 +636,8 @@ export class Conversation {
|
|
|
644
636
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
645
637
|
"X-Fern-Language": "JavaScript",
|
|
646
638
|
"X-Fern-SDK-Name": "mavenagi",
|
|
647
|
-
"X-Fern-SDK-Version": "1.0.
|
|
648
|
-
"User-Agent": "mavenagi/1.0.
|
|
639
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
640
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
649
641
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
650
642
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
651
643
|
},
|
|
@@ -748,8 +740,8 @@ export class Conversation {
|
|
|
748
740
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
749
741
|
"X-Fern-Language": "JavaScript",
|
|
750
742
|
"X-Fern-SDK-Name": "mavenagi",
|
|
751
|
-
"X-Fern-SDK-Version": "1.0.
|
|
752
|
-
"User-Agent": "mavenagi/1.0.
|
|
743
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
744
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
753
745
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
754
746
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
755
747
|
},
|
|
@@ -825,10 +817,10 @@ export class Conversation {
|
|
|
825
817
|
* @throws {@link MavenAGI.ServerError}
|
|
826
818
|
*
|
|
827
819
|
* @example
|
|
828
|
-
* await client.conversation.submitActionForm("
|
|
829
|
-
* actionFormId: "
|
|
820
|
+
* await client.conversation.submitActionForm("conversationId", {
|
|
821
|
+
* actionFormId: "actionFormId",
|
|
830
822
|
* parameters: {
|
|
831
|
-
* "
|
|
823
|
+
* "parameters": {
|
|
832
824
|
* "key": "value"
|
|
833
825
|
* }
|
|
834
826
|
* }
|
|
@@ -846,8 +838,8 @@ export class Conversation {
|
|
|
846
838
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
847
839
|
"X-Fern-Language": "JavaScript",
|
|
848
840
|
"X-Fern-SDK-Name": "mavenagi",
|
|
849
|
-
"X-Fern-SDK-Version": "1.0.
|
|
850
|
-
"User-Agent": "mavenagi/1.0.
|
|
841
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
842
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
851
843
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
852
844
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
853
845
|
},
|
|
@@ -923,7 +915,7 @@ export class Conversation {
|
|
|
923
915
|
* @throws {@link MavenAGI.ServerError}
|
|
924
916
|
*
|
|
925
917
|
* @example
|
|
926
|
-
* await client.conversation.addConversationMetadata("
|
|
918
|
+
* await client.conversation.addConversationMetadata("conversationId", {
|
|
927
919
|
* "string": "string"
|
|
928
920
|
* })
|
|
929
921
|
*/
|
|
@@ -939,8 +931,8 @@ export class Conversation {
|
|
|
939
931
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
940
932
|
"X-Fern-Language": "JavaScript",
|
|
941
933
|
"X-Fern-SDK-Name": "mavenagi",
|
|
942
|
-
"X-Fern-SDK-Version": "1.0.
|
|
943
|
-
"User-Agent": "mavenagi/1.0.
|
|
934
|
+
"X-Fern-SDK-Version": "1.0.4",
|
|
935
|
+
"User-Agent": "mavenagi/1.0.4",
|
|
944
936
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
945
937
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
946
938
|
},
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
4
5
|
export interface ActionFormField {
|
|
5
6
|
id: string;
|
|
6
7
|
label: string;
|
|
7
8
|
description: string;
|
|
8
9
|
required: boolean;
|
|
9
|
-
suggestion?:
|
|
10
|
+
suggestion?: unknown;
|
|
11
|
+
type: MavenAGI.ActionParameterType;
|
|
10
12
|
}
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type Capability =
|
|
5
|
-
/**
|
|
6
|
-
* Whether the response should include markdown formatting. If not provided, the response will be plain text. Not respected while streaming. */
|
|
7
|
-
"MARKDOWN"
|
|
8
|
-
/**
|
|
9
|
-
* Whether the response should include forms. Not yet supported. */
|
|
10
|
-
| "FORMS"
|
|
11
|
-
/**
|
|
12
|
-
* Whether the response should include images. Not yet supported. */
|
|
13
|
-
| "IMAGES"
|
|
14
|
-
/**
|
|
15
|
-
* Whether the response should include a Highcharts typescript chart if applicable. */
|
|
16
|
-
| "CHARTS_HIGHCHARTS_TS";
|
|
4
|
+
export declare type Capability = "MARKDOWN" | "FORMS" | "IMAGES" | "CHARTS_HIGHCHARTS_TS";
|
|
17
5
|
export declare const Capability: {
|
|
18
6
|
readonly Markdown: "MARKDOWN";
|
|
19
7
|
readonly Forms: "FORMS";
|
|
@@ -3,7 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as MavenAGI from "../../../index";
|
|
5
5
|
export interface ResponseConfig {
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* List of capabilities supported by the caller. Defaults to [MARKDOWN, FORMS, IMAGES].
|
|
8
|
+
*
|
|
9
|
+
* MARKDOWN: Whether the response should include markdown formatting. If not provided, the response will be plain text. Not respected while streaming.
|
|
10
|
+
*
|
|
11
|
+
* FORMS: Whether the response should include forms. If provided, the caller needs to render action forms when returned from the ask API and allow submission of the forms with the submitActionForm API. If not provided, then actions which require user interaction will not be considered by the LLM. Removing this capability is recommended for surfaces which can not display UI (e.g. SMS, voice).
|
|
12
|
+
*
|
|
13
|
+
* IMAGES: Whether the response should include images. Not yet supported.
|
|
14
|
+
*
|
|
15
|
+
* CHARTS_HIGHCHARTS_TS: Whether the response should include a Highcharts typescript chart if applicable.
|
|
16
|
+
*/
|
|
7
17
|
capabilities: MavenAGI.Capability[];
|
|
8
18
|
/** Whether the response is for an human agent (true) or an end user (false). Defaults to false. */
|
|
9
19
|
isCopilot: boolean;
|