amigo_sdk 0.43.0__py3-none-any.whl → 0.45.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.43.0"
1
+ __version__ = "0.45.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-07T17:20:08+00:00
3
+ # timestamp: 2025-10-09T16:19:34+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -8321,39 +8321,10 @@ class InCondition(BaseModel):
8321
8321
  )
8322
8322
 
8323
8323
 
8324
- class InitialExternalEventConfigInputMessageAndOffset(
8325
- ConversationByTimeMetricOutputConversationCount
8326
- ):
8327
- pass
8328
-
8329
-
8330
- class InitialExternalEventConfigInput(BaseModel):
8331
- type: Literal['external-event'] = Field(..., title='Type')
8332
- message_and_offsets: List[InitialExternalEventConfigInputMessageAndOffset] = Field(
8333
- ...,
8334
- description='A list of tuples, each containing a message and its offset in milliseconds from the conversation start time. These must be sorted by offset in the ascending order, and must not contain repeated offsets.',
8335
- min_length=1,
8336
- title='Message And Offsets',
8337
- )
8338
-
8339
-
8340
- class InitialExternalEventConfigOutputMessageAndOffset(
8341
- ConversationByTimeMetricOutputConversationCount
8342
- ):
8343
- pass
8344
-
8345
-
8346
- class InitialExternalEventConfigOutput(BaseModel):
8347
- type: Literal['external-event'] = Field(..., title='Type')
8348
- message_and_offsets: List[InitialExternalEventConfigOutputMessageAndOffset] = Field(
8349
- ...,
8350
- description='A list of tuples, each containing a message and its offset in milliseconds from the conversation start time.',
8351
- title='Message And Offsets',
8352
- )
8353
-
8354
-
8355
- class InitialUserMessageConfig(BaseModel):
8356
- type: Literal['user-message'] = Field(..., title='Type')
8324
+ class InitialMessageType(Enum):
8325
+ user_message = 'user-message'
8326
+ external_event = 'external-event'
8327
+ skip = 'skip'
8357
8328
 
8358
8329
 
8359
8330
  class InputInvocationMode(Enum):
@@ -9048,6 +9019,39 @@ class SimulationPersonaVersion(BaseModel):
9048
9019
  )
9049
9020
 
9050
9021
 
9022
+ class SimulationScenarioVersion(BaseModel):
9023
+ field_id: str = Field(
9024
+ ..., alias='_id', description='The ID of the document.', title='Id'
9025
+ )
9026
+ org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
9027
+ created_at: Optional[AwareDatetime] = Field(None, title='Created At')
9028
+ updated_at: Optional[AwareDatetime] = Field(None, title='Updated At')
9029
+ simulation_scenario_id: str = Field(
9030
+ ...,
9031
+ description='The ID of the simulation scenario that this is a version of.',
9032
+ title='Simulation Scenario Id',
9033
+ )
9034
+ version: int = Field(
9035
+ ...,
9036
+ description='The version number of the simulation scenario.',
9037
+ title='Version',
9038
+ )
9039
+ objective: str = Field(
9040
+ ..., description='The objective of the simulation scenario.', title='Objective'
9041
+ )
9042
+ instructions: str = Field(
9043
+ ...,
9044
+ description='The instructions for the simulation scenario.',
9045
+ title='Instructions',
9046
+ )
9047
+ initial_message_type: InitialMessageType
9048
+ conversation_starts_at: AwareDatetime = Field(
9049
+ ...,
9050
+ description='The time at which the conversation starts. This must be a timestamp in UTC.',
9051
+ title='Conversation Starts At',
9052
+ )
9053
+
9054
+
9051
9055
  class StateMachineInstance(BaseModel):
9052
9056
  id: str = Field(..., description='The ID of the state machine.', title='Id')
9053
9057
  name: str = Field(..., description='The name of the state machine.', title='Name')
@@ -10922,6 +10926,23 @@ class SimulationCreateSimulationPersonaVersionResponse(BaseModel):
10922
10926
  )
10923
10927
 
10924
10928
 
10929
+ class SimulationCreateSimulationScenarioRequestInitialVersion(BaseModel):
10930
+ objective: str = Field(
10931
+ ..., description='The objective of the simulation scenario.', min_length=1
10932
+ )
10933
+ instructions: str = Field(
10934
+ ..., description='The instructions of the simulation scenario.', min_length=1
10935
+ )
10936
+ initial_message_type: InitialMessageType = Field(
10937
+ ..., description='The initial message type for the simulation scenario version.'
10938
+ )
10939
+ conversation_starts_at: AwareDatetime = Field(
10940
+ ...,
10941
+ description='The time at which the conversation starts. This must be a timestamp in UTC.',
10942
+ title='Conversation Starts At',
10943
+ )
10944
+
10945
+
10925
10946
  class SimulationCreateSimulationScenarioResponse(BaseModel):
10926
10947
  simulation_scenario_id: str = Field(
10927
10948
  ...,
@@ -10930,6 +10951,11 @@ class SimulationCreateSimulationScenarioResponse(BaseModel):
10930
10951
  )
10931
10952
 
10932
10953
 
10954
+ SimulationCreateSimulationScenarioVersionRequest = (
10955
+ SimulationCreateSimulationScenarioRequestInitialVersion
10956
+ )
10957
+
10958
+
10933
10959
  class SimulationCreateSimulationScenarioVersionResponse(BaseModel):
10934
10960
  version: int = Field(
10935
10961
  ...,
@@ -11023,6 +11049,24 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11023
11049
  )
11024
11050
 
11025
11051
 
11052
+ class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11053
+ simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11054
+ ...,
11055
+ description='The list of simulation scenario versions.',
11056
+ title='Simulation Scenario Versions',
11057
+ )
11058
+ has_more: bool = Field(
11059
+ ...,
11060
+ description='Whether there are more simulation scenario versions to fetch.',
11061
+ title='Has More',
11062
+ )
11063
+ continuation_token: Any = Field(
11064
+ ...,
11065
+ description='A token to supply to the next request to retreive the next page of simulation scenario versions.',
11066
+ title='Continuation Token',
11067
+ )
11068
+
11069
+
11026
11070
  class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11027
11071
  creators: List[
11028
11072
  AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo
@@ -13329,7 +13373,7 @@ class AnnotationStateInput(BaseModel):
13329
13373
  class CategoricalMetricSuccessCriterionInput(BaseModel):
13330
13374
  type: Literal['categorical'] = Field(..., title='Type')
13331
13375
  expected_values: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
13332
- ..., min_length=2, title='Expected Values'
13376
+ ..., min_length=1, title='Expected Values'
13333
13377
  )
13334
13378
 
13335
13379
 
@@ -13467,14 +13511,6 @@ class IdentityOutput(BaseModel):
13467
13511
  )
13468
13512
 
13469
13513
 
13470
- class InitialMessageConfigInput(
13471
- RootModel[Union[InitialUserMessageConfig, InitialExternalEventConfigInput]]
13472
- ):
13473
- root: Union[InitialUserMessageConfig, InitialExternalEventConfigInput] = Field(
13474
- ..., discriminator='type'
13475
- )
13476
-
13477
-
13478
13514
  class InsertRequest(BaseModel):
13479
13515
  name: str = Field(
13480
13516
  ...,
@@ -13833,41 +13869,6 @@ class SimulationScenarioInstance(BaseModel):
13833
13869
  )
13834
13870
 
13835
13871
 
13836
- class SimulationScenarioVersion(BaseModel):
13837
- field_id: str = Field(
13838
- ..., alias='_id', description='The ID of the document.', title='Id'
13839
- )
13840
- org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
13841
- created_at: Optional[AwareDatetime] = Field(None, title='Created At')
13842
- updated_at: Optional[AwareDatetime] = Field(None, title='Updated At')
13843
- simulation_scenario_id: str = Field(
13844
- ...,
13845
- description='The ID of the simulation scenario that this is a version of.',
13846
- title='Simulation Scenario Id',
13847
- )
13848
- version: int = Field(
13849
- ...,
13850
- description='The version number of the simulation scenario.',
13851
- title='Version',
13852
- )
13853
- objective: str = Field(
13854
- ..., description='The objective of the simulation scenario.', title='Objective'
13855
- )
13856
- instructions: str = Field(
13857
- ...,
13858
- description='The instructions for the simulation scenario.',
13859
- title='Instructions',
13860
- )
13861
- initial_message_config: Optional[
13862
- Union[InitialUserMessageConfig, InitialExternalEventConfigOutput]
13863
- ] = None
13864
- conversation_starts_at: AwareDatetime = Field(
13865
- ...,
13866
- description='The time at which the conversation starts. This must be a timestamp in UTC.',
13867
- title='Conversation Starts At',
13868
- )
13869
-
13870
-
13871
13872
  class SimulationUnitTestSet(BaseModel):
13872
13873
  field_id: str = Field(
13873
13874
  ..., alias='_id', description='The ID of the document.', title='Id'
@@ -14695,31 +14696,20 @@ class SimulationCreateSimulationPersonaRequest(BaseModel):
14695
14696
  )
14696
14697
 
14697
14698
 
14698
- class SimulationCreateSimulationScenarioRequestInitialVersion(BaseModel):
14699
- objective: str = Field(
14700
- ..., description='The objective of the simulation scenario.', min_length=1
14701
- )
14702
- instructions: str = Field(
14703
- ..., description='The instructions of the simulation scenario.', min_length=1
14699
+ class SimulationCreateSimulationScenarioRequest(BaseModel):
14700
+ name: str = Field(
14701
+ ..., description='The name of the simulation scenario.', min_length=1
14704
14702
  )
14705
- initial_message_config: Optional[
14706
- Union[InitialUserMessageConfig, InitialExternalEventConfigInput]
14707
- ] = Field(
14703
+ tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
14708
14704
  ...,
14709
- description='The initial message configuration for the simulation scenario version. If not specified, an agent message opens the simulated conversation.',
14705
+ description='The tags of the simulation scenario. Both the key and the value can only contain alphanumeric characters, underscores, or spaces.',
14706
+ title='Tags',
14710
14707
  )
14711
- conversation_starts_at: AwareDatetime = Field(
14712
- ...,
14713
- description='The time at which the conversation starts. This must be a timestamp in UTC.',
14714
- title='Conversation Starts At',
14708
+ initial_version: SimulationCreateSimulationScenarioRequestInitialVersion = Field(
14709
+ ..., description='The initial version of the simulation scenario.'
14715
14710
  )
14716
14711
 
14717
14712
 
14718
- SimulationCreateSimulationScenarioVersionRequest = (
14719
- SimulationCreateSimulationScenarioRequestInitialVersion
14720
- )
14721
-
14722
-
14723
14713
  class SimulationCreateSimulationUnitTestRequestSuccessCriterion(BaseModel):
14724
14714
  name: str = Field(..., min_length=1)
14725
14715
  metric_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Metric Id')
@@ -14752,24 +14742,6 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14752
14742
  )
14753
14743
 
14754
14744
 
14755
- class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
14756
- simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
14757
- ...,
14758
- description='The list of simulation scenario versions.',
14759
- title='Simulation Scenario Versions',
14760
- )
14761
- has_more: bool = Field(
14762
- ...,
14763
- description='Whether there are more simulation scenario versions to fetch.',
14764
- title='Has More',
14765
- )
14766
- continuation_token: Any = Field(
14767
- ...,
14768
- description='A token to supply to the next request to retreive the next page of simulation scenario versions.',
14769
- title='Continuation Token',
14770
- )
14771
-
14772
-
14773
14745
  class SimulationGetSimulationScenariosResponse(BaseModel):
14774
14746
  simulation_scenarios: List[SimulationScenarioInstance] = Field(
14775
14747
  ...,
@@ -15668,20 +15640,6 @@ class ServiceGetServicesResponse(BaseModel):
15668
15640
  )
15669
15641
 
15670
15642
 
15671
- class SimulationCreateSimulationScenarioRequest(BaseModel):
15672
- name: str = Field(
15673
- ..., description='The name of the simulation scenario.', min_length=1
15674
- )
15675
- tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
15676
- ...,
15677
- description='The tags of the simulation scenario. Both the key and the value can only contain alphanumeric characters, underscores, or spaces.',
15678
- title='Tags',
15679
- )
15680
- initial_version: SimulationCreateSimulationScenarioRequestInitialVersion = Field(
15681
- ..., description='The initial version of the simulation scenario.'
15682
- )
15683
-
15684
-
15685
15643
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
15686
15644
  name: str = Field(..., description='The name of the unit test.', min_length=1)
15687
15645
  description: str = Field(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.43.0
3
+ Version: 0.45.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=w21q5RGU8CFYk41u2MokcmDR20CuWCnD8vxfX-XLf9Q,139
1
+ amigo_sdk/__init__.py,sha256=sJTlq3POv-64inCjPnZFAvuewI4lD53H6HoS8DFORAA,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=6DmbH309VR9faFxck_xG9YDR_PcDX18sV4Gy2-N1YFQ,440010
9
+ amigo_sdk/generated/model.py,sha256=mypT5GjanectJSXWn70DjsaORNOjAM5iLwVjiawihAU,438404
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.43.0.dist-info/METADATA,sha256=nHfS1p7iDBxBtuBYFNNkztoFKfGMVQSSR5i7dco2eyw,8350
15
- amigo_sdk-0.43.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- amigo_sdk-0.43.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.43.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.43.0.dist-info/RECORD,,
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,,