amigo_sdk 0.49.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.49.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:27:45+00:00
3
+ # timestamp: 2025-10-18T22:15:01+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -8635,11 +8635,6 @@ class NewMessageEvent(BaseModel):
8635
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.',
8636
8636
  title='Message',
8637
8637
  )
8638
- message_metadata: List[str] = Field(
8639
- ...,
8640
- description='Metadata associated with this message.',
8641
- title='Message Metadata',
8642
- )
8643
8638
  transcript_alignment: Optional[List[NewMessageEventTranscriptAlignmentItem]] = (
8644
8639
  Field(
8645
8640
  ...,
@@ -11847,7 +11842,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
11847
11842
  [], description='The IDs of the messages to retrieve.', title='Id'
11848
11843
  )
11849
11844
  message_type: Optional[List[MessageType]] = Field(
11850
- ['agent-message', 'user-message', 'external-event'],
11845
+ ['agent-message', 'external-event', 'user-message'],
11851
11846
  description='The type of messages to retrieve.',
11852
11847
  title='Message Type',
11853
11848
  )
@@ -13209,61 +13204,6 @@ class APIKey(BaseModel):
13209
13204
  )
13210
13205
 
13211
13206
 
13212
- class ActionStateOutput(BaseModel):
13213
- type: Literal['action'] = Field(..., title='Type')
13214
- name: str = Field(..., description='The name of this state.', title='Name')
13215
- objective: str = Field(
13216
- ...,
13217
- description='The objective that the `Agent` works towards when in this state.',
13218
- title='Objective',
13219
- )
13220
- actions: List[str] = Field(
13221
- ...,
13222
- description='A list of specific actions that the `Agent` performs in this state.',
13223
- title='Actions',
13224
- )
13225
- intra_state_navigation_guidelines: List[str] = Field(
13226
- ...,
13227
- description='A list of guidelines for how the agent will navigate between subgoals and exit conditions within this state.',
13228
- title='Intra State Navigation Guidelines',
13229
- )
13230
- action_guidelines: List[str] = Field(
13231
- ...,
13232
- description='A list of guidelines for how the agent will behave when engaging with user.',
13233
- title='Action Guidelines',
13234
- )
13235
- boundary_constraints: List[str] = Field(
13236
- ...,
13237
- description='A list of guidelines for how the agent will not behave when engaging with user.',
13238
- title='Boundary Constraints',
13239
- )
13240
- exit_conditions: List[ExitConditionOutput] = Field(
13241
- ...,
13242
- description='A list of exit conditions for this state that describes under what condition would the session be allowed to transition to another state.',
13243
- title='Exit Conditions',
13244
- )
13245
- message_metadata: List[str] = Field(
13246
- ...,
13247
- description='A list of metadata to include in the agent message if the message is generated in this state.',
13248
- title='Message Metadata',
13249
- )
13250
- action_tool_call_specs: List[ToolCallSpecOutput] = Field(
13251
- ...,
13252
- description='A list of tool calls that the agent can make in this state when executing an action.',
13253
- title='Action Tool Call Specs',
13254
- )
13255
- exit_condition_tool_call_specs: List[ToolCallSpecOutput] = Field(
13256
- ...,
13257
- description='A list of tool calls that the agent can make in this state when evaluating exit conditions.',
13258
- title='Exit Condition Tool Call Specs',
13259
- )
13260
- skip_active_memory_retrieval: bool = Field(
13261
- ...,
13262
- description='If `True`, the agent will not perform active memory retrieval at the start of an interaction in this state.',
13263
- title='Skip Active Memory Retrieval',
13264
- )
13265
-
13266
-
13267
13207
  class ActionStateTransitionLog(BaseModel):
13268
13208
  previous_state: str = Field(
13269
13209
  ...,
@@ -13590,6 +13530,61 @@ class NumericalMetricSuccessCriterion(BaseModel):
13590
13530
  threshold: float = Field(..., title='Threshold')
13591
13531
 
13592
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
+
13593
13588
  class PermissionGrantInput(BaseModel):
13594
13589
  action: PermissionGrantInputAction = Field(
13595
13590
  ...,
@@ -13764,6 +13759,77 @@ class RoleInstance(BaseModel):
13764
13759
  )
13765
13760
 
13766
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
+
13767
13833
  class SimulationConversationInvocationSource(BaseModel):
13768
13834
  type: Literal['simulation-conversation'] = Field(
13769
13835
  'simulation-conversation', title='Type'
@@ -14493,6 +14559,24 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14493
14559
  )
14494
14560
 
14495
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
+
14496
14580
  class OrganizationModifyOrganizationRequestUserDimensions(
14497
14581
  RootModel[List[UserDimensionInput]]
14498
14582
  ):
@@ -14910,7 +14994,7 @@ class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
14910
14994
  )
14911
14995
 
14912
14996
 
14913
- class ActionStateInput(BaseModel):
14997
+ class ActionState(BaseModel):
14914
14998
  type: Literal['action'] = Field(..., title='Type')
14915
14999
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
14916
15000
  objective: str = Field(..., min_length=1)
@@ -14927,9 +15011,6 @@ class ActionStateInput(BaseModel):
14927
15011
  Field(..., title='Boundary Constraints')
14928
15012
  )
14929
15013
  exit_conditions: List[ExitConditionInput] = Field(..., title='Exit Conditions')
14930
- message_metadata: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14931
- ..., title='Message Metadata'
14932
- )
14933
15014
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
14934
15015
  ..., title='Action Tool Call Specs'
14935
15016
  )
@@ -15187,77 +15268,6 @@ class ReflectionStateInput(BaseModel):
15187
15268
  )
15188
15269
 
15189
15270
 
15190
- class ServiceHierarchicalStateMachineInstance(BaseModel):
15191
- id: str = Field(..., description='The ID of the state machine version.', title='Id')
15192
- org_id: str = Field(
15193
- ...,
15194
- description='The ID of the organization of this state machine.',
15195
- title='Org Id',
15196
- )
15197
- service_hierarchical_state_machine_id: str = Field(
15198
- ...,
15199
- description='The ID of the state machine that this document is a version for.',
15200
- title='Service Hierarchical State Machine Id',
15201
- )
15202
- version: int = Field(
15203
- ...,
15204
- description='Numerical version ID that describes how many iterations of this state machine occurred before this version.',
15205
- title='Version',
15206
- )
15207
- created_at: AwareDatetime = Field(
15208
- ...,
15209
- description='The time at which this version was created.',
15210
- title='Created At',
15211
- )
15212
- description: str = Field(
15213
- ..., description='A description of the state machine.', title='Description'
15214
- )
15215
- states: List[
15216
- Union[
15217
- ActionStateOutput,
15218
- DecisionStateOutput,
15219
- RecallStateOutput,
15220
- AnnotationStateOutput,
15221
- ReflectionStateOutput,
15222
- ]
15223
- ] = Field(..., description='The states in this state machine.', title='States')
15224
- new_user_initial_state: str = Field(
15225
- ...,
15226
- description='The state a new user will be in when a session starts. This must be an action state.',
15227
- title='New User Initial State',
15228
- )
15229
- returning_user_initial_state: str = Field(
15230
- ...,
15231
- description='The state a returning user will be in when a session starts. This must be an action state.',
15232
- title='Returning User Initial State',
15233
- )
15234
- terminal_state: str = Field(
15235
- ...,
15236
- description='The state the user will be in when the session ends. This must be an action state.',
15237
- title='Terminal State',
15238
- )
15239
- references: Dict[str, List] = Field(
15240
- ...,
15241
- 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.",
15242
- title='References',
15243
- )
15244
- global_intra_state_navigation_guidelines: List[str] = Field(
15245
- ...,
15246
- 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.',
15247
- title='Global Intra State Navigation Guidelines',
15248
- )
15249
- global_action_guidelines: List[str] = Field(
15250
- ...,
15251
- 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.',
15252
- title='Global Action Guidelines',
15253
- )
15254
- global_boundary_constraints: List[str] = Field(
15255
- ...,
15256
- 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.',
15257
- title='Global Boundary Constraints',
15258
- )
15259
-
15260
-
15261
15271
  class ServiceInstance(BaseModel):
15262
15272
  id: str = Field(..., description='The identifier of the service.', title='Id')
15263
15273
  name: str = Field(..., description='The name of the service.', title='Name')
@@ -15517,7 +15527,7 @@ class OrganizationCreateServiceHierarchicalStateMachineVersionRequest(BaseModel)
15517
15527
  )
15518
15528
  states: List[
15519
15529
  Union[
15520
- ActionStateInput,
15530
+ ActionState,
15521
15531
  DecisionStateInput,
15522
15532
  RecallStateInput,
15523
15533
  AnnotationStateInput,
@@ -15587,24 +15597,6 @@ class OrganizationGetAgentVersionsResponse(BaseModel):
15587
15597
  )
15588
15598
 
15589
15599
 
15590
- class OrganizationGetServiceHierarchicalStateMachineVersionsResponse(BaseModel):
15591
- state_machine_versions: List[ServiceHierarchicalStateMachineInstance] = Field(
15592
- ...,
15593
- description='The returned state machine versions.',
15594
- title='State Machine Versions',
15595
- )
15596
- has_more: bool = Field(
15597
- ...,
15598
- description='Whether there are more state machine versions to retrieve.',
15599
- title='Has More',
15600
- )
15601
- continuation_token: Optional[int] = Field(
15602
- ...,
15603
- 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`.',
15604
- title='Continuation Token',
15605
- )
15606
-
15607
-
15608
15600
  class ServiceGetServicesResponse(BaseModel):
15609
15601
  services: List[ServiceInstance] = Field(
15610
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.49.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=yOzWGx5fWveVFKT2HTWqgK5XXtcjIuq9PdYl-oeRgRk,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=sAXrdPLdlmWRcSigSy6AzvJho_zxgU6l36CQqs1y5kE,438546
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.49.0.dist-info/METADATA,sha256=0Yo2sYotmmQKD1pkHOyZ2mtS6vbHJtrh-5qVi4T_Y3k,8350
15
- amigo_sdk-0.49.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- amigo_sdk-0.49.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.49.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.49.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,,