@amigo-ai/sdk 0.42.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/generated/api-types.d.ts +147 -33
- package/package.json +1 -1
|
@@ -192,7 +192,7 @@ export interface paths {
|
|
|
192
192
|
* * For action and decision states, each exit condition's `next_state` must either be a string that exists in the states and cannot be the same as the current state, or a 2-tuple of strings,
|
|
193
193
|
* with the first string of the form `{external_service_hierarchical_state_machine_reference.external_state_name}`, and the second string the jumpback state which must be a state
|
|
194
194
|
* in the states.
|
|
195
|
-
* * For recall states, `next_state` must either be a string that exists in the states and cannot be the same as the current state, or a 2-tuple of strings,
|
|
195
|
+
* * For `recall`, `reflection`, and `tool_call` states, `next_state` must either be a string that exists in the states and cannot be the same as the current state, or a 2-tuple of strings,
|
|
196
196
|
* with the first string of the form `{external_service_hierarchical_state_machine_reference.external_state_name}`, and the second string the jumpback state which must be a state
|
|
197
197
|
* in the states.
|
|
198
198
|
* * The terminal state cannot have exit conditions and must have exactly one action.
|
|
@@ -5192,7 +5192,7 @@ export interface components {
|
|
|
5192
5192
|
/** @description The user who created the unit test set run. */
|
|
5193
5193
|
creator: components["schemas"]["amigo_lib__mongo__collections__simulation_unit_test_set_run__SimulationUnitTestSetRun__UserInfo"];
|
|
5194
5194
|
};
|
|
5195
|
-
State: components["schemas"]["ActionState-Output"] | components["schemas"]["DecisionState-Output"] | components["schemas"]["RecallState-Output"] | components["schemas"]["AnnotationState-Output"] | components["schemas"]["ReflectionState-Output"];
|
|
5195
|
+
State: components["schemas"]["ActionState-Output"] | components["schemas"]["DecisionState-Output"] | components["schemas"]["RecallState-Output"] | components["schemas"]["AnnotationState-Output"] | components["schemas"]["ReflectionState-Output"] | components["schemas"]["ToolCallState-Output"];
|
|
5196
5196
|
/** StateMachineInstance */
|
|
5197
5197
|
StateMachineInstance: {
|
|
5198
5198
|
/**
|
|
@@ -5248,7 +5248,7 @@ export interface components {
|
|
|
5248
5248
|
*/
|
|
5249
5249
|
tool_call_round_index: number;
|
|
5250
5250
|
};
|
|
5251
|
-
StateTransitionLog: components["schemas"]["ActionStateTransitionLog"] | components["schemas"]["DecisionStateTransitionLog"] | components["schemas"]["RecallStateTransitionLog"] | components["schemas"]["JumpbackStateTransitionLog"] | components["schemas"]["AnnotationStateTransitionLog"] | components["schemas"]["ReflectionStateTransitionLog"];
|
|
5251
|
+
StateTransitionLog: components["schemas"]["ActionStateTransitionLog"] | components["schemas"]["DecisionStateTransitionLog"] | components["schemas"]["RecallStateTransitionLog"] | components["schemas"]["JumpbackStateTransitionLog"] | components["schemas"]["AnnotationStateTransitionLog"] | components["schemas"]["ReflectionStateTransitionLog"] | components["schemas"]["ToolCallStateTransitionLog"];
|
|
5252
5252
|
"StrippedNonemptyString_A-Z______": string;
|
|
5253
5253
|
StrippedNonemptyString_________: string;
|
|
5254
5254
|
StrippedNonemptyString___w__s_____: string;
|
|
@@ -5462,6 +5462,137 @@ export interface components {
|
|
|
5462
5462
|
[key: string]: unknown;
|
|
5463
5463
|
};
|
|
5464
5464
|
};
|
|
5465
|
+
/** ToolCallState */
|
|
5466
|
+
"ToolCallState-Input": {
|
|
5467
|
+
/**
|
|
5468
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5469
|
+
* @enum {string}
|
|
5470
|
+
*/
|
|
5471
|
+
type: "tool-call";
|
|
5472
|
+
name: components["schemas"]["StateOrRefName"];
|
|
5473
|
+
/** Next State */
|
|
5474
|
+
next_state: components["schemas"]["StateOrRefName"] | [
|
|
5475
|
+
components["schemas"]["ExternalStateName"],
|
|
5476
|
+
components["schemas"]["StateOrRefName"]
|
|
5477
|
+
];
|
|
5478
|
+
designated_tool: components["schemas"]["ToolCallSpec-Input"];
|
|
5479
|
+
/** Designated Tool Call Params Generation Audio Fillers */
|
|
5480
|
+
designated_tool_call_params_generation_audio_fillers: components["schemas"]["StrippedNonemptyString_________"][];
|
|
5481
|
+
/** Designated Tool Call Params Generation Audio Filler Triggered After */
|
|
5482
|
+
designated_tool_call_params_generation_audio_filler_triggered_after: number;
|
|
5483
|
+
designated_tool_call_objective: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"];
|
|
5484
|
+
designated_tool_call_context: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"];
|
|
5485
|
+
/** Designated Tool Call Guidances */
|
|
5486
|
+
designated_tool_call_guidances: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"][];
|
|
5487
|
+
/** Designated Tool Call Validations */
|
|
5488
|
+
designated_tool_call_validations: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"][];
|
|
5489
|
+
/** Tool Call Specs */
|
|
5490
|
+
tool_call_specs: components["schemas"]["ToolCallSpec-Input"][];
|
|
5491
|
+
};
|
|
5492
|
+
/**
|
|
5493
|
+
* ToolCallState
|
|
5494
|
+
* @description A state that executes a tool call.
|
|
5495
|
+
*/
|
|
5496
|
+
"ToolCallState-Output": {
|
|
5497
|
+
/**
|
|
5498
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5499
|
+
* @enum {string}
|
|
5500
|
+
*/
|
|
5501
|
+
type: "tool-call";
|
|
5502
|
+
/**
|
|
5503
|
+
* Name
|
|
5504
|
+
* @description The name of this state.
|
|
5505
|
+
*/
|
|
5506
|
+
name: string;
|
|
5507
|
+
/**
|
|
5508
|
+
* Next State
|
|
5509
|
+
* @description The state to transition to after the inner thought message is generated. If it's a string, the session will transition to a state within this contextual graph. If it's a tuple, the first element
|
|
5510
|
+
* must be of the form `{external_contextual_graph_reference_name}.{state_name}` and represents a state in another contextual graph that the session will transition to, and the second element must be a state
|
|
5511
|
+
* in this contextual graph that the session will transition to after reaching the terminal state of the external graph.
|
|
5512
|
+
*/
|
|
5513
|
+
next_state: string | [
|
|
5514
|
+
string,
|
|
5515
|
+
string
|
|
5516
|
+
];
|
|
5517
|
+
/** @description The tool that the agent is to call in this state. */
|
|
5518
|
+
designated_tool: components["schemas"]["ToolCallSpec-Output"];
|
|
5519
|
+
/**
|
|
5520
|
+
* Designated Tool Call Params Generation Audio Fillers
|
|
5521
|
+
* @description A list of audio fillers to play in audio mode if the designated tool call's input generation is taking a long time.
|
|
5522
|
+
*/
|
|
5523
|
+
designated_tool_call_params_generation_audio_fillers: string[];
|
|
5524
|
+
/**
|
|
5525
|
+
* Designated Tool Call Params Generation Audio Filler Triggered After
|
|
5526
|
+
* @description The number of seconds to wait after the designated tool call params generation starts before playing an audio filler.
|
|
5527
|
+
*/
|
|
5528
|
+
designated_tool_call_params_generation_audio_filler_triggered_after: number;
|
|
5529
|
+
/**
|
|
5530
|
+
* Designated Tool Call Objective
|
|
5531
|
+
* @description The objective that the agent is to achieve when generating the input to the designated tool.
|
|
5532
|
+
*/
|
|
5533
|
+
designated_tool_call_objective: string;
|
|
5534
|
+
/**
|
|
5535
|
+
* Designated Tool Call Context
|
|
5536
|
+
* @description The context that the agent can use when generating the input to the designated tool.
|
|
5537
|
+
*/
|
|
5538
|
+
designated_tool_call_context: string;
|
|
5539
|
+
/**
|
|
5540
|
+
* Designated Tool Call Guidances
|
|
5541
|
+
* @description The guidance that the agent must follow when generating the input to the designated tool.
|
|
5542
|
+
*/
|
|
5543
|
+
designated_tool_call_guidances: string[];
|
|
5544
|
+
/**
|
|
5545
|
+
* Designated Tool Call Validations
|
|
5546
|
+
* @description A list of validations that the agent must ensure are satisfied when generating the input to the designated tool.
|
|
5547
|
+
*/
|
|
5548
|
+
designated_tool_call_validations: string[];
|
|
5549
|
+
/**
|
|
5550
|
+
* Tool Call Specs
|
|
5551
|
+
* @description A list of tool calls that the agent can make to help generating the input to the designated tool.
|
|
5552
|
+
*/
|
|
5553
|
+
tool_call_specs: components["schemas"]["ToolCallSpec-Output"][];
|
|
5554
|
+
};
|
|
5555
|
+
/** ToolCallStateTransitionLog */
|
|
5556
|
+
ToolCallStateTransitionLog: {
|
|
5557
|
+
/**
|
|
5558
|
+
* Previous State
|
|
5559
|
+
* @description Name of the previous state to transition from.
|
|
5560
|
+
*/
|
|
5561
|
+
previous_state: string;
|
|
5562
|
+
/**
|
|
5563
|
+
* Previous Service Hierarchical State Machine Version Info
|
|
5564
|
+
* @description The identifier of the service hierarchical state machine that the previous state is in.
|
|
5565
|
+
*/
|
|
5566
|
+
previous_service_hierarchical_state_machine_version_info: [
|
|
5567
|
+
string,
|
|
5568
|
+
number
|
|
5569
|
+
];
|
|
5570
|
+
/**
|
|
5571
|
+
* Next State
|
|
5572
|
+
* @description Name of the next state to transition to.
|
|
5573
|
+
*/
|
|
5574
|
+
next_state: string;
|
|
5575
|
+
/**
|
|
5576
|
+
* Next Service Hierarchical State Machine Version Info
|
|
5577
|
+
* @description The identifier of the service hierarchical state machine that the next state is in.
|
|
5578
|
+
*/
|
|
5579
|
+
next_service_hierarchical_state_machine_version_info: [
|
|
5580
|
+
string,
|
|
5581
|
+
number
|
|
5582
|
+
];
|
|
5583
|
+
/**
|
|
5584
|
+
* @description The type of the state transition log, which is the type of the state we're transitioning from. (enum property replaced by openapi-typescript)
|
|
5585
|
+
* @enum {string}
|
|
5586
|
+
*/
|
|
5587
|
+
type: "tool-call";
|
|
5588
|
+
/**
|
|
5589
|
+
* Tool Call Logs
|
|
5590
|
+
* @description A list of tool call logs that were performed during this state, except for the tool call for the designated tool call.
|
|
5591
|
+
*/
|
|
5592
|
+
tool_call_logs: components["schemas"]["ToolCallLog"][][];
|
|
5593
|
+
/** @description The tool call log for the designated tool call in this state. */
|
|
5594
|
+
designated_tool_call_log: components["schemas"]["ToolCallLog"];
|
|
5595
|
+
};
|
|
5465
5596
|
/** ToolInstance */
|
|
5466
5597
|
ToolInstance: {
|
|
5467
5598
|
/**
|
|
@@ -6051,21 +6182,12 @@ export interface components {
|
|
|
6051
6182
|
* @description The Elevenlabs voice ID for this agent.
|
|
6052
6183
|
*/
|
|
6053
6184
|
voice_id: string;
|
|
6054
|
-
/**
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
* Similarity Boost
|
|
6061
|
-
* @default 0.9
|
|
6062
|
-
*/
|
|
6063
|
-
similarity_boost?: number;
|
|
6064
|
-
/**
|
|
6065
|
-
* Style
|
|
6066
|
-
* @default 0
|
|
6067
|
-
*/
|
|
6068
|
-
style?: number;
|
|
6185
|
+
/** Stability */
|
|
6186
|
+
stability: number;
|
|
6187
|
+
/** Similarity Boost */
|
|
6188
|
+
similarity_boost: number;
|
|
6189
|
+
/** Style */
|
|
6190
|
+
style: number;
|
|
6069
6191
|
};
|
|
6070
6192
|
/** VoiceConfig */
|
|
6071
6193
|
"VoiceConfig-Output": {
|
|
@@ -6077,22 +6199,19 @@ export interface components {
|
|
|
6077
6199
|
/**
|
|
6078
6200
|
* Stability
|
|
6079
6201
|
* @description How stable the voice is and the randomness between each generation. The higher the more stable the voice is.
|
|
6080
|
-
* @default 0.35
|
|
6081
6202
|
*/
|
|
6082
|
-
stability
|
|
6203
|
+
stability: number;
|
|
6083
6204
|
/**
|
|
6084
6205
|
* Similarity Boost
|
|
6085
6206
|
* @description How closely the AI should adhere to the original voice when attempting to replicate it. The higher the more similar the generated audio is to the
|
|
6086
6207
|
* original voice.
|
|
6087
|
-
* @default 0.9
|
|
6088
6208
|
*/
|
|
6089
|
-
similarity_boost
|
|
6209
|
+
similarity_boost: number;
|
|
6090
6210
|
/**
|
|
6091
6211
|
* Style
|
|
6092
6212
|
* @description How much to exaggerate the original voice styles of the speaker. The higher the more exaggeration there is.
|
|
6093
|
-
* @default 0
|
|
6094
6213
|
*/
|
|
6095
|
-
style
|
|
6214
|
+
style: number;
|
|
6096
6215
|
};
|
|
6097
6216
|
/** WebhookDeliveryInstance */
|
|
6098
6217
|
WebhookDeliveryInstance: {
|
|
@@ -6902,13 +7021,8 @@ export interface components {
|
|
|
6902
7021
|
* @description A list of descriptions that illustrate the communication styles of this agent.
|
|
6903
7022
|
*/
|
|
6904
7023
|
communication_patterns?: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"][] | null;
|
|
6905
|
-
/**
|
|
6906
|
-
|
|
6907
|
-
* @description The Elevenlabs voice config for the agent. If set to null, the default setting is used. If not set or set to an empty object, the setting
|
|
6908
|
-
* on the existing version is used.
|
|
6909
|
-
* @default {}
|
|
6910
|
-
*/
|
|
6911
|
-
voice_config?: components["schemas"]["VoiceConfig-Input"] | components["schemas"]["_NotSet"] | null;
|
|
7024
|
+
/** @description The Elevenlabs voice config for the agent. If set to null, it is not updated. */
|
|
7025
|
+
voice_config?: components["schemas"]["VoiceConfig-Input"] | null;
|
|
6912
7026
|
};
|
|
6913
7027
|
/** Response */
|
|
6914
7028
|
organization__create_agent_version__Response: {
|
|
@@ -7080,7 +7194,7 @@ export interface components {
|
|
|
7080
7194
|
* States
|
|
7081
7195
|
* @description The internal states in this service hierarchical state machine.
|
|
7082
7196
|
*/
|
|
7083
|
-
states: (components["schemas"]["ActionState-Input"] | components["schemas"]["DecisionState-Input"] | components["schemas"]["RecallState-Input"] | components["schemas"]["AnnotationState-Input"] | components["schemas"]["ReflectionState-Input"])[];
|
|
7197
|
+
states: (components["schemas"]["ActionState-Input"] | components["schemas"]["DecisionState-Input"] | components["schemas"]["RecallState-Input"] | components["schemas"]["AnnotationState-Input"] | components["schemas"]["ReflectionState-Input"] | components["schemas"]["ToolCallState-Input"])[];
|
|
7084
7198
|
/** @description The state a new user will be in when a session starts. This must be an action state, and must be an internal state. */
|
|
7085
7199
|
new_user_initial_state: components["schemas"]["StateOrRefName"];
|
|
7086
7200
|
/** @description The state a returning user will be in when a session starts. This must be an action state, and must be an internal state. */
|
|
@@ -7184,7 +7298,7 @@ export interface components {
|
|
|
7184
7298
|
*/
|
|
7185
7299
|
version: number;
|
|
7186
7300
|
/** @description The voice configuration of the agent. */
|
|
7187
|
-
voice_config: components["schemas"]["VoiceConfig-Output"]
|
|
7301
|
+
voice_config: components["schemas"]["VoiceConfig-Output"];
|
|
7188
7302
|
/**
|
|
7189
7303
|
* Initials
|
|
7190
7304
|
* @description The initials of the agent.
|