@amigo-ai/sdk 0.43.0 → 0.45.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.
@@ -3774,7 +3774,7 @@ export interface components {
3774
3774
  /** Action */
3775
3775
  action: string;
3776
3776
  };
3777
- NavigateStateMachineAgentActionEvent: components["schemas"]["NavigateStateMachineDynamicBehaviorOverrideEvent"] | components["schemas"]["NavigateStateMachineActionStateActionSelectedEvent"] | components["schemas"]["NavigateStateMachineDecisionStateDecisionStartedEvent"] | components["schemas"]["NavigateStateMachineExitConditionSelectedEvent"] | components["schemas"]["NavigateStateMachineRecallStateDynamicQueriesGeneratedEvent"] | components["schemas"]["NavigateStateMachineRecallStateStaticQueriesRetrievedEvent"] | components["schemas"]["NavigateStateMachineRecallStateActiveMemoryRetrievedEvent"] | components["schemas"]["NavigateStateMachineReflectionStatePromptRetrievedEvent"] | components["schemas"]["NavigateStateMachineReflectionStateReflectionGeneratedEvent"] | components["schemas"]["NavigateStateMachineAnnotationStateAnnotationRetrievedEvent"] | components["schemas"]["NavigateStateMachineStateTransitionedEvent"] | components["schemas"]["ToolCallStartedEvent"] | components["schemas"]["ToolCallEndedEvent"] | components["schemas"]["ActionTooLongEvent"];
3777
+ NavigateStateMachineAgentActionEvent: components["schemas"]["NavigateStateMachineDynamicBehaviorOverrideEvent"] | components["schemas"]["NavigateStateMachineActionStateActionSelectedEvent"] | components["schemas"]["NavigateStateMachineDecisionStateDecisionStartedEvent"] | components["schemas"]["NavigateStateMachineExitConditionSelectedEvent"] | components["schemas"]["NavigateStateMachineRecallStateDynamicQueriesGeneratedEvent"] | components["schemas"]["NavigateStateMachineRecallStateStaticQueriesRetrievedEvent"] | components["schemas"]["NavigateStateMachineRecallStateActiveMemoryRetrievedEvent"] | components["schemas"]["NavigateStateMachineReflectionStatePromptRetrievedEvent"] | components["schemas"]["NavigateStateMachineReflectionStateReflectionGeneratedEvent"] | components["schemas"]["NavigateStateMachineAnnotationStateAnnotationRetrievedEvent"] | components["schemas"]["NavigateStateMachineStateTransitionedEvent"] | components["schemas"]["NavigateStateMachineToolCallStateDesignatedToolRetrievedEvent"] | components["schemas"]["NavigateStateMachineToolCallStateToolParamsGeneratedEvent"] | components["schemas"]["NavigateStateMachineToolCallStateToolOutputAvailableEvent"] | components["schemas"]["ToolCallStartedEvent"] | components["schemas"]["ToolCallEndedEvent"] | components["schemas"]["ActionTooLongEvent"];
3778
3778
  /**
3779
3779
  * NavigateStateMachineAnnotationStateAnnotationRetrievedEvent
3780
3780
  * @description Indicating that the agent has retrieved the annotation in the current annotation state.
@@ -3966,6 +3966,66 @@ export interface components {
3966
3966
  number
3967
3967
  ];
3968
3968
  };
3969
+ /**
3970
+ * NavigateStateMachineToolCallStateDesignatedToolRetrievedEvent
3971
+ * @description Indicating that the agent has retrieved the designated tool in the current tool call state.
3972
+ */
3973
+ NavigateStateMachineToolCallStateDesignatedToolRetrievedEvent: {
3974
+ /**
3975
+ * @description discriminator enum property added by openapi-typescript
3976
+ * @enum {string}
3977
+ */
3978
+ type: "navigate-state-machine-tool-call-state-designated-tool-retrieved";
3979
+ /**
3980
+ * Tool Id
3981
+ * @description The ID of the tool being called.
3982
+ */
3983
+ tool_id: string;
3984
+ /**
3985
+ * Tool Version
3986
+ * @description The version of the tool being called.
3987
+ */
3988
+ tool_version: string;
3989
+ };
3990
+ /**
3991
+ * NavigateStateMachineToolCallStateToolOutputAvailableEvent
3992
+ * @description Indicating that the agent has received the tool output in the current tool call state.
3993
+ */
3994
+ NavigateStateMachineToolCallStateToolOutputAvailableEvent: {
3995
+ /**
3996
+ * @description discriminator enum property added by openapi-typescript
3997
+ * @enum {string}
3998
+ */
3999
+ type: "navigate-state-machine-tool-call-state-tool-output-available";
4000
+ /**
4001
+ * Tool Output
4002
+ * @description The tool output.
4003
+ */
4004
+ tool_output: string;
4005
+ /**
4006
+ * Duration
4007
+ * @description The duration taken to receive the tool output in seconds.
4008
+ */
4009
+ duration: number;
4010
+ };
4011
+ /**
4012
+ * NavigateStateMachineToolCallStateToolParamsGeneratedEvent
4013
+ * @description Indicating that the agent has generated the tool parameters in the current tool call state.
4014
+ */
4015
+ NavigateStateMachineToolCallStateToolParamsGeneratedEvent: {
4016
+ /**
4017
+ * @description discriminator enum property added by openapi-typescript
4018
+ * @enum {string}
4019
+ */
4020
+ type: "navigate-state-machine-tool-call-state-tool-params-generated";
4021
+ /**
4022
+ * Tool Params
4023
+ * @description The generated tool parameters.
4024
+ */
4025
+ tool_params: {
4026
+ [key: string]: unknown;
4027
+ };
4028
+ };
3969
4029
  /**
3970
4030
  * NewMessageEvent
3971
4031
  * @description Emitted when a new piece of the agent message is available.
@@ -5192,7 +5252,7 @@ export interface components {
5192
5252
  /** @description The user who created the unit test set run. */
5193
5253
  creator: components["schemas"]["amigo_lib__mongo__collections__simulation_unit_test_set_run__SimulationUnitTestSetRun__UserInfo"];
5194
5254
  };
5195
- State: components["schemas"]["ActionState-Output"] | components["schemas"]["DecisionState-Output"] | components["schemas"]["RecallState-Output"] | components["schemas"]["AnnotationState-Output"] | components["schemas"]["ReflectionState-Output"];
5255
+ 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
5256
  /** StateMachineInstance */
5197
5257
  StateMachineInstance: {
5198
5258
  /**
@@ -5248,7 +5308,7 @@ export interface components {
5248
5308
  */
5249
5309
  tool_call_round_index: number;
5250
5310
  };
5251
- StateTransitionLog: components["schemas"]["ActionStateTransitionLog"] | components["schemas"]["DecisionStateTransitionLog"] | components["schemas"]["RecallStateTransitionLog"] | components["schemas"]["JumpbackStateTransitionLog"] | components["schemas"]["AnnotationStateTransitionLog"] | components["schemas"]["ReflectionStateTransitionLog"];
5311
+ StateTransitionLog: components["schemas"]["ActionStateTransitionLog"] | components["schemas"]["DecisionStateTransitionLog"] | components["schemas"]["RecallStateTransitionLog"] | components["schemas"]["JumpbackStateTransitionLog"] | components["schemas"]["AnnotationStateTransitionLog"] | components["schemas"]["ReflectionStateTransitionLog"] | components["schemas"]["ToolCallStateTransitionLog"];
5252
5312
  "StrippedNonemptyString_A-Z______": string;
5253
5313
  StrippedNonemptyString_________: string;
5254
5314
  StrippedNonemptyString___w__s_____: string;
@@ -5462,6 +5522,141 @@ export interface components {
5462
5522
  [key: string]: unknown;
5463
5523
  };
5464
5524
  };
5525
+ /** ToolCallState */
5526
+ "ToolCallState-Input": {
5527
+ /**
5528
+ * @description discriminator enum property added by openapi-typescript
5529
+ * @enum {string}
5530
+ */
5531
+ type: "tool-call";
5532
+ name: components["schemas"]["StateOrRefName"];
5533
+ /** Next State */
5534
+ next_state: components["schemas"]["StateOrRefName"] | [
5535
+ components["schemas"]["ExternalStateName"],
5536
+ components["schemas"]["StateOrRefName"]
5537
+ ];
5538
+ designated_tool: components["schemas"]["ToolCallSpec-Input"];
5539
+ /** Designated Tool Call Params Generation Audio Fillers */
5540
+ designated_tool_call_params_generation_audio_fillers: components["schemas"]["StrippedNonemptyString_________"][];
5541
+ /** Designated Tool Call Params Generation Audio Filler Triggered After */
5542
+ designated_tool_call_params_generation_audio_filler_triggered_after: number;
5543
+ designated_tool_call_objective: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"];
5544
+ designated_tool_call_context: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"];
5545
+ /** Designated Tool Call Guidances */
5546
+ designated_tool_call_guidances: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"][];
5547
+ /** Designated Tool Call Validations */
5548
+ designated_tool_call_validations: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"][];
5549
+ /** Tool Call Specs */
5550
+ tool_call_specs: components["schemas"]["ToolCallSpec-Input"][];
5551
+ };
5552
+ /**
5553
+ * ToolCallState
5554
+ * @description A state that executes a tool call.
5555
+ */
5556
+ "ToolCallState-Output": {
5557
+ /**
5558
+ * @description discriminator enum property added by openapi-typescript
5559
+ * @enum {string}
5560
+ */
5561
+ type: "tool-call";
5562
+ /**
5563
+ * Name
5564
+ * @description The name of this state.
5565
+ */
5566
+ name: string;
5567
+ /**
5568
+ * Next State
5569
+ * @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
5570
+ * 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
5571
+ * in this contextual graph that the session will transition to after reaching the terminal state of the external graph.
5572
+ */
5573
+ next_state: string | [
5574
+ string,
5575
+ string
5576
+ ];
5577
+ /** @description The tool that the agent is to call in this state. */
5578
+ designated_tool: components["schemas"]["ToolCallSpec-Output"];
5579
+ /**
5580
+ * Designated Tool Call Params Generation Audio Fillers
5581
+ * @description A list of audio fillers to play in audio mode if the designated tool call's input generation is taking a long time.
5582
+ */
5583
+ designated_tool_call_params_generation_audio_fillers: string[];
5584
+ /**
5585
+ * Designated Tool Call Params Generation Audio Filler Triggered After
5586
+ * @description The number of seconds to wait after the designated tool call params generation starts before playing an audio filler.
5587
+ */
5588
+ designated_tool_call_params_generation_audio_filler_triggered_after: number;
5589
+ /**
5590
+ * Designated Tool Call Objective
5591
+ * @description The objective that the agent is to achieve when generating the input to the designated tool. High-level optimization goal defining what "ideal" means for this state. Frames the strategic
5592
+ * intent and success criteria, not the technical tool description. Focuses on user value and conversation progress.
5593
+ */
5594
+ designated_tool_call_objective: string;
5595
+ /**
5596
+ * Designated Tool Call Context
5597
+ * @description The context that the agent can use when generating the input to the designated tool. The minimal information gap this tool state closes within the conversation flow. Explains what's missing
5598
+ * upstream and how this tool execution bridges to downstream states. Should be brief and only included when the tool's purpose isn't self-evident from the topology.
5599
+ */
5600
+ designated_tool_call_context: string;
5601
+ /**
5602
+ * Designated Tool Call Guidances
5603
+ * @description The guidance that the agent must follow when generating the input to the designated tool. Best practices and proven patterns for constructing quality payloads. Practical tips and heuristics
5604
+ * to guide decisions. Suggestions, not strict requirements. Leave empty if tool schema and objective are self-explanatory.
5605
+ */
5606
+ designated_tool_call_guidances: string[];
5607
+ /**
5608
+ * Designated Tool Call Validations
5609
+ * @description A list of validations that the agent must ensure are satisfied when generating the input to the designated tool. Strict constraints that MUST be satisfied before payload handoff. Hard requirements
5610
+ * and invariants verified before execution. Pass/fail checks, not suggestions. Leave empty if only schema compliance is required.
5611
+ */
5612
+ designated_tool_call_validations: string[];
5613
+ /**
5614
+ * Tool Call Specs
5615
+ * @description A list of tool calls that the agent can make to help generating the input to the designated tool.
5616
+ */
5617
+ tool_call_specs: components["schemas"]["ToolCallSpec-Output"][];
5618
+ };
5619
+ /** ToolCallStateTransitionLog */
5620
+ ToolCallStateTransitionLog: {
5621
+ /**
5622
+ * Previous State
5623
+ * @description Name of the previous state to transition from.
5624
+ */
5625
+ previous_state: string;
5626
+ /**
5627
+ * Previous Service Hierarchical State Machine Version Info
5628
+ * @description The identifier of the service hierarchical state machine that the previous state is in.
5629
+ */
5630
+ previous_service_hierarchical_state_machine_version_info: [
5631
+ string,
5632
+ number
5633
+ ];
5634
+ /**
5635
+ * Next State
5636
+ * @description Name of the next state to transition to.
5637
+ */
5638
+ next_state: string;
5639
+ /**
5640
+ * Next Service Hierarchical State Machine Version Info
5641
+ * @description The identifier of the service hierarchical state machine that the next state is in.
5642
+ */
5643
+ next_service_hierarchical_state_machine_version_info: [
5644
+ string,
5645
+ number
5646
+ ];
5647
+ /**
5648
+ * @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)
5649
+ * @enum {string}
5650
+ */
5651
+ type: "tool-call";
5652
+ /**
5653
+ * Tool Call Logs
5654
+ * @description A list of tool call logs that were performed during this state, except for the tool call for the designated tool call.
5655
+ */
5656
+ tool_call_logs: components["schemas"]["ToolCallLog"][][];
5657
+ /** @description The tool call log for the designated tool call in this state. */
5658
+ designated_tool_call_log: components["schemas"]["ToolCallLog"];
5659
+ };
5465
5660
  /** ToolInstance */
5466
5661
  ToolInstance: {
5467
5662
  /**
@@ -7063,7 +7258,7 @@ export interface components {
7063
7258
  * States
7064
7259
  * @description The internal states in this service hierarchical state machine.
7065
7260
  */
7066
- states: (components["schemas"]["ActionState-Input"] | components["schemas"]["DecisionState-Input"] | components["schemas"]["RecallState-Input"] | components["schemas"]["AnnotationState-Input"] | components["schemas"]["ReflectionState-Input"])[];
7261
+ 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
7262
  /** @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
7263
  new_user_initial_state: components["schemas"]["StateOrRefName"];
7069
7264
  /** @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.45.0",
4
4
  "description": "Amigo TypeScript SDK",
5
5
  "publishConfig": {
6
6
  "access": "public"