amigo_sdk 0.48.0__py3-none-any.whl → 0.50.0__py3-none-any.whl

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.

Potentially problematic release.


This version of amigo_sdk might be problematic. Click here for more details.

amigo_sdk/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.48.0"
1
+ __version__ = "0.50.0"
2
2
  from .sdk_client import AmigoClient, AsyncAmigoClient
3
3
 
4
4
  __all__ = ["__version__", "AmigoClient", "AsyncAmigoClient"]
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: <stdin>
3
- # timestamp: 2025-10-14T21:10:21+00:00
3
+ # timestamp: 2025-10-18T22:15:01+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -11,20 +11,6 @@ from typing import Any, Dict, List, Literal, Optional, Union
11
11
  from pydantic import AnyUrl, AwareDatetime, BaseModel, EmailStr, Field, RootModel
12
12
 
13
13
 
14
- class ActionTooLongEvent(BaseModel):
15
- type: Literal['action-too-long'] = Field('action-too-long', title='Type')
16
- filler: str = Field(
17
- ...,
18
- description='An audio filler that can be played while waiting for the action to complete.',
19
- title='Filler',
20
- )
21
- previously_started_event: Any = Field(
22
- ...,
23
- description='The previously started event that is taking too long.',
24
- title='Previously Started Event',
25
- )
26
-
27
-
28
14
  class AnnotationStateInputNextState(RootModel[List]):
29
15
  root: List = Field(..., max_length=2, min_length=2, title='Next State')
30
16
 
@@ -8649,11 +8635,6 @@ class NewMessageEvent(BaseModel):
8649
8635
  description='Either the raw-text piece or a base-64 encoded string of bytes representing the piece in alternative forms. If it represents audio, the audios are in\nPCM16 format.',
8650
8636
  title='Message',
8651
8637
  )
8652
- message_metadata: List[str] = Field(
8653
- ...,
8654
- description='Metadata associated with this message.',
8655
- title='Message Metadata',
8656
- )
8657
8638
  transcript_alignment: Optional[List[NewMessageEventTranscriptAlignmentItem]] = (
8658
8639
  Field(
8659
8640
  ...,
@@ -11861,7 +11842,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
11861
11842
  [], description='The IDs of the messages to retrieve.', title='Id'
11862
11843
  )
11863
11844
  message_type: Optional[List[MessageType]] = Field(
11864
- ['user-message', 'agent-message', 'external-event'],
11845
+ ['agent-message', 'external-event', 'user-message'],
11865
11846
  description='The type of messages to retrieve.',
11866
11847
  title='Message Type',
11867
11848
  )
@@ -13223,61 +13204,6 @@ class APIKey(BaseModel):
13223
13204
  )
13224
13205
 
13225
13206
 
13226
- class ActionStateOutput(BaseModel):
13227
- type: Literal['action'] = Field(..., title='Type')
13228
- name: str = Field(..., description='The name of this state.', title='Name')
13229
- objective: str = Field(
13230
- ...,
13231
- description='The objective that the `Agent` works towards when in this state.',
13232
- title='Objective',
13233
- )
13234
- actions: List[str] = Field(
13235
- ...,
13236
- description='A list of specific actions that the `Agent` performs in this state.',
13237
- title='Actions',
13238
- )
13239
- intra_state_navigation_guidelines: List[str] = Field(
13240
- ...,
13241
- description='A list of guidelines for how the agent will navigate between subgoals and exit conditions within this state.',
13242
- title='Intra State Navigation Guidelines',
13243
- )
13244
- action_guidelines: List[str] = Field(
13245
- ...,
13246
- description='A list of guidelines for how the agent will behave when engaging with user.',
13247
- title='Action Guidelines',
13248
- )
13249
- boundary_constraints: List[str] = Field(
13250
- ...,
13251
- description='A list of guidelines for how the agent will not behave when engaging with user.',
13252
- title='Boundary Constraints',
13253
- )
13254
- exit_conditions: List[ExitConditionOutput] = Field(
13255
- ...,
13256
- description='A list of exit conditions for this state that describes under what condition would the session be allowed to transition to another state.',
13257
- title='Exit Conditions',
13258
- )
13259
- message_metadata: List[str] = Field(
13260
- ...,
13261
- description='A list of metadata to include in the agent message if the message is generated in this state.',
13262
- title='Message Metadata',
13263
- )
13264
- action_tool_call_specs: List[ToolCallSpecOutput] = Field(
13265
- ...,
13266
- description='A list of tool calls that the agent can make in this state when executing an action.',
13267
- title='Action Tool Call Specs',
13268
- )
13269
- exit_condition_tool_call_specs: List[ToolCallSpecOutput] = Field(
13270
- ...,
13271
- description='A list of tool calls that the agent can make in this state when evaluating exit conditions.',
13272
- title='Exit Condition Tool Call Specs',
13273
- )
13274
- skip_active_memory_retrieval: bool = Field(
13275
- ...,
13276
- description='If `True`, the agent will not perform active memory retrieval at the start of an interaction in this state.',
13277
- title='Skip Active Memory Retrieval',
13278
- )
13279
-
13280
-
13281
13207
  class ActionStateTransitionLog(BaseModel):
13282
13208
  previous_state: str = Field(
13283
13209
  ...,
@@ -13318,6 +13244,24 @@ class ActionStateTransitionLog(BaseModel):
13318
13244
  )
13319
13245
 
13320
13246
 
13247
+ class ActionTooLongEvent(BaseModel):
13248
+ type: Literal['action-too-long'] = Field('action-too-long', title='Type')
13249
+ filler: str = Field(
13250
+ ...,
13251
+ description='A filler that can be played while waiting for the action to complete. If the audio filler exists, this is monochannel, 16-bit PCM WAV audio (at sample rate 16kHz) encoded in base64 encoding.\nOtherwise, this is the text corresponding to the audio filler.',
13252
+ title='Filler',
13253
+ )
13254
+ previously_started_event: Union[
13255
+ ToolCallStartedEvent,
13256
+ NavigateStateMachineDecisionStateDecisionStartedEvent,
13257
+ NavigateStateMachineReflectionStatePromptRetrievedEvent,
13258
+ ] = Field(
13259
+ ...,
13260
+ description='The previously started event that is taking too long.',
13261
+ title='Previously Started Event',
13262
+ )
13263
+
13264
+
13321
13265
  class AnnotationStateInput(BaseModel):
13322
13266
  type: Literal['annotation'] = Field(..., title='Type')
13323
13267
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
@@ -13586,6 +13530,61 @@ class NumericalMetricSuccessCriterion(BaseModel):
13586
13530
  threshold: float = Field(..., title='Threshold')
13587
13531
 
13588
13532
 
13533
+ class OverrideActionState(BaseModel):
13534
+ type: Literal['action'] = Field(..., title='Type')
13535
+ name: str = Field(..., description='The name of this state.', title='Name')
13536
+ objective: str = Field(
13537
+ ...,
13538
+ description='The objective that the `Agent` works towards when in this state.',
13539
+ title='Objective',
13540
+ )
13541
+ actions: List[str] = Field(
13542
+ ...,
13543
+ description='A list of specific actions that the `Agent` performs in this state.',
13544
+ title='Actions',
13545
+ )
13546
+ intra_state_navigation_guidelines: List[str] = Field(
13547
+ ...,
13548
+ description='A list of guidelines for how the agent will navigate between subgoals and exit conditions within this state.',
13549
+ title='Intra State Navigation Guidelines',
13550
+ )
13551
+ action_guidelines: List[str] = Field(
13552
+ ...,
13553
+ description='A list of guidelines for how the agent will behave when engaging with user.',
13554
+ title='Action Guidelines',
13555
+ )
13556
+ boundary_constraints: List[str] = Field(
13557
+ ...,
13558
+ description='A list of guidelines for how the agent will not behave when engaging with user.',
13559
+ title='Boundary Constraints',
13560
+ )
13561
+ exit_conditions: List[ExitConditionOutput] = Field(
13562
+ ...,
13563
+ description='A list of exit conditions for this state that describes under what condition would the session be allowed to transition to another state.',
13564
+ title='Exit Conditions',
13565
+ )
13566
+ action_tool_call_specs: List[ToolCallSpecOutput] = Field(
13567
+ ...,
13568
+ description='A list of tool calls that the agent can make in this state when executing an action.',
13569
+ title='Action Tool Call Specs',
13570
+ )
13571
+ exit_condition_tool_call_specs: List[ToolCallSpecOutput] = Field(
13572
+ ...,
13573
+ description='A list of tool calls that the agent can make in this state when evaluating exit conditions.',
13574
+ title='Exit Condition Tool Call Specs',
13575
+ )
13576
+ skip_active_memory_retrieval: bool = Field(
13577
+ ...,
13578
+ description='If `True`, the agent will not perform active memory retrieval at the start of an interaction in this state.',
13579
+ title='Skip Active Memory Retrieval',
13580
+ )
13581
+ message_metadata: List[str] = Field(
13582
+ ...,
13583
+ description='Metadata associated with messages generated in this action state.',
13584
+ title='Message Metadata',
13585
+ )
13586
+
13587
+
13589
13588
  class PermissionGrantInput(BaseModel):
13590
13589
  action: PermissionGrantInputAction = Field(
13591
13590
  ...,
@@ -13760,6 +13759,77 @@ class RoleInstance(BaseModel):
13760
13759
  )
13761
13760
 
13762
13761
 
13762
+ class ServiceHierarchicalStateMachineInstance(BaseModel):
13763
+ id: str = Field(..., description='The ID of the state machine version.', title='Id')
13764
+ org_id: str = Field(
13765
+ ...,
13766
+ description='The ID of the organization of this state machine.',
13767
+ title='Org Id',
13768
+ )
13769
+ service_hierarchical_state_machine_id: str = Field(
13770
+ ...,
13771
+ description='The ID of the state machine that this document is a version for.',
13772
+ title='Service Hierarchical State Machine Id',
13773
+ )
13774
+ version: int = Field(
13775
+ ...,
13776
+ description='Numerical version ID that describes how many iterations of this state machine occurred before this version.',
13777
+ title='Version',
13778
+ )
13779
+ created_at: AwareDatetime = Field(
13780
+ ...,
13781
+ description='The time at which this version was created.',
13782
+ title='Created At',
13783
+ )
13784
+ description: str = Field(
13785
+ ..., description='A description of the state machine.', title='Description'
13786
+ )
13787
+ states: List[
13788
+ Union[
13789
+ DecisionStateOutput,
13790
+ AnnotationStateOutput,
13791
+ ReflectionStateOutput,
13792
+ RecallStateOutput,
13793
+ OverrideActionState,
13794
+ ]
13795
+ ] = Field(..., description='The states in this state machine.', title='States')
13796
+ new_user_initial_state: str = Field(
13797
+ ...,
13798
+ description='The state a new user will be in when a session starts. This must be an action state.',
13799
+ title='New User Initial State',
13800
+ )
13801
+ returning_user_initial_state: str = Field(
13802
+ ...,
13803
+ description='The state a returning user will be in when a session starts. This must be an action state.',
13804
+ title='Returning User Initial State',
13805
+ )
13806
+ terminal_state: str = Field(
13807
+ ...,
13808
+ description='The state the user will be in when the session ends. This must be an action state.',
13809
+ title='Terminal State',
13810
+ )
13811
+ references: Dict[str, List] = Field(
13812
+ ...,
13813
+ description="A dictionary of other service hierarchical state machine versions that this references to. This field is a map of the reference name to the machine's ID and its version number.",
13814
+ title='References',
13815
+ )
13816
+ global_intra_state_navigation_guidelines: List[str] = Field(
13817
+ ...,
13818
+ description='A list of guidelines for how the agent will navigate between subgoals and exit conditions within this state. This is injected into the `intra_state_navigation_guidelines` field of every action state.',
13819
+ title='Global Intra State Navigation Guidelines',
13820
+ )
13821
+ global_action_guidelines: List[str] = Field(
13822
+ ...,
13823
+ description='A list of guidelines for how the agent will behave when engaging with user. This is injected into the `action_guidelines` field of every action state.',
13824
+ title='Global Action Guidelines',
13825
+ )
13826
+ global_boundary_constraints: List[str] = Field(
13827
+ ...,
13828
+ description='A list of guidelines for how the agent will not behave when engaging with user. This is injected into the `boundary_constraints` field of every action state.',
13829
+ title='Global Boundary Constraints',
13830
+ )
13831
+
13832
+
13763
13833
  class SimulationConversationInvocationSource(BaseModel):
13764
13834
  type: Literal['simulation-conversation'] = Field(
13765
13835
  'simulation-conversation', title='Type'
@@ -14489,6 +14559,24 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14489
14559
  )
14490
14560
 
14491
14561
 
14562
+ class OrganizationGetServiceHierarchicalStateMachineVersionsResponse(BaseModel):
14563
+ state_machine_versions: List[ServiceHierarchicalStateMachineInstance] = Field(
14564
+ ...,
14565
+ description='The returned state machine versions.',
14566
+ title='State Machine Versions',
14567
+ )
14568
+ has_more: bool = Field(
14569
+ ...,
14570
+ description='Whether there are more state machine versions to retrieve.',
14571
+ title='Has More',
14572
+ )
14573
+ continuation_token: Optional[int] = Field(
14574
+ ...,
14575
+ description='A token to supply to the next request to retrieve the next page of state machine versions. Only populated if `has_more` is `True`.',
14576
+ title='Continuation Token',
14577
+ )
14578
+
14579
+
14492
14580
  class OrganizationModifyOrganizationRequestUserDimensions(
14493
14581
  RootModel[List[UserDimensionInput]]
14494
14582
  ):
@@ -14906,7 +14994,7 @@ class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
14906
14994
  )
14907
14995
 
14908
14996
 
14909
- class ActionStateInput(BaseModel):
14997
+ class ActionState(BaseModel):
14910
14998
  type: Literal['action'] = Field(..., title='Type')
14911
14999
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
14912
15000
  objective: str = Field(..., min_length=1)
@@ -14923,9 +15011,6 @@ class ActionStateInput(BaseModel):
14923
15011
  Field(..., title='Boundary Constraints')
14924
15012
  )
14925
15013
  exit_conditions: List[ExitConditionInput] = Field(..., title='Exit Conditions')
14926
- message_metadata: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14927
- ..., title='Message Metadata'
14928
- )
14929
15014
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
14930
15015
  ..., title='Action Tool Call Specs'
14931
15016
  )
@@ -15183,77 +15268,6 @@ class ReflectionStateInput(BaseModel):
15183
15268
  )
15184
15269
 
15185
15270
 
15186
- class ServiceHierarchicalStateMachineInstance(BaseModel):
15187
- id: str = Field(..., description='The ID of the state machine version.', title='Id')
15188
- org_id: str = Field(
15189
- ...,
15190
- description='The ID of the organization of this state machine.',
15191
- title='Org Id',
15192
- )
15193
- service_hierarchical_state_machine_id: str = Field(
15194
- ...,
15195
- description='The ID of the state machine that this document is a version for.',
15196
- title='Service Hierarchical State Machine Id',
15197
- )
15198
- version: int = Field(
15199
- ...,
15200
- description='Numerical version ID that describes how many iterations of this state machine occurred before this version.',
15201
- title='Version',
15202
- )
15203
- created_at: AwareDatetime = Field(
15204
- ...,
15205
- description='The time at which this version was created.',
15206
- title='Created At',
15207
- )
15208
- description: str = Field(
15209
- ..., description='A description of the state machine.', title='Description'
15210
- )
15211
- states: List[
15212
- Union[
15213
- ActionStateOutput,
15214
- DecisionStateOutput,
15215
- RecallStateOutput,
15216
- AnnotationStateOutput,
15217
- ReflectionStateOutput,
15218
- ]
15219
- ] = Field(..., description='The states in this state machine.', title='States')
15220
- new_user_initial_state: str = Field(
15221
- ...,
15222
- description='The state a new user will be in when a session starts. This must be an action state.',
15223
- title='New User Initial State',
15224
- )
15225
- returning_user_initial_state: str = Field(
15226
- ...,
15227
- description='The state a returning user will be in when a session starts. This must be an action state.',
15228
- title='Returning User Initial State',
15229
- )
15230
- terminal_state: str = Field(
15231
- ...,
15232
- description='The state the user will be in when the session ends. This must be an action state.',
15233
- title='Terminal State',
15234
- )
15235
- references: Dict[str, List] = Field(
15236
- ...,
15237
- description="A dictionary of other service hierarchical state machine versions that this references to. This field is a map of the reference name to the machine's ID and its version number.",
15238
- title='References',
15239
- )
15240
- global_intra_state_navigation_guidelines: List[str] = Field(
15241
- ...,
15242
- description='A list of guidelines for how the agent will navigate between subgoals and exit conditions within this state. This is injected into the `intra_state_navigation_guidelines` field of every action state.',
15243
- title='Global Intra State Navigation Guidelines',
15244
- )
15245
- global_action_guidelines: List[str] = Field(
15246
- ...,
15247
- description='A list of guidelines for how the agent will behave when engaging with user. This is injected into the `action_guidelines` field of every action state.',
15248
- title='Global Action Guidelines',
15249
- )
15250
- global_boundary_constraints: List[str] = Field(
15251
- ...,
15252
- description='A list of guidelines for how the agent will not behave when engaging with user. This is injected into the `boundary_constraints` field of every action state.',
15253
- title='Global Boundary Constraints',
15254
- )
15255
-
15256
-
15257
15271
  class ServiceInstance(BaseModel):
15258
15272
  id: str = Field(..., description='The identifier of the service.', title='Id')
15259
15273
  name: str = Field(..., description='The name of the service.', title='Name')
@@ -15513,7 +15527,7 @@ class OrganizationCreateServiceHierarchicalStateMachineVersionRequest(BaseModel)
15513
15527
  )
15514
15528
  states: List[
15515
15529
  Union[
15516
- ActionStateInput,
15530
+ ActionState,
15517
15531
  DecisionStateInput,
15518
15532
  RecallStateInput,
15519
15533
  AnnotationStateInput,
@@ -15583,24 +15597,6 @@ class OrganizationGetAgentVersionsResponse(BaseModel):
15583
15597
  )
15584
15598
 
15585
15599
 
15586
- class OrganizationGetServiceHierarchicalStateMachineVersionsResponse(BaseModel):
15587
- state_machine_versions: List[ServiceHierarchicalStateMachineInstance] = Field(
15588
- ...,
15589
- description='The returned state machine versions.',
15590
- title='State Machine Versions',
15591
- )
15592
- has_more: bool = Field(
15593
- ...,
15594
- description='Whether there are more state machine versions to retrieve.',
15595
- title='Has More',
15596
- )
15597
- continuation_token: Optional[int] = Field(
15598
- ...,
15599
- description='A token to supply to the next request to retrieve the next page of state machine versions. Only populated if `has_more` is `True`.',
15600
- title='Continuation Token',
15601
- )
15602
-
15603
-
15604
15600
  class ServiceGetServicesResponse(BaseModel):
15605
15601
  services: List[ServiceInstance] = Field(
15606
15602
  ..., description='The services that are found.', title='Services'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.48.0
3
+ Version: 0.50.0
4
4
  Summary: Amigo AI Python SDK
5
5
  Author: Amigo AI
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- amigo_sdk/__init__.py,sha256=-wHcUZHRj94f3MYihvirFAazV4WIdblcafK9UMYH4VI,139
1
+ amigo_sdk/__init__.py,sha256=vMx661ErxT4DZL0j_ZTMXOSsmFnAF06CIT0h8sa-Jow,139
2
2
  amigo_sdk/_retry_utils.py,sha256=kFjw9Wqye6MB5-B4rjLxsbSNcfYBIztcollIoncd1hY,2142
3
3
  amigo_sdk/auth.py,sha256=WaM9PcEcnaC6CzNsgRKueHkdSAxNbRylzpR_3Q6guQ0,1765
4
4
  amigo_sdk/config.py,sha256=0eZIo-hcJ8ODftKAr-mwB-FGJxGO5PT5T4dRpyWPqAg,1491
@@ -6,13 +6,13 @@ amigo_sdk/errors.py,sha256=RkRyF5eAASd8fIOS6YvL9rLDvLAYWqHfpHSCR7jqvl4,4840
6
6
  amigo_sdk/http_client.py,sha256=v25UoUbXcMeHTnfJMcrl8RSSwCVkKUL1Jv-0HoXP1B4,13507
7
7
  amigo_sdk/models.py,sha256=V-G6iL43_ZNOPDcatCJCSszGWGz-nzp_RSyGNm-rBAc,45
8
8
  amigo_sdk/sdk_client.py,sha256=Kr9M9o66pOLu0T2VDvqdYMmPZzgKJyTELu7BSPgGrYQ,6152
9
- amigo_sdk/generated/model.py,sha256=Fx--Jppwef9DuuicPAVGJsU__YKxj5Sgb8Yeq2cPBNk,438201
9
+ amigo_sdk/generated/model.py,sha256=CaGoghLHJJ2M6rU6LxxKuYTxwBEHFdIrZzUBwboKdmM,438226
10
10
  amigo_sdk/resources/conversation.py,sha256=5PkJOvLKqnriSS9K9hKw2VRPxRLTuABEbCyPy1fz1r0,14817
11
11
  amigo_sdk/resources/organization.py,sha256=yX4UlOHNegRzFW4gCJrCxjiLCAGnGegasjviR1yad_Q,1211
12
12
  amigo_sdk/resources/service.py,sha256=SiwEHXCQk4r1b_tGv47M08VuB7RALDHJQzWlpuD937g,1571
13
13
  amigo_sdk/resources/user.py,sha256=i4t5aVzBI37KwAtLKSDWTMwf4D4KQdSDoUiblFe1u7o,3529
14
- amigo_sdk-0.48.0.dist-info/METADATA,sha256=BkPfEMJ8_kNX77tD4mFYhzuGbzDFfz4DxYR7V2ZhtMQ,8350
15
- amigo_sdk-0.48.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- amigo_sdk-0.48.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.48.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.48.0.dist-info/RECORD,,
14
+ amigo_sdk-0.50.0.dist-info/METADATA,sha256=X6yMz17iKDLQvFbty-ZrjnlPKXFEc1LMe-MVQ9-ZH0E,8350
15
+ amigo_sdk-0.50.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ amigo_sdk-0.50.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.50.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.50.0.dist-info/RECORD,,