amigo_sdk 0.50.0__py3-none-any.whl → 0.52.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.52.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-24T15:33:40+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
+ ['user-message', 'external-event', 'agent-message'],
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'
@@ -14282,6 +14201,16 @@ class ConversationGetInteractionInsightsResponse(BaseModel):
14282
14201
  description='The ID and version number of the dynamic behavior set that was activated during this interaction.',
14283
14202
  title='Triggered Dynamic Behavior Set Version Info',
14284
14203
  )
14204
+ select_next_action_tool_call_logs: List[List[ToolCallLog]] = Field(
14205
+ ...,
14206
+ description='A list of tool call logs that were performed during the final `SelectNextAction` LLM call during this interaction where an action was selected.',
14207
+ title='Select Next Action Tool Call Logs',
14208
+ )
14209
+ engage_user_tool_call_logs: List[List[ToolCallLog]] = Field(
14210
+ ...,
14211
+ description='A list of tool call logs that were performed during the `EngageUser` LLM call during this interaction.',
14212
+ title='Engage User Tool Call Logs',
14213
+ )
14285
14214
 
14286
14215
 
14287
14216
  class DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersion(BaseModel):
@@ -14559,24 +14488,6 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14559
14488
  )
14560
14489
 
14561
14490
 
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
14491
  class OrganizationModifyOrganizationRequestUserDimensions(
14581
14492
  RootModel[List[UserDimensionInput]]
14582
14493
  ):
@@ -14994,7 +14905,7 @@ class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
14994
14905
  )
14995
14906
 
14996
14907
 
14997
- class ActionState(BaseModel):
14908
+ class ActionStateInput(BaseModel):
14998
14909
  type: Literal['action'] = Field(..., title='Type')
14999
14910
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15000
14911
  objective: str = Field(..., min_length=1)
@@ -15268,6 +15179,77 @@ class ReflectionStateInput(BaseModel):
15268
15179
  )
15269
15180
 
15270
15181
 
15182
+ class ServiceHierarchicalStateMachineInstance(BaseModel):
15183
+ id: str = Field(..., description='The ID of the state machine version.', title='Id')
15184
+ org_id: str = Field(
15185
+ ...,
15186
+ description='The ID of the organization of this state machine.',
15187
+ title='Org Id',
15188
+ )
15189
+ service_hierarchical_state_machine_id: str = Field(
15190
+ ...,
15191
+ description='The ID of the state machine that this document is a version for.',
15192
+ title='Service Hierarchical State Machine Id',
15193
+ )
15194
+ version: int = Field(
15195
+ ...,
15196
+ description='Numerical version ID that describes how many iterations of this state machine occurred before this version.',
15197
+ title='Version',
15198
+ )
15199
+ created_at: AwareDatetime = Field(
15200
+ ...,
15201
+ description='The time at which this version was created.',
15202
+ title='Created At',
15203
+ )
15204
+ description: str = Field(
15205
+ ..., description='A description of the state machine.', title='Description'
15206
+ )
15207
+ states: List[
15208
+ Union[
15209
+ ActionStateOutput,
15210
+ DecisionStateOutput,
15211
+ RecallStateOutput,
15212
+ AnnotationStateOutput,
15213
+ ReflectionStateOutput,
15214
+ ]
15215
+ ] = Field(..., description='The states in this state machine.', title='States')
15216
+ new_user_initial_state: str = Field(
15217
+ ...,
15218
+ description='The state a new user will be in when a session starts. This must be an action state.',
15219
+ title='New User Initial State',
15220
+ )
15221
+ returning_user_initial_state: str = Field(
15222
+ ...,
15223
+ description='The state a returning user will be in when a session starts. This must be an action state.',
15224
+ title='Returning User Initial State',
15225
+ )
15226
+ terminal_state: str = Field(
15227
+ ...,
15228
+ description='The state the user will be in when the session ends. This must be an action state.',
15229
+ title='Terminal State',
15230
+ )
15231
+ references: Dict[str, List] = Field(
15232
+ ...,
15233
+ 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.",
15234
+ title='References',
15235
+ )
15236
+ global_intra_state_navigation_guidelines: List[str] = Field(
15237
+ ...,
15238
+ 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.',
15239
+ title='Global Intra State Navigation Guidelines',
15240
+ )
15241
+ global_action_guidelines: List[str] = Field(
15242
+ ...,
15243
+ 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.',
15244
+ title='Global Action Guidelines',
15245
+ )
15246
+ global_boundary_constraints: List[str] = Field(
15247
+ ...,
15248
+ 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.',
15249
+ title='Global Boundary Constraints',
15250
+ )
15251
+
15252
+
15271
15253
  class ServiceInstance(BaseModel):
15272
15254
  id: str = Field(..., description='The identifier of the service.', title='Id')
15273
15255
  name: str = Field(..., description='The name of the service.', title='Name')
@@ -15527,7 +15509,7 @@ class OrganizationCreateServiceHierarchicalStateMachineVersionRequest(BaseModel)
15527
15509
  )
15528
15510
  states: List[
15529
15511
  Union[
15530
- ActionState,
15512
+ ActionStateInput,
15531
15513
  DecisionStateInput,
15532
15514
  RecallStateInput,
15533
15515
  AnnotationStateInput,
@@ -15597,6 +15579,24 @@ class OrganizationGetAgentVersionsResponse(BaseModel):
15597
15579
  )
15598
15580
 
15599
15581
 
15582
+ class OrganizationGetServiceHierarchicalStateMachineVersionsResponse(BaseModel):
15583
+ state_machine_versions: List[ServiceHierarchicalStateMachineInstance] = Field(
15584
+ ...,
15585
+ description='The returned state machine versions.',
15586
+ title='State Machine Versions',
15587
+ )
15588
+ has_more: bool = Field(
15589
+ ...,
15590
+ description='Whether there are more state machine versions to retrieve.',
15591
+ title='Has More',
15592
+ )
15593
+ continuation_token: Optional[int] = Field(
15594
+ ...,
15595
+ 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`.',
15596
+ title='Continuation Token',
15597
+ )
15598
+
15599
+
15600
15600
  class ServiceGetServicesResponse(BaseModel):
15601
15601
  services: List[ServiceInstance] = Field(
15602
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.50.0
3
+ Version: 0.52.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=8IxK7MT56E1YHulC2M9fDgB1DS3u8DnV7azNRFAUTPg,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=s0401eJ2-BMjhOqzPLa-NZyzj-2FPQYkOfr_NTL5ax0,438453
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.52.0.dist-info/METADATA,sha256=5EFXnlSqIpLyM5yuiO6Ls5hvGcZ7Q2LQXa6Bp6t2bGA,8350
15
+ amigo_sdk-0.52.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ amigo_sdk-0.52.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.52.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.52.0.dist-info/RECORD,,