amigo_sdk 0.46.0__py3-none-any.whl → 0.48.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.46.0"
1
+ __version__ = "0.48.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-10T20:53:11+00:00
3
+ # timestamp: 2025-10-14T21:10:21+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -11,6 +11,20 @@ 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
+
14
28
  class AnnotationStateInputNextState(RootModel[List]):
15
29
  root: List = Field(..., max_length=2, min_length=2, title='Next State')
16
30
 
@@ -27,6 +41,7 @@ class AnnotationStateOutputNextState(RootModel[List]):
27
41
 
28
42
  class AnnotationStateOutput(BaseModel):
29
43
  type: Literal['annotation'] = Field(..., title='Type')
44
+ name: str = Field(..., description='The name of this state.', title='Name')
30
45
  inner_thought: str = Field(
31
46
  ...,
32
47
  description='The inner thought to add to the conversation.',
@@ -8488,6 +8503,12 @@ class NavigateStateMachineAnnotationStateAnnotationRetrievedEvent(BaseModel):
8488
8503
  annotation: str = Field(..., title='Annotation')
8489
8504
 
8490
8505
 
8506
+ class NavigateStateMachineDecisionStateDecisionStartedEvent(BaseModel):
8507
+ type: Literal['navigate-state-machine-decision-state-decision-started'] = Field(
8508
+ 'navigate-state-machine-decision-state-decision-started', title='Type'
8509
+ )
8510
+
8511
+
8491
8512
  class NavigateStateMachineDynamicBehaviorOverrideEvent(BaseModel):
8492
8513
  type: Literal['navigate-state-machine-dynamic-behavior-override'] = Field(
8493
8514
  'navigate-state-machine-dynamic-behavior-override', title='Type'
@@ -8774,6 +8795,7 @@ class RecallStateOutputNextState(RootModel[List]):
8774
8795
 
8775
8796
  class RecallStateOutput(BaseModel):
8776
8797
  type: Literal['recall'] = Field(..., title='Type')
8798
+ name: str = Field(..., description='The name of this state.', title='Name')
8777
8799
  queries: Optional[List[str]] = Field(
8778
8800
  ...,
8779
8801
  description='A list of queries to perform active memory extraction for. If this field is defined, `requested_information` must be `None`.',
@@ -9030,6 +9052,10 @@ class StateTransitionInvocationMetadata(BaseModel):
9030
9052
  )
9031
9053
 
9032
9054
 
9055
+ class StrippedNonemptyString(RootModel[str]):
9056
+ root: str = Field(..., max_length=512, min_length=1, pattern='^[^/]+$')
9057
+
9058
+
9033
9059
  class StrippedNonemptyStringWS(RootModel[str]):
9034
9060
  root: str = Field(..., min_length=1, pattern='^[\\w\\s]+$')
9035
9061
 
@@ -9110,6 +9136,11 @@ class ToolCallSpecOutput(BaseModel):
9110
9136
  description="Additional instruction to be supplied to the LLM in addition to the tool's description.",
9111
9137
  title='Additional Instruction',
9112
9138
  )
9139
+ audio_fillers: List[str] = Field(
9140
+ ...,
9141
+ description='A list of audio fillers to play in audio mode if the tool is taking a long time.',
9142
+ title='Audio Fillers',
9143
+ )
9113
9144
 
9114
9145
 
9115
9146
  class ToolCallStartedEvent(BaseModel):
@@ -11460,11 +11491,6 @@ class UserUpdateUserInfoRequest(BaseModel):
11460
11491
  description='A list of additional context to update. If `null`, the context is not modified.',
11461
11492
  title='Additional Context',
11462
11493
  )
11463
- enable_azure_devops_access: Optional[bool] = Field(
11464
- None,
11465
- description='Whether to enable Azure DevOps access for this user to enable tool development. If `null`, it is not modified.',
11466
- title='Enable Azure Devops Access',
11467
- )
11468
11494
 
11469
11495
 
11470
11496
  class WebhookDestinationCreateWebhookDestinationRequest(BaseModel):
@@ -11835,7 +11861,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
11835
11861
  [], description='The IDs of the messages to retrieve.', title='Id'
11836
11862
  )
11837
11863
  message_type: Optional[List[MessageType]] = Field(
11838
- ['agent-message', 'external-event', 'user-message'],
11864
+ ['user-message', 'agent-message', 'external-event'],
11839
11865
  description='The type of messages to retrieve.',
11840
11866
  title='Message Type',
11841
11867
  )
@@ -13199,6 +13225,7 @@ class APIKey(BaseModel):
13199
13225
 
13200
13226
  class ActionStateOutput(BaseModel):
13201
13227
  type: Literal['action'] = Field(..., title='Type')
13228
+ name: str = Field(..., description='The name of this state.', title='Name')
13202
13229
  objective: str = Field(
13203
13230
  ...,
13204
13231
  description='The objective that the `Agent` works towards when in this state.',
@@ -13293,6 +13320,7 @@ class ActionStateTransitionLog(BaseModel):
13293
13320
 
13294
13321
  class AnnotationStateInput(BaseModel):
13295
13322
  type: Literal['annotation'] = Field(..., title='Type')
13323
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
13296
13324
  inner_thought: str = Field(..., min_length=1)
13297
13325
  next_state: Union[StateOrRefName, AnnotationStateInputNextState] = Field(
13298
13326
  ..., title='Next State'
@@ -13315,6 +13343,7 @@ class CategoricalMetricValueInput(BaseModel):
13315
13343
 
13316
13344
  class DecisionStateOutput(BaseModel):
13317
13345
  type: Literal['decision'] = Field(..., title='Type')
13346
+ name: str = Field(..., description='The name of this state.', title='Name')
13318
13347
  exit_conditions: List[ExitConditionOutput] = Field(
13319
13348
  ...,
13320
13349
  description='A list of exit conditions for this state that describes under what condition would the session be allowed to transition to another state.',
@@ -13335,6 +13364,11 @@ class DecisionStateOutput(BaseModel):
13335
13364
  description='A list of tool calls that the agent can make in this state.',
13336
13365
  title='Tool Call Specs',
13337
13366
  )
13367
+ audio_fillers: List[str] = Field(
13368
+ ...,
13369
+ 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.',
13370
+ title='Audio Fillers',
13371
+ )
13338
13372
 
13339
13373
 
13340
13374
  class DecisionStateTransitionLog(BaseModel):
@@ -13592,6 +13626,7 @@ class PermissionGrantOutput(BaseModel):
13592
13626
 
13593
13627
  class RecallStateInput(BaseModel):
13594
13628
  type: Literal['recall'] = Field(..., title='Type')
13629
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
13595
13630
  queries: Optional[RecallStateInputQueries] = Field(..., title='Queries')
13596
13631
  requested_information: Optional[
13597
13632
  AmigoLibPydanticBaseModelStrippedNonemptyString1
@@ -13603,6 +13638,7 @@ class RecallStateInput(BaseModel):
13603
13638
 
13604
13639
  class ReflectionStateOutput(BaseModel):
13605
13640
  type: Literal['reflection'] = Field(..., title='Type')
13641
+ name: str = Field(..., description='The name of this state.', title='Name')
13606
13642
  problem: str = Field(
13607
13643
  ..., description='The problem to reflect upon.', title='Problem'
13608
13644
  )
@@ -13621,6 +13657,11 @@ class ReflectionStateOutput(BaseModel):
13621
13657
  description='A list of tool calls that the agent can make in this state.',
13622
13658
  title='Tool Call Specs',
13623
13659
  )
13660
+ audio_fillers: List[str] = Field(
13661
+ ...,
13662
+ description='A list of audio fillers to play in audio mode if the reflection is taking too long to be generated.',
13663
+ title='Audio Fillers',
13664
+ )
13624
13665
 
13625
13666
 
13626
13667
  class ReflectionStateTransitionLog(BaseModel):
@@ -13907,6 +13948,9 @@ class ToolCallSpecInput(BaseModel):
13907
13948
  description="Additional instruction to be supplied to the LLM in addition to the tool's description.",
13908
13949
  min_length=1,
13909
13950
  )
13951
+ audio_fillers: List[StrippedNonemptyString] = Field(
13952
+ ..., max_length=5, title='Audio Fillers'
13953
+ )
13910
13954
 
13911
13955
 
13912
13956
  class ToolVersionInstance(BaseModel):
@@ -14864,6 +14908,7 @@ class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
14864
14908
 
14865
14909
  class ActionStateInput(BaseModel):
14866
14910
  type: Literal['action'] = Field(..., title='Type')
14911
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
14867
14912
  objective: str = Field(..., min_length=1)
14868
14913
  actions: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14869
14914
  ..., min_length=1, title='Actions'
@@ -14953,6 +14998,7 @@ class CurrentAgentActionEvent(BaseModel):
14953
14998
  Union[
14954
14999
  NavigateStateMachineDynamicBehaviorOverrideEvent,
14955
15000
  NavigateStateMachineActionStateActionSelectedEvent,
15001
+ NavigateStateMachineDecisionStateDecisionStartedEvent,
14956
15002
  NavigateStateMachineExitConditionSelectedEvent,
14957
15003
  NavigateStateMachineRecallStateDynamicQueriesGeneratedEvent,
14958
15004
  NavigateStateMachineRecallStateStaticQueriesRetrievedEvent,
@@ -14963,24 +15009,30 @@ class CurrentAgentActionEvent(BaseModel):
14963
15009
  NavigateStateMachineStateTransitionedEvent,
14964
15010
  ToolCallStartedEvent,
14965
15011
  ToolCallEndedEvent,
15012
+ ActionTooLongEvent,
14966
15013
  ],
14967
15014
  Union[
14968
15015
  EngageUserDynamicBehaviorOverrideEvent,
14969
15016
  EngageUserMessageFragmentGeneratedEvent,
14970
15017
  ToolCallStartedEvent,
14971
15018
  ToolCallEndedEvent,
15019
+ ActionTooLongEvent,
14972
15020
  ],
14973
15021
  ] = Field(..., description='The type of action the agent is performing right now.')
14974
15022
 
14975
15023
 
14976
15024
  class DecisionStateInput(BaseModel):
14977
15025
  type: Literal['decision'] = Field(..., title='Type')
15026
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
14978
15027
  exit_conditions: List[ExitConditionInput] = Field(..., title='Exit Conditions')
14979
15028
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14980
15029
  ..., title='Decision Guidelines'
14981
15030
  )
14982
15031
  objective: str = Field(..., min_length=1)
14983
15032
  tool_call_specs: List[ToolCallSpecInput] = Field(..., title='Tool Call Specs')
15033
+ audio_fillers: List[StrippedNonemptyString] = Field(
15034
+ ..., max_length=5, title='Audio Fillers'
15035
+ )
14984
15036
 
14985
15037
 
14986
15038
  class IdentityInput(BaseModel):
@@ -15119,12 +15171,16 @@ class MetricToEvaluate(BaseModel):
15119
15171
 
15120
15172
  class ReflectionStateInput(BaseModel):
15121
15173
  type: Literal['reflection'] = Field(..., title='Type')
15174
+ name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15122
15175
  problem: str = Field(..., min_length=1)
15123
15176
  word_limit: int = Field(..., gt=0, title='Word Limit')
15124
15177
  next_state: Union[StateOrRefName, ReflectionStateInputNextState] = Field(
15125
15178
  ..., title='Next State'
15126
15179
  )
15127
15180
  tool_call_specs: List[ToolCallSpecInput] = Field(..., title='Tool Call Specs')
15181
+ audio_fillers: List[StrippedNonemptyString] = Field(
15182
+ ..., max_length=5, title='Audio Fillers'
15183
+ )
15128
15184
 
15129
15185
 
15130
15186
  class ServiceHierarchicalStateMachineInstance(BaseModel):
@@ -15152,15 +15208,14 @@ class ServiceHierarchicalStateMachineInstance(BaseModel):
15152
15208
  description: str = Field(
15153
15209
  ..., description='A description of the state machine.', title='Description'
15154
15210
  )
15155
- states: Dict[
15156
- str,
15211
+ states: List[
15157
15212
  Union[
15158
15213
  ActionStateOutput,
15159
15214
  DecisionStateOutput,
15160
15215
  RecallStateOutput,
15161
15216
  AnnotationStateOutput,
15162
15217
  ReflectionStateOutput,
15163
- ],
15218
+ ]
15164
15219
  ] = Field(..., description='The states in this state machine.', title='States')
15165
15220
  new_user_initial_state: str = Field(
15166
15221
  ...,
@@ -15456,15 +15511,14 @@ class OrganizationCreateServiceHierarchicalStateMachineVersionRequest(BaseModel)
15456
15511
  description='A description of the service hierarchical state machine.',
15457
15512
  min_length=1,
15458
15513
  )
15459
- states: Dict[
15460
- str,
15514
+ states: List[
15461
15515
  Union[
15462
15516
  ActionStateInput,
15463
15517
  DecisionStateInput,
15464
15518
  RecallStateInput,
15465
15519
  AnnotationStateInput,
15466
15520
  ReflectionStateInput,
15467
- ],
15521
+ ]
15468
15522
  ] = Field(
15469
15523
  ...,
15470
15524
  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.46.0
3
+ Version: 0.48.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=kgT1kmciXgiuXuUciu754wavhqIkDnsqCD-cdmFTqrc,139
1
+ amigo_sdk/__init__.py,sha256=-wHcUZHRj94f3MYihvirFAazV4WIdblcafK9UMYH4VI,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=VXOWG7AVKqHEvROp18PlBMGcCVrrmp0sA3k5wSZ5E3M,435864
9
+ amigo_sdk/generated/model.py,sha256=Fx--Jppwef9DuuicPAVGJsU__YKxj5Sgb8Yeq2cPBNk,438201
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.46.0.dist-info/METADATA,sha256=13LdruS-6llXIEeHtppWc5pGCQb1JTKHZwufwDzggYg,8350
15
- amigo_sdk-0.46.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- amigo_sdk-0.46.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.46.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.46.0.dist-info/RECORD,,
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,,