amigo_sdk 0.50.0__py3-none-any.whl → 0.51.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.50.0"
1
+ __version__ = "0.51.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-18T22:15:01+00:00
3
+ # timestamp: 2025-10-19T18:19:20+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -11842,7 +11842,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
11842
11842
  [], description='The IDs of the messages to retrieve.', title='Id'
11843
11843
  )
11844
11844
  message_type: Optional[List[MessageType]] = Field(
11845
- ['agent-message', 'external-event', 'user-message'],
11845
+ ['agent-message', 'user-message', 'external-event'],
11846
11846
  description='The type of messages to retrieve.',
11847
11847
  title='Message Type',
11848
11848
  )
@@ -13204,6 +13204,56 @@ class APIKey(BaseModel):
13204
13204
  )
13205
13205
 
13206
13206
 
13207
+ class ActionStateOutput(BaseModel):
13208
+ type: Literal['action'] = Field(..., title='Type')
13209
+ name: str = Field(..., description='The name of this state.', title='Name')
13210
+ objective: str = Field(
13211
+ ...,
13212
+ description='The objective that the `Agent` works towards when in this state.',
13213
+ title='Objective',
13214
+ )
13215
+ actions: List[str] = Field(
13216
+ ...,
13217
+ description='A list of specific actions that the `Agent` performs in this state.',
13218
+ title='Actions',
13219
+ )
13220
+ intra_state_navigation_guidelines: List[str] = Field(
13221
+ ...,
13222
+ description='A list of guidelines for how the agent will navigate between subgoals and exit conditions within this state.',
13223
+ title='Intra State Navigation Guidelines',
13224
+ )
13225
+ action_guidelines: List[str] = Field(
13226
+ ...,
13227
+ description='A list of guidelines for how the agent will behave when engaging with user.',
13228
+ title='Action Guidelines',
13229
+ )
13230
+ boundary_constraints: List[str] = Field(
13231
+ ...,
13232
+ description='A list of guidelines for how the agent will not behave when engaging with user.',
13233
+ title='Boundary Constraints',
13234
+ )
13235
+ exit_conditions: List[ExitConditionOutput] = Field(
13236
+ ...,
13237
+ description='A list of exit conditions for this state that describes under what condition would the session be allowed to transition to another state.',
13238
+ title='Exit Conditions',
13239
+ )
13240
+ action_tool_call_specs: List[ToolCallSpecOutput] = Field(
13241
+ ...,
13242
+ description='A list of tool calls that the agent can make in this state when executing an action.',
13243
+ title='Action Tool Call Specs',
13244
+ )
13245
+ exit_condition_tool_call_specs: List[ToolCallSpecOutput] = Field(
13246
+ ...,
13247
+ description='A list of tool calls that the agent can make in this state when evaluating exit conditions.',
13248
+ title='Exit Condition Tool Call Specs',
13249
+ )
13250
+ skip_active_memory_retrieval: bool = Field(
13251
+ ...,
13252
+ description='If `True`, the agent will not perform active memory retrieval at the start of an interaction in this state.',
13253
+ title='Skip Active Memory Retrieval',
13254
+ )
13255
+
13256
+
13207
13257
  class ActionStateTransitionLog(BaseModel):
13208
13258
  previous_state: str = Field(
13209
13259
  ...,
@@ -13517,11 +13567,6 @@ class MessageInstance(BaseModel):
13517
13567
  ..., description='The format in which the message was delivered.'
13518
13568
  )
13519
13569
  message_type: MessageType = Field(..., description='The type of the message.')
13520
- message_metadata: List[str] = Field(
13521
- ...,
13522
- description='The metadata associated with the message.',
13523
- title='Message Metadata',
13524
- )
13525
13570
 
13526
13571
 
13527
13572
  class NumericalMetricSuccessCriterion(BaseModel):
@@ -13530,61 +13575,6 @@ class NumericalMetricSuccessCriterion(BaseModel):
13530
13575
  threshold: float = Field(..., title='Threshold')
13531
13576
 
13532
13577
 
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
-
13588
13578
  class PermissionGrantInput(BaseModel):
13589
13579
  action: PermissionGrantInputAction = Field(
13590
13580
  ...,
@@ -13759,77 +13749,6 @@ class RoleInstance(BaseModel):
13759
13749
  )
13760
13750
 
13761
13751
 
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
-
13833
13752
  class SimulationConversationInvocationSource(BaseModel):
13834
13753
  type: Literal['simulation-conversation'] = Field(
13835
13754
  'simulation-conversation', title='Type'
@@ -14559,24 +14478,6 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14559
14478
  )
14560
14479
 
14561
14480
 
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
-
14580
14481
  class OrganizationModifyOrganizationRequestUserDimensions(
14581
14482
  RootModel[List[UserDimensionInput]]
14582
14483
  ):
@@ -14994,7 +14895,7 @@ class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
14994
14895
  )
14995
14896
 
14996
14897
 
14997
- class ActionState(BaseModel):
14898
+ class ActionStateInput(BaseModel):
14998
14899
  type: Literal['action'] = Field(..., title='Type')
14999
14900
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15000
14901
  objective: str = Field(..., min_length=1)
@@ -15268,6 +15169,77 @@ class ReflectionStateInput(BaseModel):
15268
15169
  )
15269
15170
 
15270
15171
 
15172
+ class ServiceHierarchicalStateMachineInstance(BaseModel):
15173
+ id: str = Field(..., description='The ID of the state machine version.', title='Id')
15174
+ org_id: str = Field(
15175
+ ...,
15176
+ description='The ID of the organization of this state machine.',
15177
+ title='Org Id',
15178
+ )
15179
+ service_hierarchical_state_machine_id: str = Field(
15180
+ ...,
15181
+ description='The ID of the state machine that this document is a version for.',
15182
+ title='Service Hierarchical State Machine Id',
15183
+ )
15184
+ version: int = Field(
15185
+ ...,
15186
+ description='Numerical version ID that describes how many iterations of this state machine occurred before this version.',
15187
+ title='Version',
15188
+ )
15189
+ created_at: AwareDatetime = Field(
15190
+ ...,
15191
+ description='The time at which this version was created.',
15192
+ title='Created At',
15193
+ )
15194
+ description: str = Field(
15195
+ ..., description='A description of the state machine.', title='Description'
15196
+ )
15197
+ states: List[
15198
+ Union[
15199
+ ActionStateOutput,
15200
+ DecisionStateOutput,
15201
+ RecallStateOutput,
15202
+ AnnotationStateOutput,
15203
+ ReflectionStateOutput,
15204
+ ]
15205
+ ] = Field(..., description='The states in this state machine.', title='States')
15206
+ new_user_initial_state: str = Field(
15207
+ ...,
15208
+ description='The state a new user will be in when a session starts. This must be an action state.',
15209
+ title='New User Initial State',
15210
+ )
15211
+ returning_user_initial_state: str = Field(
15212
+ ...,
15213
+ description='The state a returning user will be in when a session starts. This must be an action state.',
15214
+ title='Returning User Initial State',
15215
+ )
15216
+ terminal_state: str = Field(
15217
+ ...,
15218
+ description='The state the user will be in when the session ends. This must be an action state.',
15219
+ title='Terminal State',
15220
+ )
15221
+ references: Dict[str, List] = Field(
15222
+ ...,
15223
+ 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.",
15224
+ title='References',
15225
+ )
15226
+ global_intra_state_navigation_guidelines: List[str] = Field(
15227
+ ...,
15228
+ 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.',
15229
+ title='Global Intra State Navigation Guidelines',
15230
+ )
15231
+ global_action_guidelines: List[str] = Field(
15232
+ ...,
15233
+ 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.',
15234
+ title='Global Action Guidelines',
15235
+ )
15236
+ global_boundary_constraints: List[str] = Field(
15237
+ ...,
15238
+ 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.',
15239
+ title='Global Boundary Constraints',
15240
+ )
15241
+
15242
+
15271
15243
  class ServiceInstance(BaseModel):
15272
15244
  id: str = Field(..., description='The identifier of the service.', title='Id')
15273
15245
  name: str = Field(..., description='The name of the service.', title='Name')
@@ -15527,7 +15499,7 @@ class OrganizationCreateServiceHierarchicalStateMachineVersionRequest(BaseModel)
15527
15499
  )
15528
15500
  states: List[
15529
15501
  Union[
15530
- ActionState,
15502
+ ActionStateInput,
15531
15503
  DecisionStateInput,
15532
15504
  RecallStateInput,
15533
15505
  AnnotationStateInput,
@@ -15597,6 +15569,24 @@ class OrganizationGetAgentVersionsResponse(BaseModel):
15597
15569
  )
15598
15570
 
15599
15571
 
15572
+ class OrganizationGetServiceHierarchicalStateMachineVersionsResponse(BaseModel):
15573
+ state_machine_versions: List[ServiceHierarchicalStateMachineInstance] = Field(
15574
+ ...,
15575
+ description='The returned state machine versions.',
15576
+ title='State Machine Versions',
15577
+ )
15578
+ has_more: bool = Field(
15579
+ ...,
15580
+ description='Whether there are more state machine versions to retrieve.',
15581
+ title='Has More',
15582
+ )
15583
+ continuation_token: Optional[int] = Field(
15584
+ ...,
15585
+ 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`.',
15586
+ title='Continuation Token',
15587
+ )
15588
+
15589
+
15600
15590
  class ServiceGetServicesResponse(BaseModel):
15601
15591
  services: List[ServiceInstance] = Field(
15602
15592
  ..., 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.50.0
3
+ Version: 0.51.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=vMx661ErxT4DZL0j_ZTMXOSsmFnAF06CIT0h8sa-Jow,139
1
+ amigo_sdk/__init__.py,sha256=RUbzknETMOKpNmx5mOnyKUR0TljcTHyFVjKTVelkPOo,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=CaGoghLHJJ2M6rU6LxxKuYTxwBEHFdIrZzUBwboKdmM,438226
9
+ amigo_sdk/generated/model.py,sha256=ULyfdCV1EQMyG3es_A6pPrqTC10aqma-l7WgNdjIayQ,437890
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.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,,
14
+ amigo_sdk-0.51.0.dist-info/METADATA,sha256=1WnmrPSX6bOaeI3dajuhzBNOX_ybFSBmdkULzkAeHOY,8350
15
+ amigo_sdk-0.51.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ amigo_sdk-0.51.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.51.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.51.0.dist-info/RECORD,,