amigo_sdk 0.43.0__py3-none-any.whl → 0.44.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 +1 -1
- amigo_sdk/generated/model.py +87 -129
- {amigo_sdk-0.43.0.dist-info → amigo_sdk-0.44.0.dist-info}/METADATA +1 -1
- {amigo_sdk-0.43.0.dist-info → amigo_sdk-0.44.0.dist-info}/RECORD +7 -7
- {amigo_sdk-0.43.0.dist-info → amigo_sdk-0.44.0.dist-info}/WHEEL +0 -0
- {amigo_sdk-0.43.0.dist-info → amigo_sdk-0.44.0.dist-info}/entry_points.txt +0 -0
- {amigo_sdk-0.43.0.dist-info → amigo_sdk-0.44.0.dist-info}/licenses/LICENSE +0 -0
amigo_sdk/__init__.py
CHANGED
amigo_sdk/generated/model.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: <stdin>
|
|
3
|
-
# timestamp: 2025-10-07T17:
|
|
3
|
+
# timestamp: 2025-10-07T17:34:47+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
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
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
|
|
@@ -11862,7 +11906,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
|
|
|
11862
11906
|
[], description='The IDs of the messages to retrieve.', title='Id'
|
|
11863
11907
|
)
|
|
11864
11908
|
message_type: Optional[List[MessageType]] = Field(
|
|
11865
|
-
['
|
|
11909
|
+
['user-message', 'external-event', 'agent-message'],
|
|
11866
11910
|
description='The type of messages to retrieve.',
|
|
11867
11911
|
title='Message Type',
|
|
11868
11912
|
)
|
|
@@ -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
|
|
14699
|
-
|
|
14700
|
-
..., description='The
|
|
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
|
-
|
|
14706
|
-
Union[InitialUserMessageConfig, InitialExternalEventConfigInput]
|
|
14707
|
-
] = Field(
|
|
14703
|
+
tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
|
|
14708
14704
|
...,
|
|
14709
|
-
description='The
|
|
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
|
-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
amigo_sdk/__init__.py,sha256=
|
|
1
|
+
amigo_sdk/__init__.py,sha256=guIPTwP2Do04VjB_2kSPX2DMDCMVIdMzuI-3lVBZ7WE,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=
|
|
9
|
+
amigo_sdk/generated/model.py,sha256=NV6Ot6F3MtRrIHSvEgc_UBKDittIROsMp4WCyKpSjXY,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.
|
|
15
|
-
amigo_sdk-0.
|
|
16
|
-
amigo_sdk-0.
|
|
17
|
-
amigo_sdk-0.
|
|
18
|
-
amigo_sdk-0.
|
|
14
|
+
amigo_sdk-0.44.0.dist-info/METADATA,sha256=CpAuLZjUkNGXpEHqT2DQ0kb7JkUFoRdiw0o_76Zub4E,8350
|
|
15
|
+
amigo_sdk-0.44.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
16
|
+
amigo_sdk-0.44.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
|
|
17
|
+
amigo_sdk-0.44.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
|
|
18
|
+
amigo_sdk-0.44.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|