@amigo-ai/sdk 0.43.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.
@@ -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
  /**
@@ -7063,7 +7194,7 @@ export interface components {
7063
7194
  * States
7064
7195
  * @description The internal states in this service hierarchical state machine.
7065
7196
  */
7066
- 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"])[];
7067
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. */
7068
7199
  new_user_initial_state: components["schemas"]["StateOrRefName"];
7069
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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amigo-ai/sdk",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "Amigo TypeScript SDK",
5
5
  "publishConfig": {
6
6
  "access": "public"