amigo_sdk 0.45.0__py3-none-any.whl → 0.47.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.45.0"
1
+ __version__ = "0.47.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-09T16:19:34+00:00
3
+ # timestamp: 2025-10-13T15:16:18+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -27,6 +27,7 @@ class AnnotationStateOutputNextState(RootModel[List]):
27
27
 
28
28
  class AnnotationStateOutput(BaseModel):
29
29
  type: Literal['annotation'] = Field(..., title='Type')
30
+ name: str = Field(..., description='The name of this state.', title='Name')
30
31
  inner_thought: str = Field(
31
32
  ...,
32
33
  description='The inner thought to add to the conversation.',
@@ -220,11 +221,6 @@ class DynamicBehaviorInvocation(BaseModel):
220
221
  )
221
222
 
222
223
 
223
- class EmitEventSideEffect(BaseModel):
224
- type: Literal['emit-event'] = Field(..., title='Type')
225
- event_name: str = Field(..., title='Event Name')
226
-
227
-
228
224
  class EndSessionEvent(BaseModel):
229
225
  type: Literal['end-session'] = Field('end-session', title='Type')
230
226
 
@@ -8779,6 +8775,7 @@ class RecallStateOutputNextState(RootModel[List]):
8779
8775
 
8780
8776
  class RecallStateOutput(BaseModel):
8781
8777
  type: Literal['recall'] = Field(..., title='Type')
8778
+ name: str = Field(..., description='The name of this state.', title='Name')
8782
8779
  queries: Optional[List[str]] = Field(
8783
8780
  ...,
8784
8781
  description='A list of queries to perform active memory extraction for. If this field is defined, `requested_information` must be `None`.',
@@ -8794,6 +8791,11 @@ class RecallStateOutput(BaseModel):
8794
8791
  description="The state to transition to after the active memory extraction is performed. If it's a string, the session will transition to a state within this contextual graph. If it's a tuple, the first element\nmust 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\nin this contextual graph that the session will transition to after reaching the terminal state of the external graph.",
8795
8792
  title='Next State',
8796
8793
  )
8794
+ audio_fillers: List[str] = Field(
8795
+ ...,
8796
+ description='A list of audio fillers to play in the audio mode if the memory retrieval is taking too long to process.',
8797
+ title='Audio Fillers',
8798
+ )
8797
8799
 
8798
8800
 
8799
8801
  class RecallStateTransitionLog(BaseModel):
@@ -8906,68 +8908,6 @@ class SelectDynamicBehaviorVectorGeneratedEvent(BaseModel):
8906
8908
  )
8907
8909
 
8908
8910
 
8909
- class SendEmailSideEffect(BaseModel):
8910
- type: Literal['send-email'] = Field(..., title='Type')
8911
- subject: str = Field(..., description='The subject of the email.', title='Subject')
8912
- body_template_text: str = Field(
8913
- ...,
8914
- description='The text of the Jinja2 template of the email body.',
8915
- title='Body Template Text',
8916
- )
8917
- recipients: List[str] = Field(
8918
- ...,
8919
- description='A list of email addresses to send the email to.',
8920
- title='Recipients',
8921
- )
8922
- sender: str = Field(
8923
- ...,
8924
- description='The email address of the sender. Must be an email address that ends with `@amigo.ai`',
8925
- title='Sender',
8926
- )
8927
-
8928
-
8929
- class SideEffectStateNextState(AnnotationStateInputNextState):
8930
- pass
8931
-
8932
-
8933
- class SideEffectState(BaseModel):
8934
- type: Literal['side-effect'] = Field(..., title='Type')
8935
- next_state: Union[str, SideEffectStateNextState] = Field(..., title='Next State')
8936
- side_effect: Union[SendEmailSideEffect, EmitEventSideEffect] = Field(
8937
- ..., discriminator='type'
8938
- )
8939
-
8940
-
8941
- class SideEffectStateTransitionLog(BaseModel):
8942
- previous_state: str = Field(
8943
- ...,
8944
- description='Name of the previous state to transition from.',
8945
- title='Previous State',
8946
- )
8947
- previous_service_hierarchical_state_machine_version_info: List = Field(
8948
- ...,
8949
- description='The identifier of the service hierarchical state machine that the previous state is in.',
8950
- max_length=2,
8951
- min_length=2,
8952
- title='Previous Service Hierarchical State Machine Version Info',
8953
- )
8954
- next_state: str = Field(
8955
- ..., description='Name of the next state to transition to.', title='Next State'
8956
- )
8957
- next_service_hierarchical_state_machine_version_info: List = Field(
8958
- ...,
8959
- description='The identifier of the service hierarchical state machine that the next state is in.',
8960
- max_length=2,
8961
- min_length=2,
8962
- title='Next Service Hierarchical State Machine Version Info',
8963
- )
8964
- type: Literal['side-effect'] = Field(
8965
- 'side-effect',
8966
- description="The type of the state transition log, which is the type of the state we're transitioning from.",
8967
- title='Type',
8968
- )
8969
-
8970
-
8971
8911
  class SimulationEvaluationSource(BaseModel):
8972
8912
  type: Literal['simulation'] = Field('simulation', title='Type')
8973
8913
  simulation_unit_test_set_run_id: str = Field(
@@ -9097,6 +9037,10 @@ class StateTransitionInvocationMetadata(BaseModel):
9097
9037
  )
9098
9038
 
9099
9039
 
9040
+ class StrippedNonemptyString(RootModel[str]):
9041
+ root: str = Field(..., max_length=512, min_length=1, pattern='^[^/]+$')
9042
+
9043
+
9100
9044
  class StrippedNonemptyStringWS(RootModel[str]):
9101
9045
  root: str = Field(..., min_length=1, pattern='^[\\w\\s]+$')
9102
9046
 
@@ -9177,6 +9121,11 @@ class ToolCallSpecOutput(BaseModel):
9177
9121
  description="Additional instruction to be supplied to the LLM in addition to the tool's description.",
9178
9122
  title='Additional Instruction',
9179
9123
  )
9124
+ audio_fillers: List[str] = Field(
9125
+ ...,
9126
+ description='A list of audio fillers to play in audio mode if the tool is taking a long time.',
9127
+ title='Audio Fillers',
9128
+ )
9180
9129
 
9181
9130
 
9182
9131
  class ToolCallStartedEvent(BaseModel):
@@ -9419,10 +9368,8 @@ class VersionComponent(RootModel[Union[int, str]]):
9419
9368
 
9420
9369
 
9421
9370
  class VoiceConfigInput(BaseModel):
9422
- voice_id: Optional[str] = Field(
9423
- '4rgS68aOYqDjxDQQVXXK',
9424
- description='The Elevenlabs voice ID for this agent.',
9425
- title='Voice Id',
9371
+ voice_id: str = Field(
9372
+ ..., description='The Elevenlabs voice ID for this agent.', title='Voice Id'
9426
9373
  )
9427
9374
  stability: Optional[float] = Field(0.35, ge=0.0, le=1.0, title='Stability')
9428
9375
  similarity_boost: Optional[float] = Field(
@@ -9432,10 +9379,8 @@ class VoiceConfigInput(BaseModel):
9432
9379
 
9433
9380
 
9434
9381
  class VoiceConfigOutput(BaseModel):
9435
- voice_id: Optional[str] = Field(
9436
- '4rgS68aOYqDjxDQQVXXK',
9437
- description='The Elevenlabs voice ID for this agent.',
9438
- title='Voice Id',
9382
+ voice_id: str = Field(
9383
+ ..., description='The Elevenlabs voice ID for this agent.', title='Voice Id'
9439
9384
  )
9440
9385
  stability: Optional[float] = Field(
9441
9386
  0.35,
@@ -11531,11 +11476,6 @@ class UserUpdateUserInfoRequest(BaseModel):
11531
11476
  description='A list of additional context to update. If `null`, the context is not modified.',
11532
11477
  title='Additional Context',
11533
11478
  )
11534
- enable_azure_devops_access: Optional[bool] = Field(
11535
- None,
11536
- description='Whether to enable Azure DevOps access for this user to enable tool development. If `null`, it is not modified.',
11537
- title='Enable Azure Devops Access',
11538
- )
11539
11479
 
11540
11480
 
11541
11481
  class WebhookDestinationCreateWebhookDestinationRequest(BaseModel):
@@ -11906,7 +11846,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
11906
11846
  [], description='The IDs of the messages to retrieve.', title='Id'
11907
11847
  )
11908
11848
  message_type: Optional[List[MessageType]] = Field(
11909
- ['external-event', 'agent-message', 'user-message'],
11849
+ ['agent-message', 'external-event', 'user-message'],
11910
11850
  description='The type of messages to retrieve.',
11911
11851
  title='Message Type',
11912
11852
  )
@@ -13270,6 +13210,7 @@ class APIKey(BaseModel):
13270
13210
 
13271
13211
  class ActionStateOutput(BaseModel):
13272
13212
  type: Literal['action'] = Field(..., title='Type')
13213
+ name: str = Field(..., description='The name of this state.', title='Name')
13273
13214
  objective: str = Field(
13274
13215
  ...,
13275
13216
  description='The objective that the `Agent` works towards when in this state.',
@@ -13364,6 +13305,7 @@ class ActionStateTransitionLog(BaseModel):
13364
13305
 
13365
13306
  class AnnotationStateInput(BaseModel):
13366
13307
  type: Literal['annotation'] = Field(..., title='Type')
13308
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
13367
13309
  inner_thought: str = Field(..., min_length=1)
13368
13310
  next_state: Union[StateOrRefName, AnnotationStateInputNextState] = Field(
13369
13311
  ..., title='Next State'
@@ -13386,6 +13328,7 @@ class CategoricalMetricValueInput(BaseModel):
13386
13328
 
13387
13329
  class DecisionStateOutput(BaseModel):
13388
13330
  type: Literal['decision'] = Field(..., title='Type')
13331
+ name: str = Field(..., description='The name of this state.', title='Name')
13389
13332
  exit_conditions: List[ExitConditionOutput] = Field(
13390
13333
  ...,
13391
13334
  description='A list of exit conditions for this state that describes under what condition would the session be allowed to transition to another state.',
@@ -13406,6 +13349,11 @@ class DecisionStateOutput(BaseModel):
13406
13349
  description='A list of tool calls that the agent can make in this state.',
13407
13350
  title='Tool Call Specs',
13408
13351
  )
13352
+ audio_fillers: List[str] = Field(
13353
+ ...,
13354
+ description='A list of audio fillers to play in the audio mode if the `select-next-state-for-decision-state` prompt is taking too long to process.',
13355
+ title='Audio Fillers',
13356
+ )
13409
13357
 
13410
13358
 
13411
13359
  class DecisionStateTransitionLog(BaseModel):
@@ -13663,6 +13611,7 @@ class PermissionGrantOutput(BaseModel):
13663
13611
 
13664
13612
  class RecallStateInput(BaseModel):
13665
13613
  type: Literal['recall'] = Field(..., title='Type')
13614
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
13666
13615
  queries: Optional[RecallStateInputQueries] = Field(..., title='Queries')
13667
13616
  requested_information: Optional[
13668
13617
  AmigoLibPydanticBaseModelStrippedNonemptyString1
@@ -13670,10 +13619,14 @@ class RecallStateInput(BaseModel):
13670
13619
  next_state: Union[StateOrRefName, RecallStateInputNextState] = Field(
13671
13620
  ..., title='Next State'
13672
13621
  )
13622
+ audio_fillers: List[StrippedNonemptyString] = Field(
13623
+ ..., max_length=5, title='Audio Fillers'
13624
+ )
13673
13625
 
13674
13626
 
13675
13627
  class ReflectionStateOutput(BaseModel):
13676
13628
  type: Literal['reflection'] = Field(..., title='Type')
13629
+ name: str = Field(..., description='The name of this state.', title='Name')
13677
13630
  problem: str = Field(
13678
13631
  ..., description='The problem to reflect upon.', title='Problem'
13679
13632
  )
@@ -13692,6 +13645,11 @@ class ReflectionStateOutput(BaseModel):
13692
13645
  description='A list of tool calls that the agent can make in this state.',
13693
13646
  title='Tool Call Specs',
13694
13647
  )
13648
+ audio_fillers: List[str] = Field(
13649
+ ...,
13650
+ description='A list of audio fillers to play in audio mode if the reflection is taking too long to be generated.',
13651
+ title='Audio Fillers',
13652
+ )
13695
13653
 
13696
13654
 
13697
13655
  class ReflectionStateTransitionLog(BaseModel):
@@ -13978,6 +13936,9 @@ class ToolCallSpecInput(BaseModel):
13978
13936
  description="Additional instruction to be supplied to the LLM in addition to the tool's description.",
13979
13937
  min_length=1,
13980
13938
  )
13939
+ audio_fillers: List[StrippedNonemptyString] = Field(
13940
+ ..., max_length=5, title='Audio Fillers'
13941
+ )
13981
13942
 
13982
13943
 
13983
13944
  class ToolVersionInstance(BaseModel):
@@ -14216,7 +14177,6 @@ class ConversationGetInteractionInsightsResponse(BaseModel):
14216
14177
  JumpbackStateTransitionLog,
14217
14178
  AnnotationStateTransitionLog,
14218
14179
  ReflectionStateTransitionLog,
14219
- SideEffectStateTransitionLog,
14220
14180
  ]
14221
14181
  ] = Field(
14222
14182
  ...,
@@ -14936,6 +14896,7 @@ class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
14936
14896
 
14937
14897
  class ActionStateInput(BaseModel):
14938
14898
  type: Literal['action'] = Field(..., title='Type')
14899
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
14939
14900
  objective: str = Field(..., min_length=1)
14940
14901
  actions: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14941
14902
  ..., min_length=1, title='Actions'
@@ -15047,12 +15008,16 @@ class CurrentAgentActionEvent(BaseModel):
15047
15008
 
15048
15009
  class DecisionStateInput(BaseModel):
15049
15010
  type: Literal['decision'] = Field(..., title='Type')
15011
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15050
15012
  exit_conditions: List[ExitConditionInput] = Field(..., title='Exit Conditions')
15051
15013
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15052
15014
  ..., title='Decision Guidelines'
15053
15015
  )
15054
15016
  objective: str = Field(..., min_length=1)
15055
15017
  tool_call_specs: List[ToolCallSpecInput] = Field(..., title='Tool Call Specs')
15018
+ audio_fillers: List[StrippedNonemptyString] = Field(
15019
+ ..., max_length=5, title='Audio Fillers'
15020
+ )
15056
15021
 
15057
15022
 
15058
15023
  class IdentityInput(BaseModel):
@@ -15191,12 +15156,16 @@ class MetricToEvaluate(BaseModel):
15191
15156
 
15192
15157
  class ReflectionStateInput(BaseModel):
15193
15158
  type: Literal['reflection'] = Field(..., title='Type')
15159
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15194
15160
  problem: str = Field(..., min_length=1)
15195
15161
  word_limit: int = Field(..., gt=0, title='Word Limit')
15196
15162
  next_state: Union[StateOrRefName, ReflectionStateInputNextState] = Field(
15197
15163
  ..., title='Next State'
15198
15164
  )
15199
15165
  tool_call_specs: List[ToolCallSpecInput] = Field(..., title='Tool Call Specs')
15166
+ audio_fillers: List[StrippedNonemptyString] = Field(
15167
+ ..., max_length=5, title='Audio Fillers'
15168
+ )
15200
15169
 
15201
15170
 
15202
15171
  class ServiceHierarchicalStateMachineInstance(BaseModel):
@@ -15224,16 +15193,14 @@ class ServiceHierarchicalStateMachineInstance(BaseModel):
15224
15193
  description: str = Field(
15225
15194
  ..., description='A description of the state machine.', title='Description'
15226
15195
  )
15227
- states: Dict[
15228
- str,
15196
+ states: List[
15229
15197
  Union[
15230
15198
  ActionStateOutput,
15231
15199
  DecisionStateOutput,
15232
15200
  RecallStateOutput,
15233
15201
  AnnotationStateOutput,
15234
15202
  ReflectionStateOutput,
15235
- SideEffectState,
15236
- ],
15203
+ ]
15237
15204
  ] = Field(..., description='The states in this state machine.', title='States')
15238
15205
  new_user_initial_state: str = Field(
15239
15206
  ...,
@@ -15529,15 +15496,14 @@ class OrganizationCreateServiceHierarchicalStateMachineVersionRequest(BaseModel)
15529
15496
  description='A description of the service hierarchical state machine.',
15530
15497
  min_length=1,
15531
15498
  )
15532
- states: Dict[
15533
- str,
15499
+ states: List[
15534
15500
  Union[
15535
15501
  ActionStateInput,
15536
15502
  DecisionStateInput,
15537
15503
  RecallStateInput,
15538
15504
  AnnotationStateInput,
15539
15505
  ReflectionStateInput,
15540
- ],
15506
+ ]
15541
15507
  ] = Field(
15542
15508
  ...,
15543
15509
  description='The internal states in this service hierarchical state machine.',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.45.0
3
+ Version: 0.47.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=sJTlq3POv-64inCjPnZFAvuewI4lD53H6HoS8DFORAA,139
1
+ amigo_sdk/__init__.py,sha256=UzRLaNdch8qezex3UeNpKF8BznXSGOAsbFWrp9oYeK4,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=mypT5GjanectJSXWn70DjsaORNOjAM5iLwVjiawihAU,438404
9
+ amigo_sdk/generated/model.py,sha256=E91DK4ne4GJcS0ukSW_CjO-RBtRMoS8Jec_Kz13IoTY,437688
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.45.0.dist-info/METADATA,sha256=jf0ZRLZGUJtXnM6S73WetGlauqS-uRkoNvxEf2AnA1Y,8350
15
- amigo_sdk-0.45.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- amigo_sdk-0.45.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.45.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.45.0.dist-info/RECORD,,
14
+ amigo_sdk-0.47.0.dist-info/METADATA,sha256=UdLWW_vqpaNpcSeiWTWzFvuaYQ20pAPSzKsXh37i950,8350
15
+ amigo_sdk-0.47.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ amigo_sdk-0.47.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.47.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.47.0.dist-info/RECORD,,