mavenagi 1.2.70 → 1.2.71
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/BaseClient.js +2 -2
- package/api/resources/commons/types/AbsoluteTimeWindow.d.ts +5 -2
- package/api/resources/commons/types/ActionEffects.d.ts +18 -0
- package/api/resources/commons/types/ActionEffects.js +3 -0
- package/api/resources/commons/types/AllUsersConversationAudience.d.ts +1 -0
- package/api/resources/commons/types/AllUsersConversationAudience.js +3 -0
- package/api/resources/commons/types/ChangeAuthor.d.ts +18 -0
- package/api/resources/commons/types/ChangeAuthor.js +3 -0
- package/api/resources/commons/types/ConversationAudience.d.ts +19 -0
- package/api/resources/commons/types/ConversationAudience.js +3 -0
- package/api/resources/commons/types/ConversationAudienceResponse.d.ts +16 -0
- package/api/resources/commons/types/ConversationAudienceResponse.js +3 -0
- package/api/resources/commons/types/ConversationResponse.d.ts +8 -0
- package/api/resources/commons/types/ConversationSetupFields.d.ts +21 -0
- package/api/resources/commons/types/ConversationSetupFields.js +3 -0
- package/api/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +7 -0
- package/api/resources/commons/types/CrossOrganizationLevelEntityId.js +3 -0
- package/api/resources/commons/types/InitializeConversationResponse.d.ts +3 -0
- package/api/resources/commons/types/LeveledEntityId.d.ts +28 -0
- package/api/resources/commons/types/LeveledEntityId.js +3 -0
- package/api/resources/commons/types/OrganizationLevelEntityId.d.ts +9 -0
- package/api/resources/commons/types/OrganizationLevelEntityId.js +3 -0
- package/api/resources/commons/types/SimulationActionBehavior.d.ts +1 -1
- package/api/resources/commons/types/SimulationContext.d.ts +1 -24
- package/api/resources/commons/types/SimulationFixedResponse.d.ts +14 -0
- package/api/resources/commons/types/SimulationFixedResponse.js +3 -0
- package/api/resources/commons/types/SimulationSetupFields.d.ts +29 -0
- package/api/resources/commons/types/SimulationSetupFields.js +3 -0
- package/api/resources/commons/types/TimePrecondition.d.ts +1 -0
- package/api/resources/commons/types/UserDataEffect.d.ts +10 -0
- package/api/resources/commons/types/UserDataEffect.js +3 -0
- package/api/resources/commons/types/UserDataPatch.d.ts +10 -0
- package/api/resources/commons/types/UserDataPatch.js +3 -0
- package/api/resources/commons/types/UsersConversationAudience.d.ts +8 -0
- package/api/resources/commons/types/UsersConversationAudience.js +3 -0
- package/api/resources/commons/types/UsersConversationAudienceResponse.d.ts +9 -0
- package/api/resources/commons/types/UsersConversationAudienceResponse.js +3 -0
- package/api/resources/commons/types/index.d.ts +15 -0
- package/api/resources/commons/types/index.js +15 -0
- package/api/resources/conversation/client/Client.d.ts +34 -1
- package/api/resources/conversation/client/Client.js +34 -1
- package/api/resources/conversation/types/AskRequest.d.ts +4 -1
- package/api/resources/conversation/types/ConversationRequest.d.ts +26 -16
- package/api/resources/conversation/types/DeliverMessageResponse.d.ts +5 -0
- package/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +20 -0
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
- package/package.json +1 -1
- package/reference.md +12 -1
- package/serialization/resources/commons/types/AbsoluteTimeWindow.d.ts +1 -0
- package/serialization/resources/commons/types/AbsoluteTimeWindow.js +1 -0
- package/serialization/resources/commons/types/ActionEffects.d.ts +11 -0
- package/serialization/resources/commons/types/ActionEffects.js +45 -0
- package/serialization/resources/commons/types/AllUsersConversationAudience.d.ts +7 -0
- package/serialization/resources/commons/types/AllUsersConversationAudience.js +39 -0
- package/serialization/resources/commons/types/ChangeAuthor.d.ts +12 -0
- package/serialization/resources/commons/types/ChangeAuthor.js +44 -0
- package/serialization/resources/commons/types/ConversationAudience.d.ts +15 -0
- package/serialization/resources/commons/types/ConversationAudience.js +49 -0
- package/serialization/resources/commons/types/ConversationAudienceResponse.d.ts +15 -0
- package/serialization/resources/commons/types/ConversationAudienceResponse.js +49 -0
- package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -0
- package/serialization/resources/commons/types/ConversationResponse.js +2 -0
- package/serialization/resources/commons/types/ConversationSetupFields.d.ts +12 -0
- package/serialization/resources/commons/types/ConversationSetupFields.js +44 -0
- package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +9 -0
- package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.js +40 -0
- package/serialization/resources/commons/types/LeveledEntityId.d.ts +19 -0
- package/serialization/resources/commons/types/LeveledEntityId.js +51 -0
- package/serialization/resources/commons/types/OrganizationLevelEntityId.d.ts +10 -0
- package/serialization/resources/commons/types/OrganizationLevelEntityId.js +44 -0
- package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +2 -2
- package/serialization/resources/commons/types/SimulationActionBehavior.js +2 -2
- package/serialization/resources/commons/types/SimulationContext.d.ts +2 -6
- package/serialization/resources/commons/types/SimulationContext.js +5 -7
- package/serialization/resources/commons/types/SimulationFixedResponse.d.ts +11 -0
- package/serialization/resources/commons/types/SimulationFixedResponse.js +45 -0
- package/serialization/resources/commons/types/SimulationSetupFields.d.ts +13 -0
- package/serialization/resources/commons/types/SimulationSetupFields.js +45 -0
- package/serialization/resources/commons/types/UserDataEffect.d.ts +11 -0
- package/serialization/resources/commons/types/UserDataEffect.js +43 -0
- package/serialization/resources/commons/types/UserDataPatch.d.ts +11 -0
- package/serialization/resources/commons/types/UserDataPatch.js +43 -0
- package/serialization/resources/commons/types/UsersConversationAudience.d.ts +10 -0
- package/serialization/resources/commons/types/UsersConversationAudience.js +42 -0
- package/serialization/resources/commons/types/UsersConversationAudienceResponse.d.ts +10 -0
- package/serialization/resources/commons/types/UsersConversationAudienceResponse.js +42 -0
- package/serialization/resources/commons/types/index.d.ts +15 -0
- package/serialization/resources/commons/types/index.js +15 -0
- package/serialization/resources/conversation/types/ConversationRequest.d.ts +4 -5
- package/serialization/resources/conversation/types/ConversationRequest.js +7 -6
- package/serialization/resources/conversation/types/DeliverMessageResponse.d.ts +2 -0
- package/serialization/resources/conversation/types/DeliverMessageResponse.js +2 -0
- package/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +1 -0
- package/serialization/resources/conversation/types/DeliverUserMessageRequest.js +1 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +3 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/BaseClient.js
CHANGED
|
@@ -46,8 +46,8 @@ function normalizeClientOptions(options) {
|
|
|
46
46
|
const headers = (0, headers_1.mergeHeaders)({
|
|
47
47
|
"X-Fern-Language": "JavaScript",
|
|
48
48
|
"X-Fern-SDK-Name": "mavenagi",
|
|
49
|
-
"X-Fern-SDK-Version": "1.2.
|
|
50
|
-
"User-Agent": "mavenagi/1.2.
|
|
49
|
+
"X-Fern-SDK-Version": "1.2.71",
|
|
50
|
+
"User-Agent": "mavenagi/1.2.71",
|
|
51
51
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
52
52
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
53
53
|
"X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
* before `end` when both are set.
|
|
5
5
|
*
|
|
6
6
|
* Both ends are instants with an offset, so a client converts a local date to an instant
|
|
7
|
-
* before sending it;
|
|
8
|
-
*
|
|
7
|
+
* before sending it; matching compares instants and applies no timezone. The server keeps
|
|
8
|
+
* each end's instant but not the offset it was sent with, so each end reads back at
|
|
9
|
+
* `timezone`'s offset on that date, or in UTC without one.
|
|
9
10
|
*/
|
|
10
11
|
export interface AbsoluteTimeWindow {
|
|
12
|
+
/** The IANA timezone the window was written in (e.g. "America/New_York"), kept so an editor can show the ends in it again. It does not change which instants match. Fixed offsets (e.g. "-08:00") and legacy IDs (e.g. "EST") are accepted, but the ends then read back at a fixed offset that ignores daylight saving. Clients can prefill it from the agent's `defaultTimezone`. */
|
|
13
|
+
timezone?: string;
|
|
11
14
|
/** The first instant inside the window. Omit to leave the window open at the start. */
|
|
12
15
|
start?: Date;
|
|
13
16
|
/** The first instant after the window. Omit to leave the window open at the end. */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* State an action changes: metadata on its conversation, and data on the user whose message
|
|
4
|
+
* triggered it. Must set at least one of `conversationMetadata` or `userData`, and an empty
|
|
5
|
+
* map counts as unset.
|
|
6
|
+
*/
|
|
7
|
+
export interface ActionEffects {
|
|
8
|
+
/**
|
|
9
|
+
* Merged into the conversation's metadata. Keys and values are at most 500 characters
|
|
10
|
+
* each.
|
|
11
|
+
*/
|
|
12
|
+
conversationMetadata?: Record<string, string>;
|
|
13
|
+
/**
|
|
14
|
+
* A patch to the user's data. Keys may not start with `maven.`, which the platform
|
|
15
|
+
* reserves.
|
|
16
|
+
*/
|
|
17
|
+
userData?: MavenAGI.UserDataEffect;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AllUsersConversationAudience = {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Who made a change, as recorded when it was made.
|
|
4
|
+
*/
|
|
5
|
+
export interface ChangeAuthor {
|
|
6
|
+
/**
|
|
7
|
+
* The mavenUser ID of the person the change was made for, the same as `MavenUser.id`: one ID
|
|
8
|
+
* for the person in every organization. The mavenUsers API gives their current name. It answers
|
|
9
|
+
* 404 for someone the caller can no longer read, such as a person who left the organization, so
|
|
10
|
+
* fall back to `name` then. Absent when no person was recorded: an app that acted for no one, a
|
|
11
|
+
* change made with no signed-in caller, and older changes.
|
|
12
|
+
*/
|
|
13
|
+
mavenUserId?: MavenAGI.LeveledEntityId;
|
|
14
|
+
/** Who made the change, as their name read at the time; it does not change if they rename later. When an app acted for a person signed in to Maven, their name (absent if they have no name on record). When an app acted for no person, the app's ID. Changes recorded before people were tracked usually name the app. A change made with no signed-in caller, such as background setup work, reads "Anonymous", and some older changes name a dashboard user. */
|
|
15
|
+
name?: string;
|
|
16
|
+
/** The ID of the app that made the change. Absent when no app made it, such as a change with no signed-in caller, and for older changes where no app was recorded. */
|
|
17
|
+
actingAppId?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export type ConversationAudience =
|
|
3
|
+
/**
|
|
4
|
+
* Any of the agent's users may take part in the conversation. Equivalent to omitting `audience`. */
|
|
5
|
+
MavenAGI.ConversationAudience.AllUsers
|
|
6
|
+
/**
|
|
7
|
+
* Only the listed users may take part in the conversation. A `USER` message from anyone else is
|
|
8
|
+
* rejected with a 400 on `ask`, `askStream` and `appendNewMessages`, and on the `initialize` that
|
|
9
|
+
* creates the conversation; a repeat `initialize` saves no messages. Messages from human agents and
|
|
10
|
+
* external systems are not checked, and voice caller messages are not checked yet. */
|
|
11
|
+
| MavenAGI.ConversationAudience.Users;
|
|
12
|
+
export declare namespace ConversationAudience {
|
|
13
|
+
interface AllUsers extends MavenAGI.AllUsersConversationAudience {
|
|
14
|
+
type: "allUsers";
|
|
15
|
+
}
|
|
16
|
+
interface Users extends MavenAGI.UsersConversationAudience {
|
|
17
|
+
type: "users";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export type ConversationAudienceResponse =
|
|
3
|
+
/**
|
|
4
|
+
* Any of the agent's users may take part in the conversation. */
|
|
5
|
+
MavenAGI.ConversationAudienceResponse.AllUsers
|
|
6
|
+
/**
|
|
7
|
+
* Only the listed users may take part in the conversation. */
|
|
8
|
+
| MavenAGI.ConversationAudienceResponse.Users;
|
|
9
|
+
export declare namespace ConversationAudienceResponse {
|
|
10
|
+
interface AllUsers extends MavenAGI.AllUsersConversationAudience {
|
|
11
|
+
type: "allUsers";
|
|
12
|
+
}
|
|
13
|
+
interface Users extends MavenAGI.UsersConversationAudienceResponse {
|
|
14
|
+
type: "users";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -9,6 +9,9 @@ import type * as MavenAGI from "../../../index";
|
|
|
9
9
|
* agentId: "support",
|
|
10
10
|
* type: MavenAGI.EntityType.Conversation
|
|
11
11
|
* },
|
|
12
|
+
* audience: {
|
|
13
|
+
* type: "allUsers"
|
|
14
|
+
* },
|
|
12
15
|
* deleted: false,
|
|
13
16
|
* open: false,
|
|
14
17
|
* llmEnabled: true,
|
|
@@ -92,4 +95,9 @@ export interface ConversationResponse extends MavenAGI.BaseConversationResponse
|
|
|
92
95
|
* Message attachments are included in LLM context, conversation attachments are not.
|
|
93
96
|
*/
|
|
94
97
|
attachments: MavenAGI.AttachmentResponse[];
|
|
98
|
+
/**
|
|
99
|
+
* Who the conversation is for, as set when it was initialized. `allUsers` for a conversation
|
|
100
|
+
* initialized without an audience or created by an ask.
|
|
101
|
+
*/
|
|
102
|
+
audience: MavenAGI.ConversationAudienceResponse;
|
|
95
103
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The settings a conversation is created with.
|
|
4
|
+
*/
|
|
5
|
+
export interface ConversationSetupFields {
|
|
6
|
+
/** Optional configurations for responses to this conversation */
|
|
7
|
+
responseConfig?: MavenAGI.ResponseConfig;
|
|
8
|
+
/** The tags of the conversation. Used for filtering in Agent Designer. */
|
|
9
|
+
tags?: Set<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Set of 16 key-value pairs that can be attached to an object. This can be useful for storing
|
|
12
|
+
* additional information about the object in a structured format, and querying for objects
|
|
13
|
+
* via API or the dashboard.
|
|
14
|
+
*
|
|
15
|
+
* Keys are strings with a maximum length of 500 characters. Values are strings with a maximum
|
|
16
|
+
* length of 512 characters.
|
|
17
|
+
*
|
|
18
|
+
* The metadata of the conversation supplied by the app which created the conversation.
|
|
19
|
+
*/
|
|
20
|
+
metadata?: Record<string, string>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The ID of an object above the organization level. It has no `organizationId` or `agentId`, and
|
|
4
|
+
* none is inferred: the ID is unique within one residency zone and environment.
|
|
5
|
+
*/
|
|
6
|
+
export interface CrossOrganizationLevelEntityId extends MavenAGI.EntityIdWithoutAgent {
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* An object ID that states the level its object lives at: `AGENT` (it belongs to an agent),
|
|
4
|
+
* `ORGANIZATION` (it belongs to an organization and to none of its agents), or `CROSS_ORGANIZATION` (it
|
|
5
|
+
* is above the organization level). An `AGENT` ID has the same fields as `EntityId`, plus `level`. An ID
|
|
6
|
+
* sent without `level` is read as `AGENT`.
|
|
7
|
+
*/
|
|
8
|
+
export type LeveledEntityId =
|
|
9
|
+
/**
|
|
10
|
+
* An object that belongs to an agent. */
|
|
11
|
+
MavenAGI.LeveledEntityId.Agent
|
|
12
|
+
/**
|
|
13
|
+
* An object that belongs to an organization and to none of its agents. */
|
|
14
|
+
| MavenAGI.LeveledEntityId.Organization
|
|
15
|
+
/**
|
|
16
|
+
* An object above the organization level. */
|
|
17
|
+
| MavenAGI.LeveledEntityId.CrossOrganization;
|
|
18
|
+
export declare namespace LeveledEntityId {
|
|
19
|
+
interface Agent extends MavenAGI.EntityId {
|
|
20
|
+
level: "AGENT";
|
|
21
|
+
}
|
|
22
|
+
interface Organization extends MavenAGI.OrganizationLevelEntityId {
|
|
23
|
+
level: "ORGANIZATION";
|
|
24
|
+
}
|
|
25
|
+
interface CrossOrganization extends MavenAGI.CrossOrganizationLevelEntityId {
|
|
26
|
+
level: "CROSS_ORGANIZATION";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The ID of an object that belongs to an organization and to none of its agents. It has no `agentId`,
|
|
4
|
+
* and none is inferred.
|
|
5
|
+
*/
|
|
6
|
+
export interface OrganizationLevelEntityId extends MavenAGI.EntityIdWithoutAgent {
|
|
7
|
+
/** The ID of the organization that this object belongs to */
|
|
8
|
+
organizationId: string;
|
|
9
|
+
}
|
|
@@ -10,7 +10,7 @@ MavenAGI.SimulationActionBehavior.FixedResponse
|
|
|
10
10
|
* The platform calls the action's app instead of returning a mocked result. */
|
|
11
11
|
| MavenAGI.SimulationActionBehavior.CallApp;
|
|
12
12
|
export declare namespace SimulationActionBehavior {
|
|
13
|
-
interface FixedResponse extends MavenAGI.
|
|
13
|
+
interface FixedResponse extends MavenAGI.SimulationFixedResponse {
|
|
14
14
|
type: "fixedResponse";
|
|
15
15
|
}
|
|
16
16
|
interface CallApp extends MavenAGI.SimulationActionCallApp {
|
|
@@ -2,7 +2,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* Conversations with a simulation context are the runs on the Agent Designer "Simulator" page.
|
|
4
4
|
*/
|
|
5
|
-
export interface SimulationContext {
|
|
5
|
+
export interface SimulationContext extends MavenAGI.SimulationSetupFields {
|
|
6
6
|
/**
|
|
7
7
|
* Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
|
|
8
8
|
*
|
|
@@ -27,27 +27,4 @@ export interface SimulationContext {
|
|
|
27
27
|
* keeps the variant it was created with.
|
|
28
28
|
*/
|
|
29
29
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
30
|
-
/**
|
|
31
|
-
* When true, the simulation evaluates the agent's charters even if charter evaluation is
|
|
32
|
-
* turned off for the agent. When absent or false, the simulation follows the agent's own
|
|
33
|
-
* charter evaluation setting, like any other conversation. While charters are evaluated,
|
|
34
|
-
* `additionalPromptText` has no effect. Not yet enabled for every agent: until it is, the
|
|
35
|
-
* value is stored and returned, and the agent's own setting applies. A conversation that
|
|
36
|
-
* already exists keeps the value it was created with.
|
|
37
|
-
*/
|
|
38
|
-
evaluateWithCharters?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* What the platform does when the agent executes each action during this simulation. At
|
|
41
|
-
* most one entry per action; a request that names an action twice is rejected. An action
|
|
42
|
-
* with no entry follows `defaultActionBehavior`. A conversation that already exists keeps
|
|
43
|
-
* the mocks and default it was created with.
|
|
44
|
-
*/
|
|
45
|
-
actionMocks?: MavenAGI.SimulationActionMock[];
|
|
46
|
-
/**
|
|
47
|
-
* What the platform does when the agent executes an action that has no `actionMocks`
|
|
48
|
-
* entry. When absent, the action's app is called as usual. A `fixedResponse` here keeps the
|
|
49
|
-
* simulation from calling any action's app that `actionMocks` doesn't name with `callApp`;
|
|
50
|
-
* its templates are rendered over the parameters of whichever action was called.
|
|
51
|
-
*/
|
|
52
|
-
defaultActionBehavior?: MavenAGI.SimulationActionBehavior;
|
|
53
30
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface SimulationFixedResponse extends MavenAGI.ExecuteActionResponse {
|
|
3
|
+
/**
|
|
4
|
+
* State the action would have changed. The platform writes it each time this mock answers,
|
|
5
|
+
* under the app that initialized the conversation; the mocked app is not called. Both
|
|
6
|
+
* writes are attempted; if either fails, the action's result is an error and the other
|
|
7
|
+
* write stays applied. `userData` patches the initializing app's profile of the user who
|
|
8
|
+
* sent the message that triggered the action: that user must be a `SIMULATION` user with a
|
|
9
|
+
* profile under that app. Allowed on an `actionMocks` entry, not on
|
|
10
|
+
* `defaultActionBehavior`, and not with an `ERROR` status: a failed action changes no
|
|
11
|
+
* state.
|
|
12
|
+
*/
|
|
13
|
+
effects?: MavenAGI.ActionEffects;
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* How a simulation evaluates charters and handles the actions the agent executes.
|
|
4
|
+
*/
|
|
5
|
+
export interface SimulationSetupFields {
|
|
6
|
+
/**
|
|
7
|
+
* When true, the simulation evaluates the agent's charters even if charter evaluation is
|
|
8
|
+
* turned off for the agent. When absent or false, the simulation follows the agent's own
|
|
9
|
+
* charter evaluation setting, like any other conversation. While charters are evaluated,
|
|
10
|
+
* `additionalPromptText` has no effect. Not yet enabled for every agent: until it is, the
|
|
11
|
+
* value is stored and returned, and the agent's own setting applies. A conversation that
|
|
12
|
+
* already exists keeps the value it was created with.
|
|
13
|
+
*/
|
|
14
|
+
evaluateWithCharters?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* What the platform does when the agent executes each action during this simulation. At
|
|
17
|
+
* most one entry per action; a request that names an action twice is rejected. An action
|
|
18
|
+
* with no entry follows `defaultActionBehavior`. A conversation that already exists keeps
|
|
19
|
+
* the mocks and default it was created with.
|
|
20
|
+
*/
|
|
21
|
+
actionMocks?: MavenAGI.SimulationActionMock[];
|
|
22
|
+
/**
|
|
23
|
+
* What the platform does when the agent executes an action that has no `actionMocks`
|
|
24
|
+
* entry. When absent, the action's app is called as usual. A `fixedResponse` here keeps the
|
|
25
|
+
* simulation from calling any action's app that `actionMocks` doesn't name with `callApp`;
|
|
26
|
+
* its templates are rendered over the parameters of whichever action was called.
|
|
27
|
+
*/
|
|
28
|
+
defaultActionBehavior?: MavenAGI.SimulationActionBehavior;
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface UserDataEffect {
|
|
3
|
+
/** Keys to set. Keys not named are left as they are. */
|
|
4
|
+
data?: Record<string, MavenAGI.UserDataPatch>;
|
|
5
|
+
/**
|
|
6
|
+
* Keys to clear. Each is set to an empty string with `VISIBLE` visibility; there is no
|
|
7
|
+
* delete. A key may not also appear in `data`.
|
|
8
|
+
*/
|
|
9
|
+
removeKeys?: string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Not `UserData`, which requires `visibility`; a patch can leave it out.
|
|
4
|
+
*/
|
|
5
|
+
export interface UserDataPatch {
|
|
6
|
+
/** The value to store. */
|
|
7
|
+
value: string;
|
|
8
|
+
/** Defaults to `VISIBLE`. */
|
|
9
|
+
visibility?: MavenAGI.VisibilityType;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface UsersConversationAudience {
|
|
3
|
+
/**
|
|
4
|
+
* The users the conversation is for, identified the same way as a message's `userId`: by
|
|
5
|
+
* reference ID within the calling app. Must list between 1 and 100 users.
|
|
6
|
+
*/
|
|
7
|
+
userIds: MavenAGI.EntityIdBase[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface UsersConversationAudienceResponse {
|
|
3
|
+
/**
|
|
4
|
+
* The users the conversation is for, as `initialize` named them: each is a user ID (`type` `USER`) with
|
|
5
|
+
* the app and reference ID it was given under, the same ID a message's `userId` names. These identify
|
|
6
|
+
* users of the agent, not `mavenUserId`s.
|
|
7
|
+
*/
|
|
8
|
+
userIds: MavenAGI.EntityId[];
|
|
9
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./AbsoluteTimeWindow";
|
|
2
2
|
export * from "./ActionBase";
|
|
3
|
+
export * from "./ActionEffects";
|
|
3
4
|
export * from "./ActionEnumOption";
|
|
4
5
|
export * from "./ActionExecutionParamValue";
|
|
5
6
|
export * from "./ActionExecutionStatus";
|
|
@@ -11,6 +12,7 @@ export * from "./ActionProperties";
|
|
|
11
12
|
export * from "./ActionResponse";
|
|
12
13
|
export * from "./ActionUser";
|
|
13
14
|
export * from "./AdditionalDataKey";
|
|
15
|
+
export * from "./AllUsersConversationAudience";
|
|
14
16
|
export * from "./AppPrecondition";
|
|
15
17
|
export * from "./AppUser";
|
|
16
18
|
export * from "./AppUserIdentifier";
|
|
@@ -61,6 +63,7 @@ export * from "./Capability";
|
|
|
61
63
|
export * from "./CapabilityBase";
|
|
62
64
|
export * from "./CapabilityStatus";
|
|
63
65
|
export * from "./CapabilityType";
|
|
66
|
+
export * from "./ChangeAuthor";
|
|
64
67
|
export * from "./CharterType";
|
|
65
68
|
export * from "./ChartSpecSchema";
|
|
66
69
|
export * from "./CheckboxSettingsSchemaEntry";
|
|
@@ -68,6 +71,8 @@ export * from "./ColorSettingsSchemaEntry";
|
|
|
68
71
|
export * from "./ComplexArraySettingsSchemaEntry";
|
|
69
72
|
export * from "./ContextInfo";
|
|
70
73
|
export * from "./ConversationAnalysis";
|
|
74
|
+
export * from "./ConversationAudience";
|
|
75
|
+
export * from "./ConversationAudienceResponse";
|
|
71
76
|
export * from "./ConversationExecutedActionPrecondition";
|
|
72
77
|
export * from "./ConversationInformation";
|
|
73
78
|
export * from "./ConversationKickoffExecutionResponse";
|
|
@@ -82,10 +87,12 @@ export * from "./ConversationPreconditionResponse";
|
|
|
82
87
|
export * from "./ConversationPreview";
|
|
83
88
|
export * from "./ConversationResponse";
|
|
84
89
|
export * from "./ConversationRound";
|
|
90
|
+
export * from "./ConversationSetupFields";
|
|
85
91
|
export * from "./ConversationState";
|
|
86
92
|
export * from "./ConversationStatePrecondition";
|
|
87
93
|
export * from "./ConversationSummary";
|
|
88
94
|
export * from "./ConversationValueSource";
|
|
95
|
+
export * from "./CrossOrganizationLevelEntityId";
|
|
89
96
|
export * from "./CsatInfo";
|
|
90
97
|
export * from "./CursorPage";
|
|
91
98
|
export * from "./DayOfMonthDaySelector";
|
|
@@ -154,6 +161,7 @@ export * from "./KnowledgeContextByEntities";
|
|
|
154
161
|
export * from "./KnowledgeContextByEntityTypes";
|
|
155
162
|
export * from "./KnowledgeContextFilter";
|
|
156
163
|
export * from "./LanguageInfo";
|
|
164
|
+
export * from "./LeveledEntityId";
|
|
157
165
|
export * from "./LlmInclusionStatus";
|
|
158
166
|
export * from "./LlmPersona";
|
|
159
167
|
export * from "./MessageStatus";
|
|
@@ -183,6 +191,7 @@ export * from "./OAuthSettingsSchemaEntry";
|
|
|
183
191
|
export * from "./ObjectCondition";
|
|
184
192
|
export * from "./Occurrence";
|
|
185
193
|
export * from "./OneOfSettingsSchemaEntry";
|
|
194
|
+
export * from "./OrganizationLevelEntityId";
|
|
186
195
|
export * from "./OsInfo";
|
|
187
196
|
export * from "./OsType";
|
|
188
197
|
export * from "./Page";
|
|
@@ -227,6 +236,8 @@ export * from "./SimulationActionCallApp";
|
|
|
227
236
|
export * from "./SimulationActionMock";
|
|
228
237
|
export * from "./SimulationContext";
|
|
229
238
|
export * from "./SimulationFilter";
|
|
239
|
+
export * from "./SimulationFixedResponse";
|
|
240
|
+
export * from "./SimulationSetupFields";
|
|
230
241
|
export * from "./Source";
|
|
231
242
|
export * from "./SourceInfo";
|
|
232
243
|
export * from "./SourceType";
|
|
@@ -251,6 +262,8 @@ export * from "./TimeWindow";
|
|
|
251
262
|
export * from "./UniversalCondition";
|
|
252
263
|
export * from "./UserConversationMessageType";
|
|
253
264
|
export * from "./UserData";
|
|
265
|
+
export * from "./UserDataEffect";
|
|
266
|
+
export * from "./UserDataPatch";
|
|
254
267
|
export * from "./UserDataValueSource";
|
|
255
268
|
export * from "./UserDataWithReference";
|
|
256
269
|
export * from "./UserEvent";
|
|
@@ -259,6 +272,8 @@ export * from "./UserEventNameCondition";
|
|
|
259
272
|
export * from "./UserMessage";
|
|
260
273
|
export * from "./UserMessageBase";
|
|
261
274
|
export * from "./UserMessageResponseState";
|
|
275
|
+
export * from "./UsersConversationAudience";
|
|
276
|
+
export * from "./UsersConversationAudienceResponse";
|
|
262
277
|
export * from "./ValidatedSettingsSchemaEntryBase";
|
|
263
278
|
export * from "./VisibilityType";
|
|
264
279
|
export * from "./WeekdaysDaySelector";
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AbsoluteTimeWindow"), exports);
|
|
18
18
|
__exportStar(require("./ActionBase"), exports);
|
|
19
|
+
__exportStar(require("./ActionEffects"), exports);
|
|
19
20
|
__exportStar(require("./ActionEnumOption"), exports);
|
|
20
21
|
__exportStar(require("./ActionExecutionParamValue"), exports);
|
|
21
22
|
__exportStar(require("./ActionExecutionStatus"), exports);
|
|
@@ -27,6 +28,7 @@ __exportStar(require("./ActionProperties"), exports);
|
|
|
27
28
|
__exportStar(require("./ActionResponse"), exports);
|
|
28
29
|
__exportStar(require("./ActionUser"), exports);
|
|
29
30
|
__exportStar(require("./AdditionalDataKey"), exports);
|
|
31
|
+
__exportStar(require("./AllUsersConversationAudience"), exports);
|
|
30
32
|
__exportStar(require("./AppPrecondition"), exports);
|
|
31
33
|
__exportStar(require("./AppUser"), exports);
|
|
32
34
|
__exportStar(require("./AppUserIdentifier"), exports);
|
|
@@ -77,6 +79,7 @@ __exportStar(require("./Capability"), exports);
|
|
|
77
79
|
__exportStar(require("./CapabilityBase"), exports);
|
|
78
80
|
__exportStar(require("./CapabilityStatus"), exports);
|
|
79
81
|
__exportStar(require("./CapabilityType"), exports);
|
|
82
|
+
__exportStar(require("./ChangeAuthor"), exports);
|
|
80
83
|
__exportStar(require("./CharterType"), exports);
|
|
81
84
|
__exportStar(require("./ChartSpecSchema"), exports);
|
|
82
85
|
__exportStar(require("./CheckboxSettingsSchemaEntry"), exports);
|
|
@@ -84,6 +87,8 @@ __exportStar(require("./ColorSettingsSchemaEntry"), exports);
|
|
|
84
87
|
__exportStar(require("./ComplexArraySettingsSchemaEntry"), exports);
|
|
85
88
|
__exportStar(require("./ContextInfo"), exports);
|
|
86
89
|
__exportStar(require("./ConversationAnalysis"), exports);
|
|
90
|
+
__exportStar(require("./ConversationAudience"), exports);
|
|
91
|
+
__exportStar(require("./ConversationAudienceResponse"), exports);
|
|
87
92
|
__exportStar(require("./ConversationExecutedActionPrecondition"), exports);
|
|
88
93
|
__exportStar(require("./ConversationInformation"), exports);
|
|
89
94
|
__exportStar(require("./ConversationKickoffExecutionResponse"), exports);
|
|
@@ -98,10 +103,12 @@ __exportStar(require("./ConversationPreconditionResponse"), exports);
|
|
|
98
103
|
__exportStar(require("./ConversationPreview"), exports);
|
|
99
104
|
__exportStar(require("./ConversationResponse"), exports);
|
|
100
105
|
__exportStar(require("./ConversationRound"), exports);
|
|
106
|
+
__exportStar(require("./ConversationSetupFields"), exports);
|
|
101
107
|
__exportStar(require("./ConversationState"), exports);
|
|
102
108
|
__exportStar(require("./ConversationStatePrecondition"), exports);
|
|
103
109
|
__exportStar(require("./ConversationSummary"), exports);
|
|
104
110
|
__exportStar(require("./ConversationValueSource"), exports);
|
|
111
|
+
__exportStar(require("./CrossOrganizationLevelEntityId"), exports);
|
|
105
112
|
__exportStar(require("./CsatInfo"), exports);
|
|
106
113
|
__exportStar(require("./CursorPage"), exports);
|
|
107
114
|
__exportStar(require("./DayOfMonthDaySelector"), exports);
|
|
@@ -170,6 +177,7 @@ __exportStar(require("./KnowledgeContextByEntities"), exports);
|
|
|
170
177
|
__exportStar(require("./KnowledgeContextByEntityTypes"), exports);
|
|
171
178
|
__exportStar(require("./KnowledgeContextFilter"), exports);
|
|
172
179
|
__exportStar(require("./LanguageInfo"), exports);
|
|
180
|
+
__exportStar(require("./LeveledEntityId"), exports);
|
|
173
181
|
__exportStar(require("./LlmInclusionStatus"), exports);
|
|
174
182
|
__exportStar(require("./LlmPersona"), exports);
|
|
175
183
|
__exportStar(require("./MessageStatus"), exports);
|
|
@@ -199,6 +207,7 @@ __exportStar(require("./OAuthSettingsSchemaEntry"), exports);
|
|
|
199
207
|
__exportStar(require("./ObjectCondition"), exports);
|
|
200
208
|
__exportStar(require("./Occurrence"), exports);
|
|
201
209
|
__exportStar(require("./OneOfSettingsSchemaEntry"), exports);
|
|
210
|
+
__exportStar(require("./OrganizationLevelEntityId"), exports);
|
|
202
211
|
__exportStar(require("./OsInfo"), exports);
|
|
203
212
|
__exportStar(require("./OsType"), exports);
|
|
204
213
|
__exportStar(require("./Page"), exports);
|
|
@@ -243,6 +252,8 @@ __exportStar(require("./SimulationActionCallApp"), exports);
|
|
|
243
252
|
__exportStar(require("./SimulationActionMock"), exports);
|
|
244
253
|
__exportStar(require("./SimulationContext"), exports);
|
|
245
254
|
__exportStar(require("./SimulationFilter"), exports);
|
|
255
|
+
__exportStar(require("./SimulationFixedResponse"), exports);
|
|
256
|
+
__exportStar(require("./SimulationSetupFields"), exports);
|
|
246
257
|
__exportStar(require("./Source"), exports);
|
|
247
258
|
__exportStar(require("./SourceInfo"), exports);
|
|
248
259
|
__exportStar(require("./SourceType"), exports);
|
|
@@ -267,6 +278,8 @@ __exportStar(require("./TimeWindow"), exports);
|
|
|
267
278
|
__exportStar(require("./UniversalCondition"), exports);
|
|
268
279
|
__exportStar(require("./UserConversationMessageType"), exports);
|
|
269
280
|
__exportStar(require("./UserData"), exports);
|
|
281
|
+
__exportStar(require("./UserDataEffect"), exports);
|
|
282
|
+
__exportStar(require("./UserDataPatch"), exports);
|
|
270
283
|
__exportStar(require("./UserDataValueSource"), exports);
|
|
271
284
|
__exportStar(require("./UserDataWithReference"), exports);
|
|
272
285
|
__exportStar(require("./UserEvent"), exports);
|
|
@@ -275,6 +288,8 @@ __exportStar(require("./UserEventNameCondition"), exports);
|
|
|
275
288
|
__exportStar(require("./UserMessage"), exports);
|
|
276
289
|
__exportStar(require("./UserMessageBase"), exports);
|
|
277
290
|
__exportStar(require("./UserMessageResponseState"), exports);
|
|
291
|
+
__exportStar(require("./UsersConversationAudience"), exports);
|
|
292
|
+
__exportStar(require("./UsersConversationAudienceResponse"), exports);
|
|
278
293
|
__exportStar(require("./ValidatedSettingsSchemaEntryBase"), exports);
|
|
279
294
|
__exportStar(require("./VisibilityType"), exports);
|
|
280
295
|
__exportStar(require("./WeekdaysDaySelector"), exports);
|