phenoml 0.0.5__py3-none-any.whl → 0.0.7__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.
Files changed (43) hide show
  1. phenoml/agent/client.py +14 -2
  2. phenoml/agent/types/json_patch_operation.py +5 -1
  3. phenoml/client.py +7 -4
  4. phenoml/core/client_wrapper.py +10 -8
  5. phenoml/fhir/client.py +22 -22
  6. phenoml/fhir/types/fhir_patch_request_body_item.py +5 -1
  7. phenoml/workflows/__init__.py +61 -0
  8. phenoml/workflows/client.py +694 -0
  9. phenoml/workflows/errors/__init__.py +11 -0
  10. phenoml/workflows/errors/bad_request_error.py +10 -0
  11. phenoml/workflows/errors/forbidden_error.py +10 -0
  12. phenoml/workflows/errors/internal_server_error.py +10 -0
  13. phenoml/workflows/errors/not_found_error.py +10 -0
  14. phenoml/workflows/errors/unauthorized_error.py +10 -0
  15. phenoml/workflows/raw_client.py +1266 -0
  16. phenoml/workflows/types/__init__.py +53 -0
  17. phenoml/workflows/types/create_workflow_request_fhir_provider_id.py +5 -0
  18. phenoml/workflows/types/create_workflow_response.py +44 -0
  19. phenoml/workflows/types/decision_node_definition.py +32 -0
  20. phenoml/workflows/types/execute_workflow_response.py +30 -0
  21. phenoml/workflows/types/execute_workflow_response_results.py +22 -0
  22. phenoml/workflows/types/lang2fhir_create_definition.py +37 -0
  23. phenoml/workflows/types/lang2fhir_search_definition.py +42 -0
  24. phenoml/workflows/types/list_workflows_response.py +39 -0
  25. phenoml/workflows/types/step_operation.py +26 -0
  26. phenoml/workflows/types/sub_workflow_definition.py +32 -0
  27. phenoml/workflows/types/update_workflow_request_fhir_provider_id.py +5 -0
  28. phenoml/workflows/types/workflow_config.py +27 -0
  29. phenoml/workflows/types/workflow_definition.py +57 -0
  30. phenoml/workflows/types/workflow_graph.py +23 -0
  31. phenoml/workflows/types/workflow_response.py +61 -0
  32. phenoml/workflows/types/workflow_response_graph.py +23 -0
  33. phenoml/workflows/types/workflow_step.py +55 -0
  34. phenoml/workflows/types/workflow_step_summary.py +47 -0
  35. phenoml/workflows/types/workflow_step_summary_type.py +5 -0
  36. phenoml/workflows/types/workflow_step_type.py +5 -0
  37. phenoml/workflows/types/workflows_delete_response.py +20 -0
  38. phenoml/workflows/types/workflows_get_response.py +26 -0
  39. phenoml/workflows/types/workflows_update_response.py +31 -0
  40. {phenoml-0.0.5.dist-info → phenoml-0.0.7.dist-info}/METADATA +1 -1
  41. {phenoml-0.0.5.dist-info → phenoml-0.0.7.dist-info}/RECORD +43 -10
  42. {phenoml-0.0.5.dist-info → phenoml-0.0.7.dist-info}/LICENSE +0 -0
  43. {phenoml-0.0.5.dist-info → phenoml-0.0.7.dist-info}/WHEEL +0 -0
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ WorkflowStepSummaryType = typing.Union[typing.Literal["search", "create", "workflow", "decision_node"], typing.Any]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ WorkflowStepType = typing.Union[typing.Literal["search", "create", "workflow", "decision_node"], typing.Any]
@@ -0,0 +1,20 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+
8
+
9
+ class WorkflowsDeleteResponse(UniversalBaseModel):
10
+ success: typing.Optional[bool] = None
11
+ message: typing.Optional[str] = None
12
+
13
+ if IS_PYDANTIC_V2:
14
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15
+ else:
16
+
17
+ class Config:
18
+ frozen = True
19
+ smart_union = True
20
+ extra = pydantic.Extra.allow
@@ -0,0 +1,26 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+ from .workflow_definition import WorkflowDefinition
8
+ from .workflow_response import WorkflowResponse
9
+
10
+
11
+ class WorkflowsGetResponse(UniversalBaseModel):
12
+ success: typing.Optional[bool] = None
13
+ workflow: typing.Optional[WorkflowResponse] = None
14
+ workflow_details: typing.Optional[WorkflowDefinition] = pydantic.Field(default=None)
15
+ """
16
+ Only included when verbose=true - contains full implementation details
17
+ """
18
+
19
+ if IS_PYDANTIC_V2:
20
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
21
+ else:
22
+
23
+ class Config:
24
+ frozen = True
25
+ smart_union = True
26
+ extra = pydantic.Extra.allow
@@ -0,0 +1,31 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+ from .workflow_definition import WorkflowDefinition
8
+ from .workflow_response import WorkflowResponse
9
+
10
+
11
+ class WorkflowsUpdateResponse(UniversalBaseModel):
12
+ success: typing.Optional[bool] = None
13
+ message: typing.Optional[str] = None
14
+ workflow: typing.Optional[WorkflowResponse] = pydantic.Field(default=None)
15
+ """
16
+ Simplified workflow response with only essential step information
17
+ """
18
+
19
+ workflow_details: typing.Optional[WorkflowDefinition] = pydantic.Field(default=None)
20
+ """
21
+ Only included when verbose=true - contains full implementation details
22
+ """
23
+
24
+ if IS_PYDANTIC_V2:
25
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
26
+ else:
27
+
28
+ class Config:
29
+ frozen = True
30
+ smart_union = True
31
+ extra = pydantic.Extra.allow
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phenoml
3
- Version: 0.0.5
3
+ Version: 0.0.7
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,6 +1,6 @@
1
1
  phenoml/__init__.py,sha256=SeYOCP1ABPA3aB2UDDPr5DOYT4UKKQcw1CHW49I51X8,778
2
2
  phenoml/agent/__init__.py,sha256=oHLnXLJ_uzj3zAtpAUaoXuWZcxl1K8cQh2ommFsp1Kg,1433
3
- phenoml/agent/client.py,sha256=-A7Mp-W8veSh61Hzc1BgHuy-r1l3Ba7Pl43TU87tYmU,25043
3
+ phenoml/agent/client.py,sha256=sUG48L4bRFlh8v2ZcwvpqODCoQbKJpFDB-A_HnXBkQg,25347
4
4
  phenoml/agent/errors/__init__.py,sha256=Wnvf4XPELmAIZ-jVxx2t-dBNZ-X9PcDxPSL5EHqJr1Q,434
5
5
  phenoml/agent/errors/bad_request_error.py,sha256=nv0bK4gtOnTon6a2NdVxJxHBje_O_7wIoRtXLZHovUQ,339
6
6
  phenoml/agent/errors/forbidden_error.py,sha256=ek8-sffTy9gY3F0zyaSkcskDVvq9puXP_YvvB2BJYbA,338
@@ -29,7 +29,7 @@ phenoml/agent/types/agent_template_provider.py,sha256=GSTBqYxeng63IArMCABsTAp__a
29
29
  phenoml/agent/types/chat_message_template.py,sha256=CV0ZB8LjhtK8J9mNBvSuY0dp3tYrrK-o1RSQIETSXTc,1737
30
30
  phenoml/agent/types/chat_session_template.py,sha256=7mdd4KgknpEwRbqSuzQhRcmk-8PAdKPZKJb4eOKe110,1567
31
31
  phenoml/agent/types/json_patch.py,sha256=pRf6g-LPfIpIfxhcFaVN7PyZ0eJ33fzTOyeMEGuw_18,178
32
- phenoml/agent/types/json_patch_operation.py,sha256=c7AZWK78bqER3tKg_vnxXIY1Kn5YJNk_dEylc9EaWWQ,1200
32
+ phenoml/agent/types/json_patch_operation.py,sha256=8kvQjpK3et2hlPspxUGgWJhLbnI252aI6365BUCqtYk,1288
33
33
  phenoml/agent/types/json_patch_operation_op.py,sha256=mFp29lZK5-CnHFfVy1KnDjJ0wGqLHXY-80d_whSuueI,196
34
34
  phenoml/agent/types/prompt_template.py,sha256=drYxmwZnYkX5Wr7N8GCgu0hATK3xBaDPU55-H54PEcw,1273
35
35
  phenoml/agent/types/success_response.py,sha256=VtvPZu4RVHCqqk1pltxU0wjusCGt4vBG71iWCHIkDAU,592
@@ -47,7 +47,7 @@ phenoml/authtoken/raw_client.py,sha256=85R3SJneFJ-fxGXzYOz_Se01pJ9bKXDTB_BP903PL
47
47
  phenoml/authtoken/types/__init__.py,sha256=ruKn1OfqKNJmeB1h39vh7-8srePTRpWsqGQzCH9_vok,260
48
48
  phenoml/authtoken/types/bad_request_error_body.py,sha256=9D69GH2JTNatHxwC7fDlFhTmRKIJ3jRojQP3MwmJ1KI,672
49
49
  phenoml/authtoken/types/unauthorized_error_body.py,sha256=fqqAo2_kWj0nNwLjm1fd-2lQPu5QhPuJP0yB7yE8sRw,674
50
- phenoml/client.py,sha256=hNR2MyQBKBc0c7u669OtiCsZVrCNfBGbMQcXD22oQhA,7391
50
+ phenoml/client.py,sha256=yy49_tjGWvQPD7QbdVUa82NDSAS22HjmdU0urgpzS84,7702
51
51
  phenoml/cohort/__init__.py,sha256=T7swsjx17aidvorMPqyak0JeX13MT4itAEQvNHNOxuE,320
52
52
  phenoml/cohort/client.py,sha256=4bA8cffE6EvLZVMveJ2_aGu90vtXUHYTfO0E9EQuN9U,3312
53
53
  phenoml/cohort/errors/__init__.py,sha256=su56D86txLO0suHwq_Yixg4EaMbSyaB00cma1beOFGE,312
@@ -85,7 +85,7 @@ phenoml/construe/types/unauthorized_error_body.py,sha256=j7msnWr6ENYKxLVrfi2ZTg4
85
85
  phenoml/construe/types/upload_request_format.py,sha256=5mJhMM7R7hn6gGQNDJT9lxPDsRpUkRzqNxtRU0Nnlls,158
86
86
  phenoml/core/__init__.py,sha256=lTcqUPXcx4112yLDd70RAPeqq6tu3eFMe1pKOqkW9JQ,1562
87
87
  phenoml/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
88
- phenoml/core/client_wrapper.py,sha256=Mc5XySoWMeUXWQfmYTmFzZ7JWE1wMqRIxs43KHP7GBo,2641
88
+ phenoml/core/client_wrapper.py,sha256=NV5qStQ5OxhK6wEWWaxsk1MllbDh9bGHb2HB74UeRPg,2809
89
89
  phenoml/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
90
90
  phenoml/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
91
91
  phenoml/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
@@ -99,7 +99,7 @@ phenoml/core/request_options.py,sha256=h0QUNCFVdCW_7GclVySCAY2w4NhtXVBUCmHgmzaxp
99
99
  phenoml/core/serialization.py,sha256=ECL3bvv_0i7U4uvPidZCNel--MUbA0iq0aGcNKi3kws,9818
100
100
  phenoml/environment.py,sha256=x2TB5u9AblwVCke6_38YZmVhcjjHLE5gXBo5TMeaeO8,164
101
101
  phenoml/fhir/__init__.py,sha256=CGOe2OSGyiryHY66fcRyZXsSMHiM5Y_GkTNPUqzwTP8,910
102
- phenoml/fhir/client.py,sha256=qZocq0n_cutgHMU3whdqaT1nB3LgjuN4Xr1VAVB32k4,34527
102
+ phenoml/fhir/client.py,sha256=gcPfXFlpzIrQxK17mJbVhnfpM-6YsnovJXrsGVDFG7w,34747
103
103
  phenoml/fhir/errors/__init__.py,sha256=1K_bceYvXUdWyvhH-WRwOEcc1gkiT_K6kGrs3VKg3PA,372
104
104
  phenoml/fhir/errors/bad_request_error.py,sha256=nv0bK4gtOnTon6a2NdVxJxHBje_O_7wIoRtXLZHovUQ,339
105
105
  phenoml/fhir/errors/internal_server_error.py,sha256=biBHJfSP1_zWF5CJgxY4B8wrL1uC18RSccQ-BCKmYNs,343
@@ -113,7 +113,7 @@ phenoml/fhir/types/fhir_bundle_entry_item.py,sha256=FA5C1viHSkBmvJEP7ASv-IXqrKeZ
113
113
  phenoml/fhir/types/fhir_bundle_entry_item_request.py,sha256=rYw9vXf8C0h6KVR_OivNDhILZ-pF2wSTYpnNyMrqIL4,781
114
114
  phenoml/fhir/types/fhir_bundle_entry_item_request_method.py,sha256=Hi7sa873FIofanOQkqXHnb2rJ4HTApZ4JBqqNV_yzPM,197
115
115
  phenoml/fhir/types/fhir_bundle_entry_item_response.py,sha256=6YwD_9moflsY-aRBgYN540Uevsu2xJP-Jy_lQFoKsE4,684
116
- phenoml/fhir/types/fhir_patch_request_body_item.py,sha256=R0sHS8VRbOcGLm_K8eWpXCG4J0BDEarGxFU5o23zZjI,1117
116
+ phenoml/fhir/types/fhir_patch_request_body_item.py,sha256=Dwfzr8PsM0zbKo4ysFAxu50sjjSv3umuZBFCyrgidcg,1224
117
117
  phenoml/fhir/types/fhir_patch_request_body_item_op.py,sha256=qOU6uYuWoscQ876W58aUvIQKbqnMotzl3siEyeWU0vI,208
118
118
  phenoml/fhir/types/fhir_resource.py,sha256=kZxeWoOMiGqwfwdxgdWg3NUjFFTuVKCAv6Ty80myhuI,1223
119
119
  phenoml/fhir/types/fhir_resource_meta.py,sha256=9nXzZ7V7u0x9ehDyjoydmVl7leXzzvIOzxSQJSYmHbk,934
@@ -186,8 +186,41 @@ phenoml/tools/types/mcp_server_tool_response.py,sha256=lDIyzSX5XHVumIWxVFhNFyY08
186
186
  phenoml/tools/types/mcp_server_tool_response_data.py,sha256=mGFHazpGukicAkB3sBpmLIOehA812gtP6LTVaHW4v3g,1585
187
187
  phenoml/tools/types/search_concept.py,sha256=Y_Hbx6NOdk1m83jTMxeUBy-e5h8jt0tUjvi92J34zRE,1104
188
188
  phenoml/version.py,sha256=5HhaEGv3OL_Nw9_mC28UFdsvpQrZpjr14na7Pmw8pFY,74
189
+ phenoml/workflows/__init__.py,sha256=JTdDqPTJm8RJmANElAWwbSV5J9DB-CDZsMQhGItXYsw,1650
190
+ phenoml/workflows/client.py,sha256=8h5cqo2mIG6A-AXpyHJKs0p6Z4VtE_rLvfyMXkakbBM,21124
191
+ phenoml/workflows/errors/__init__.py,sha256=Wnvf4XPELmAIZ-jVxx2t-dBNZ-X9PcDxPSL5EHqJr1Q,434
192
+ phenoml/workflows/errors/bad_request_error.py,sha256=nv0bK4gtOnTon6a2NdVxJxHBje_O_7wIoRtXLZHovUQ,339
193
+ phenoml/workflows/errors/forbidden_error.py,sha256=ek8-sffTy9gY3F0zyaSkcskDVvq9puXP_YvvB2BJYbA,338
194
+ phenoml/workflows/errors/internal_server_error.py,sha256=biBHJfSP1_zWF5CJgxY4B8wrL1uC18RSccQ-BCKmYNs,343
195
+ phenoml/workflows/errors/not_found_error.py,sha256=hQ1KdyGQJCBQqo6iLu2-szlKJdzaoV5odq_7kdXAEbc,337
196
+ phenoml/workflows/errors/unauthorized_error.py,sha256=h8T6QhXuTo0GLL9MKfIM5p--wDqlB1-ZkMp3lY-aM3E,341
197
+ phenoml/workflows/raw_client.py,sha256=Ez03eL2Y5XdbknDmGxlpjQvu7cArLaASmbEFXbKKMSE,50906
198
+ phenoml/workflows/types/__init__.py,sha256=r-PfarQWCMwrW6DGEbMwE6VazQ4ghvHOUdVpgMgXqdk,2147
199
+ phenoml/workflows/types/create_workflow_request_fhir_provider_id.py,sha256=ZtSMhSQqLgYwoXaG4XPpJl76ckw56J7rxmwgB1yGa5Y,154
200
+ phenoml/workflows/types/create_workflow_response.py,sha256=eBJCWx-couYx3Ao0ZUSq88lr8AniXEEPfVCTJdsfsHI,1362
201
+ phenoml/workflows/types/decision_node_definition.py,sha256=Uf9u5LScqV69naOaTZ4jpR6QO15rQoEsI2Y57_qNISU,983
202
+ phenoml/workflows/types/execute_workflow_response.py,sha256=TOqqW1i_bTDtUMtsz0Mw38zEGF-Yaw0-S3m6pS82-OI,920
203
+ phenoml/workflows/types/execute_workflow_response_results.py,sha256=bJuRTqSAk5VrateWwtBeblvYOZTdLcun11cvVNKF1ho,707
204
+ phenoml/workflows/types/lang2fhir_create_definition.py,sha256=ud-uQrRRcTz0MOCQtm1gv8APvGho-_lwKKmpliZLK8c,1113
205
+ phenoml/workflows/types/lang2fhir_search_definition.py,sha256=J6xwznc333PSynluBTIUNR9jccirT8UoUkNTXAnHDuw,1242
206
+ phenoml/workflows/types/list_workflows_response.py,sha256=SaHER6yXiKDOkPHZ5Dua_LfGEDh7mE-UCbOrXUFE7Ss,1247
207
+ phenoml/workflows/types/step_operation.py,sha256=uNV-kjOHqd8cNsJZJ7U7gJaM6IxzJ-e1YVxFZw-aCDE,1050
208
+ phenoml/workflows/types/sub_workflow_definition.py,sha256=vEVtON5fyfJL5EcRf8msSJU7jxjWEKZl59JvwKi38mA,1001
209
+ phenoml/workflows/types/update_workflow_request_fhir_provider_id.py,sha256=1ZhHnCRvUUJBdHbuAkZcYdM0j200Fe4FQDFrli05tpM,154
210
+ phenoml/workflows/types/workflow_config.py,sha256=4Ip3b14EYe7YogswpqUOcAya7zudQevOOcWCWG7tlyQ,840
211
+ phenoml/workflows/types/workflow_definition.py,sha256=o_NST3DhhhzoKwwMFfEC7MAOQRVpcVggf4XH2TRFO08,1700
212
+ phenoml/workflows/types/workflow_graph.py,sha256=TFkS54k37kGpDut9HpKEbq4qca0EaS7FLcsdaS72wzk,693
213
+ phenoml/workflows/types/workflow_response.py,sha256=syMX-Q1wBHPiEL1XuBOBQfDCZTbBzw-LqYFoV4TTMcQ,1810
214
+ phenoml/workflows/types/workflow_response_graph.py,sha256=FT0hYPT611iy82fVzvljlZLXQh30yi6QldWeD46wJgA,742
215
+ phenoml/workflows/types/workflow_step.py,sha256=LHo0a0DuAnvDKGF2vhOeRL8EsSM00mS5dDjCgXJboTM,1567
216
+ phenoml/workflows/types/workflow_step_summary.py,sha256=oZLmVTffY90oa_3tedHsz44j0Y2NoENKBfZfzCz0-ok,1284
217
+ phenoml/workflows/types/workflow_step_summary_type.py,sha256=jdHpqZwccCepA13IVLC7sWYPic3THkBRE2la3uYG4ug,196
218
+ phenoml/workflows/types/workflow_step_type.py,sha256=tq0nUyU5HZyji-QZFj21LbZjrBVrSdRaKDd5N0QDD_4,189
219
+ phenoml/workflows/types/workflows_delete_response.py,sha256=izcubUOnSNOgThD9Ozo6Lcow88ivQxdL6Yho-7KvCcY,600
220
+ phenoml/workflows/types/workflows_get_response.py,sha256=gfNyUs14JSynprRwT-fuq4IDsGrPZmUSsK3WmgqIEi8,891
221
+ phenoml/workflows/types/workflows_update_response.py,sha256=FEvQpC9ZRk8dV1oaIAwV5bSDD2tkXZ5fG4mozRjibuQ,1046
189
222
  phenoml/wrapper_client.py,sha256=JYTdhXgju4tOsata06wQY_ZbMsuMj3qaxkgvDzpY068,5022
190
- phenoml-0.0.5.dist-info/LICENSE,sha256=Am1fNNveR2gcmOloSWQTsnUw2SQEF8HtowFqIvlagfk,1064
191
- phenoml-0.0.5.dist-info/METADATA,sha256=ZNj5MIzoqdCnvngVK3BkhaESggWaZ85eK4eM_hBzQy8,5330
192
- phenoml-0.0.5.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
193
- phenoml-0.0.5.dist-info/RECORD,,
223
+ phenoml-0.0.7.dist-info/LICENSE,sha256=Am1fNNveR2gcmOloSWQTsnUw2SQEF8HtowFqIvlagfk,1064
224
+ phenoml-0.0.7.dist-info/METADATA,sha256=Iu2IZeO82Ggtc5m7-v79JQHlGfGuNcT6YoshIa9JEFQ,5330
225
+ phenoml-0.0.7.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
226
+ phenoml-0.0.7.dist-info/RECORD,,