phenoml 0.0.6__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 (32) hide show
  1. phenoml/core/client_wrapper.py +2 -2
  2. phenoml/workflows/__init__.py +3 -8
  3. phenoml/workflows/client.py +517 -33
  4. phenoml/workflows/raw_client.py +1129 -32
  5. phenoml/workflows/types/__init__.py +10 -0
  6. phenoml/workflows/{workflows/types → types}/workflows_delete_response.py +1 -1
  7. phenoml/workflows/{workflows/types → types}/workflows_get_response.py +3 -3
  8. phenoml/workflows/{workflows/types → types}/workflows_update_response.py +3 -3
  9. {phenoml-0.0.6.dist-info → phenoml-0.0.7.dist-info}/METADATA +1 -1
  10. {phenoml-0.0.6.dist-info → phenoml-0.0.7.dist-info}/RECORD +14 -32
  11. phenoml/types/__init__.py +0 -21
  12. phenoml/types/cohort_response.py +0 -5
  13. phenoml/types/lang2fhir_and_create_response.py +0 -5
  14. phenoml/types/lang2fhir_and_search_response.py +0 -5
  15. phenoml/types/mcp_server_response.py +0 -5
  16. phenoml/types/mcp_server_tool_call_response.py +0 -5
  17. phenoml/types/mcp_server_tool_response.py +0 -5
  18. phenoml/types/search_concept.py +0 -5
  19. phenoml/workflows/mcp_server/__init__.py +0 -7
  20. phenoml/workflows/mcp_server/client.py +0 -274
  21. phenoml/workflows/mcp_server/raw_client.py +0 -226
  22. phenoml/workflows/mcp_server/tools/__init__.py +0 -4
  23. phenoml/workflows/mcp_server/tools/client.py +0 -287
  24. phenoml/workflows/mcp_server/tools/raw_client.py +0 -244
  25. phenoml/workflows/workflows/__init__.py +0 -19
  26. phenoml/workflows/workflows/client.py +0 -694
  27. phenoml/workflows/workflows/raw_client.py +0 -1266
  28. phenoml/workflows/workflows/types/__init__.py +0 -17
  29. /phenoml/workflows/{workflows/types → types}/create_workflow_request_fhir_provider_id.py +0 -0
  30. /phenoml/workflows/{workflows/types → types}/update_workflow_request_fhir_provider_id.py +0 -0
  31. {phenoml-0.0.6.dist-info → phenoml-0.0.7.dist-info}/LICENSE +0 -0
  32. {phenoml-0.0.6.dist-info → phenoml-0.0.7.dist-info}/WHEEL +0 -0
@@ -2,6 +2,7 @@
2
2
 
3
3
  # isort: skip_file
4
4
 
5
+ from .create_workflow_request_fhir_provider_id import CreateWorkflowRequestFhirProviderId
5
6
  from .create_workflow_response import CreateWorkflowResponse
6
7
  from .decision_node_definition import DecisionNodeDefinition
7
8
  from .execute_workflow_response import ExecuteWorkflowResponse
@@ -11,6 +12,7 @@ from .lang2fhir_search_definition import Lang2FhirSearchDefinition
11
12
  from .list_workflows_response import ListWorkflowsResponse
12
13
  from .step_operation import StepOperation
13
14
  from .sub_workflow_definition import SubWorkflowDefinition
15
+ from .update_workflow_request_fhir_provider_id import UpdateWorkflowRequestFhirProviderId
14
16
  from .workflow_config import WorkflowConfig
15
17
  from .workflow_definition import WorkflowDefinition
16
18
  from .workflow_graph import WorkflowGraph
@@ -20,8 +22,12 @@ from .workflow_step import WorkflowStep
20
22
  from .workflow_step_summary import WorkflowStepSummary
21
23
  from .workflow_step_summary_type import WorkflowStepSummaryType
22
24
  from .workflow_step_type import WorkflowStepType
25
+ from .workflows_delete_response import WorkflowsDeleteResponse
26
+ from .workflows_get_response import WorkflowsGetResponse
27
+ from .workflows_update_response import WorkflowsUpdateResponse
23
28
 
24
29
  __all__ = [
30
+ "CreateWorkflowRequestFhirProviderId",
25
31
  "CreateWorkflowResponse",
26
32
  "DecisionNodeDefinition",
27
33
  "ExecuteWorkflowResponse",
@@ -31,6 +37,7 @@ __all__ = [
31
37
  "ListWorkflowsResponse",
32
38
  "StepOperation",
33
39
  "SubWorkflowDefinition",
40
+ "UpdateWorkflowRequestFhirProviderId",
34
41
  "WorkflowConfig",
35
42
  "WorkflowDefinition",
36
43
  "WorkflowGraph",
@@ -40,4 +47,7 @@ __all__ = [
40
47
  "WorkflowStepSummary",
41
48
  "WorkflowStepSummaryType",
42
49
  "WorkflowStepType",
50
+ "WorkflowsDeleteResponse",
51
+ "WorkflowsGetResponse",
52
+ "WorkflowsUpdateResponse",
43
53
  ]
@@ -3,7 +3,7 @@
3
3
  import typing
4
4
 
5
5
  import pydantic
6
- from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
6
+ from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
7
 
8
8
 
9
9
  class WorkflowsDeleteResponse(UniversalBaseModel):
@@ -3,9 +3,9 @@
3
3
  import typing
4
4
 
5
5
  import pydantic
6
- from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
- from ...types.workflow_definition import WorkflowDefinition
8
- from ...types.workflow_response import WorkflowResponse
6
+ from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+ from .workflow_definition import WorkflowDefinition
8
+ from .workflow_response import WorkflowResponse
9
9
 
10
10
 
11
11
  class WorkflowsGetResponse(UniversalBaseModel):
@@ -3,9 +3,9 @@
3
3
  import typing
4
4
 
5
5
  import pydantic
6
- from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
- from ...types.workflow_definition import WorkflowDefinition
8
- from ...types.workflow_response import WorkflowResponse
6
+ from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+ from .workflow_definition import WorkflowDefinition
8
+ from .workflow_response import WorkflowResponse
9
9
 
10
10
 
11
11
  class WorkflowsUpdateResponse(UniversalBaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phenoml
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -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=TsO-pL9iR88-pRCxGZvUiWEY9Y0sKTCwgR2VXgQ_eEU,2809
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
@@ -185,31 +185,18 @@ phenoml/tools/types/mcp_server_tool_call_response.py,sha256=jGiPdxbzn4gQb8sZhvPc
185
185
  phenoml/tools/types/mcp_server_tool_response.py,sha256=lDIyzSX5XHVumIWxVFhNFyY08TBtRM0v8HlkEEaMjW4,950
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
- phenoml/types/__init__.py,sha256=ssCVy6fx_VglXf4T64lJ10awKdnoF7TAfuAIo4SWIH4,704
189
- phenoml/types/cohort_response.py,sha256=6KH0cNV4aqW561FvP12PYn0ovXUQZKJTm7q3wM3EJY0,125
190
- phenoml/types/lang2fhir_and_create_response.py,sha256=whJ7VYD1QKHa-bqDUCPvVgppeQQM0hzrKKFxMtXq4xE,137
191
- phenoml/types/lang2fhir_and_search_response.py,sha256=4b_IfAmnID3DMAkXGj1Q4ivA51aIUo9WZqLMPbViVc4,137
192
- phenoml/types/mcp_server_response.py,sha256=E7gqSYMai04WmwY-wKvdt13VetDNmnQAJcINVyKZdfA,128
193
- phenoml/types/mcp_server_tool_call_response.py,sha256=Rqe2Tw_wuP9yKhuw4ogtldDqi8vFxO15V72cO9R4_0Y,136
194
- phenoml/types/mcp_server_tool_response.py,sha256=rlPDzPIwaAk3VPn-SC5FrIutpXxY9QFwvh0SrkTWPUU,132
195
- phenoml/types/search_concept.py,sha256=Vc46JVMQbhve23wGu0V66Lom1VT1Y47fEtyrGHD6eBU,124
196
188
  phenoml/version.py,sha256=5HhaEGv3OL_Nw9_mC28UFdsvpQrZpjr14na7Pmw8pFY,74
197
- phenoml/workflows/__init__.py,sha256=E5zGMUPNwOQ66t45ZjdieeH83AoaIh7L87eHmqhxGvk,1748
198
- phenoml/workflows/client.py,sha256=l-sFVgcV0s5GNTWIzk9YSu0leNqcxzZZaZ9SFs-QUH8,5854
189
+ phenoml/workflows/__init__.py,sha256=JTdDqPTJm8RJmANElAWwbSV5J9DB-CDZsMQhGItXYsw,1650
190
+ phenoml/workflows/client.py,sha256=8h5cqo2mIG6A-AXpyHJKs0p6Z4VtE_rLvfyMXkakbBM,21124
199
191
  phenoml/workflows/errors/__init__.py,sha256=Wnvf4XPELmAIZ-jVxx2t-dBNZ-X9PcDxPSL5EHqJr1Q,434
200
192
  phenoml/workflows/errors/bad_request_error.py,sha256=nv0bK4gtOnTon6a2NdVxJxHBje_O_7wIoRtXLZHovUQ,339
201
193
  phenoml/workflows/errors/forbidden_error.py,sha256=ek8-sffTy9gY3F0zyaSkcskDVvq9puXP_YvvB2BJYbA,338
202
194
  phenoml/workflows/errors/internal_server_error.py,sha256=biBHJfSP1_zWF5CJgxY4B8wrL1uC18RSccQ-BCKmYNs,343
203
195
  phenoml/workflows/errors/not_found_error.py,sha256=hQ1KdyGQJCBQqo6iLu2-szlKJdzaoV5odq_7kdXAEbc,337
204
196
  phenoml/workflows/errors/unauthorized_error.py,sha256=h8T6QhXuTo0GLL9MKfIM5p--wDqlB1-ZkMp3lY-aM3E,341
205
- phenoml/workflows/mcp_server/__init__.py,sha256=4RRTSH2KQdNJmQqxPc7Dty_8lvfWGkpz6rW7BLviE4c,126
206
- phenoml/workflows/mcp_server/client.py,sha256=lCEV28Ekr0w3cpxxcJavW-uHSLaHlcNmHc3HRVQ-hzU,7028
207
- phenoml/workflows/mcp_server/raw_client.py,sha256=a6IjYw0OsQ1mXkgWp3eVDPunYi1WlBO7VItHGZDcY8I,8726
208
- phenoml/workflows/mcp_server/tools/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
209
- phenoml/workflows/mcp_server/tools/client.py,sha256=bvYLPxJWtH7bBS2uUnrpPZogMBc1oTFd3mVgRozBTLk,7467
210
- phenoml/workflows/mcp_server/tools/raw_client.py,sha256=w_2DDoC31h92sSzEWGTpWuB1aD6sor-4mwHdcVBCRuM,9241
211
- phenoml/workflows/raw_client.py,sha256=8Rq7d2aXu20KtwO7KVQ1VhhlHXVGoxN71KHxVHfC-7s,6511
212
- phenoml/workflows/types/__init__.py,sha256=GjI__cYyi2jIPBI3zTZtgcAohbXXR45BEbUto3_sec8,1608
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
213
200
  phenoml/workflows/types/create_workflow_response.py,sha256=eBJCWx-couYx3Ao0ZUSq88lr8AniXEEPfVCTJdsfsHI,1362
214
201
  phenoml/workflows/types/decision_node_definition.py,sha256=Uf9u5LScqV69naOaTZ4jpR6QO15rQoEsI2Y57_qNISU,983
215
202
  phenoml/workflows/types/execute_workflow_response.py,sha256=TOqqW1i_bTDtUMtsz0Mw38zEGF-Yaw0-S3m6pS82-OI,920
@@ -219,6 +206,7 @@ phenoml/workflows/types/lang2fhir_search_definition.py,sha256=J6xwznc333PSynluBT
219
206
  phenoml/workflows/types/list_workflows_response.py,sha256=SaHER6yXiKDOkPHZ5Dua_LfGEDh7mE-UCbOrXUFE7Ss,1247
220
207
  phenoml/workflows/types/step_operation.py,sha256=uNV-kjOHqd8cNsJZJ7U7gJaM6IxzJ-e1YVxFZw-aCDE,1050
221
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
222
210
  phenoml/workflows/types/workflow_config.py,sha256=4Ip3b14EYe7YogswpqUOcAya7zudQevOOcWCWG7tlyQ,840
223
211
  phenoml/workflows/types/workflow_definition.py,sha256=o_NST3DhhhzoKwwMFfEC7MAOQRVpcVggf4XH2TRFO08,1700
224
212
  phenoml/workflows/types/workflow_graph.py,sha256=TFkS54k37kGpDut9HpKEbq4qca0EaS7FLcsdaS72wzk,693
@@ -228,17 +216,11 @@ phenoml/workflows/types/workflow_step.py,sha256=LHo0a0DuAnvDKGF2vhOeRL8EsSM00mS5
228
216
  phenoml/workflows/types/workflow_step_summary.py,sha256=oZLmVTffY90oa_3tedHsz44j0Y2NoENKBfZfzCz0-ok,1284
229
217
  phenoml/workflows/types/workflow_step_summary_type.py,sha256=jdHpqZwccCepA13IVLC7sWYPic3THkBRE2la3uYG4ug,196
230
218
  phenoml/workflows/types/workflow_step_type.py,sha256=tq0nUyU5HZyji-QZFj21LbZjrBVrSdRaKDd5N0QDD_4,189
231
- phenoml/workflows/workflows/__init__.py,sha256=dtP_OVBOAbWcFlcf50REHMK31wiceC1xY0yqGmlu5zk,465
232
- phenoml/workflows/workflows/client.py,sha256=0ySfhoPjnwJ9LiWmhgFbZAkGDjryGn3-vCQYsmnkWBk,21249
233
- phenoml/workflows/workflows/raw_client.py,sha256=jkhAhRSUJxpMZHf2rjyQdNGyIFoVWNilWfwMKpb1gJw,50921
234
- phenoml/workflows/workflows/types/__init__.py,sha256=dDs8lUtI5IobtjtNSAcXQEd37Q_SKKPhxPGTVi5fGr4,639
235
- phenoml/workflows/workflows/types/create_workflow_request_fhir_provider_id.py,sha256=ZtSMhSQqLgYwoXaG4XPpJl76ckw56J7rxmwgB1yGa5Y,154
236
- phenoml/workflows/workflows/types/update_workflow_request_fhir_provider_id.py,sha256=1ZhHnCRvUUJBdHbuAkZcYdM0j200Fe4FQDFrli05tpM,154
237
- phenoml/workflows/workflows/types/workflows_delete_response.py,sha256=FjSRSKx5QDjDEAa6Z6lXs_WszD5sEwMP-1EknUK-jP8,601
238
- phenoml/workflows/workflows/types/workflows_get_response.py,sha256=wUqEvSJQq_JAzJSsf4pnQ8TXPbM56omFjZgYK70I4FY,908
239
- phenoml/workflows/workflows/types/workflows_update_response.py,sha256=TsVrdo3PeGzerWq9caMrhomXXJBVPhbtcyFQ_KPKO48,1063
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
240
222
  phenoml/wrapper_client.py,sha256=JYTdhXgju4tOsata06wQY_ZbMsuMj3qaxkgvDzpY068,5022
241
- phenoml-0.0.6.dist-info/LICENSE,sha256=Am1fNNveR2gcmOloSWQTsnUw2SQEF8HtowFqIvlagfk,1064
242
- phenoml-0.0.6.dist-info/METADATA,sha256=TK1pJ_rgW9Qwe15xXQqg1z0_AeLKyIvbpybxrpcHIDw,5330
243
- phenoml-0.0.6.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
244
- phenoml-0.0.6.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,,
phenoml/types/__init__.py DELETED
@@ -1,21 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- # isort: skip_file
4
-
5
- from .cohort_response import CohortResponse
6
- from .lang2fhir_and_create_response import Lang2FhirAndCreateResponse
7
- from .lang2fhir_and_search_response import Lang2FhirAndSearchResponse
8
- from .mcp_server_response import McpServerResponse
9
- from .mcp_server_tool_call_response import McpServerToolCallResponse
10
- from .mcp_server_tool_response import McpServerToolResponse
11
- from .search_concept import SearchConcept
12
-
13
- __all__ = [
14
- "CohortResponse",
15
- "Lang2FhirAndCreateResponse",
16
- "Lang2FhirAndSearchResponse",
17
- "McpServerResponse",
18
- "McpServerToolCallResponse",
19
- "McpServerToolResponse",
20
- "SearchConcept",
21
- ]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- CohortResponse = typing.Optional[typing.Any]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- Lang2FhirAndCreateResponse = typing.Optional[typing.Any]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- Lang2FhirAndSearchResponse = typing.Optional[typing.Any]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- McpServerResponse = typing.Optional[typing.Any]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- McpServerToolCallResponse = typing.Optional[typing.Any]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- McpServerToolResponse = typing.Optional[typing.Any]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- SearchConcept = typing.Optional[typing.Any]
@@ -1,7 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- # isort: skip_file
4
-
5
- from . import tools
6
-
7
- __all__ = ["tools"]
@@ -1,274 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
6
- from ...core.request_options import RequestOptions
7
- from .raw_client import AsyncRawMcpServerClient, RawMcpServerClient
8
- from .tools.client import AsyncToolsClient, ToolsClient
9
-
10
-
11
- class McpServerClient:
12
- def __init__(self, *, client_wrapper: SyncClientWrapper):
13
- self._raw_client = RawMcpServerClient(client_wrapper=client_wrapper)
14
- self.tools = ToolsClient(client_wrapper=client_wrapper)
15
-
16
- @property
17
- def with_raw_response(self) -> RawMcpServerClient:
18
- """
19
- Retrieves a raw implementation of this client that returns raw responses.
20
-
21
- Returns
22
- -------
23
- RawMcpServerClient
24
- """
25
- return self._raw_client
26
-
27
- def create(self, *, request_options: typing.Optional[RequestOptions] = None) -> None:
28
- """
29
- Parameters
30
- ----------
31
- request_options : typing.Optional[RequestOptions]
32
- Request-specific configuration.
33
-
34
- Returns
35
- -------
36
- None
37
-
38
- Examples
39
- --------
40
- from phenoml import phenoml
41
-
42
- client = phenoml(
43
- token="YOUR_TOKEN",
44
- )
45
- client.workflows.mcp_server.create()
46
- """
47
- _response = self._raw_client.create(request_options=request_options)
48
- return _response.data
49
-
50
- def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> None:
51
- """
52
- Parameters
53
- ----------
54
- request_options : typing.Optional[RequestOptions]
55
- Request-specific configuration.
56
-
57
- Returns
58
- -------
59
- None
60
-
61
- Examples
62
- --------
63
- from phenoml import phenoml
64
-
65
- client = phenoml(
66
- token="YOUR_TOKEN",
67
- )
68
- client.workflows.mcp_server.list()
69
- """
70
- _response = self._raw_client.list(request_options=request_options)
71
- return _response.data
72
-
73
- def get(self, mcp_server_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
74
- """
75
- Parameters
76
- ----------
77
- mcp_server_id : str
78
-
79
- request_options : typing.Optional[RequestOptions]
80
- Request-specific configuration.
81
-
82
- Returns
83
- -------
84
- None
85
-
86
- Examples
87
- --------
88
- from phenoml import phenoml
89
-
90
- client = phenoml(
91
- token="YOUR_TOKEN",
92
- )
93
- client.workflows.mcp_server.get(
94
- mcp_server_id="mcp_server_id",
95
- )
96
- """
97
- _response = self._raw_client.get(mcp_server_id, request_options=request_options)
98
- return _response.data
99
-
100
- def delete(self, mcp_server_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
101
- """
102
- Parameters
103
- ----------
104
- mcp_server_id : str
105
-
106
- request_options : typing.Optional[RequestOptions]
107
- Request-specific configuration.
108
-
109
- Returns
110
- -------
111
- None
112
-
113
- Examples
114
- --------
115
- from phenoml import phenoml
116
-
117
- client = phenoml(
118
- token="YOUR_TOKEN",
119
- )
120
- client.workflows.mcp_server.delete(
121
- mcp_server_id="mcp_server_id",
122
- )
123
- """
124
- _response = self._raw_client.delete(mcp_server_id, request_options=request_options)
125
- return _response.data
126
-
127
-
128
- class AsyncMcpServerClient:
129
- def __init__(self, *, client_wrapper: AsyncClientWrapper):
130
- self._raw_client = AsyncRawMcpServerClient(client_wrapper=client_wrapper)
131
- self.tools = AsyncToolsClient(client_wrapper=client_wrapper)
132
-
133
- @property
134
- def with_raw_response(self) -> AsyncRawMcpServerClient:
135
- """
136
- Retrieves a raw implementation of this client that returns raw responses.
137
-
138
- Returns
139
- -------
140
- AsyncRawMcpServerClient
141
- """
142
- return self._raw_client
143
-
144
- async def create(self, *, request_options: typing.Optional[RequestOptions] = None) -> None:
145
- """
146
- Parameters
147
- ----------
148
- request_options : typing.Optional[RequestOptions]
149
- Request-specific configuration.
150
-
151
- Returns
152
- -------
153
- None
154
-
155
- Examples
156
- --------
157
- import asyncio
158
-
159
- from phenoml import Asyncphenoml
160
-
161
- client = Asyncphenoml(
162
- token="YOUR_TOKEN",
163
- )
164
-
165
-
166
- async def main() -> None:
167
- await client.workflows.mcp_server.create()
168
-
169
-
170
- asyncio.run(main())
171
- """
172
- _response = await self._raw_client.create(request_options=request_options)
173
- return _response.data
174
-
175
- async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> None:
176
- """
177
- Parameters
178
- ----------
179
- request_options : typing.Optional[RequestOptions]
180
- Request-specific configuration.
181
-
182
- Returns
183
- -------
184
- None
185
-
186
- Examples
187
- --------
188
- import asyncio
189
-
190
- from phenoml import Asyncphenoml
191
-
192
- client = Asyncphenoml(
193
- token="YOUR_TOKEN",
194
- )
195
-
196
-
197
- async def main() -> None:
198
- await client.workflows.mcp_server.list()
199
-
200
-
201
- asyncio.run(main())
202
- """
203
- _response = await self._raw_client.list(request_options=request_options)
204
- return _response.data
205
-
206
- async def get(self, mcp_server_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
207
- """
208
- Parameters
209
- ----------
210
- mcp_server_id : str
211
-
212
- request_options : typing.Optional[RequestOptions]
213
- Request-specific configuration.
214
-
215
- Returns
216
- -------
217
- None
218
-
219
- Examples
220
- --------
221
- import asyncio
222
-
223
- from phenoml import Asyncphenoml
224
-
225
- client = Asyncphenoml(
226
- token="YOUR_TOKEN",
227
- )
228
-
229
-
230
- async def main() -> None:
231
- await client.workflows.mcp_server.get(
232
- mcp_server_id="mcp_server_id",
233
- )
234
-
235
-
236
- asyncio.run(main())
237
- """
238
- _response = await self._raw_client.get(mcp_server_id, request_options=request_options)
239
- return _response.data
240
-
241
- async def delete(self, mcp_server_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
242
- """
243
- Parameters
244
- ----------
245
- mcp_server_id : str
246
-
247
- request_options : typing.Optional[RequestOptions]
248
- Request-specific configuration.
249
-
250
- Returns
251
- -------
252
- None
253
-
254
- Examples
255
- --------
256
- import asyncio
257
-
258
- from phenoml import Asyncphenoml
259
-
260
- client = Asyncphenoml(
261
- token="YOUR_TOKEN",
262
- )
263
-
264
-
265
- async def main() -> None:
266
- await client.workflows.mcp_server.delete(
267
- mcp_server_id="mcp_server_id",
268
- )
269
-
270
-
271
- asyncio.run(main())
272
- """
273
- _response = await self._raw_client.delete(mcp_server_id, request_options=request_options)
274
- return _response.data