groundx 2.6.2__py3-none-any.whl → 2.6.3__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.
groundx/__init__.py CHANGED
@@ -77,7 +77,7 @@ from .environment import GroundXEnvironment
77
77
  from .ingest import AsyncGroundX, GroundX
78
78
  from .search import SearchContentRequestId
79
79
  from .version import __version__
80
- from .workflows import WorkflowGetRequestId
80
+ from .workflows import WorkflowsGetRequestId
81
81
 
82
82
  __all__ = [
83
83
  "AsyncGroundX",
@@ -139,7 +139,6 @@ __all__ = [
139
139
  "WorkflowEngine",
140
140
  "WorkflowEngineReasoningEffort",
141
141
  "WorkflowEngineService",
142
- "WorkflowGetRequestId",
143
142
  "WorkflowPrompt",
144
143
  "WorkflowPromptGroup",
145
144
  "WorkflowPromptRole",
@@ -153,6 +152,7 @@ __all__ = [
153
152
  "WorkflowStepsSearchQuery",
154
153
  "WorkflowStepsSectInstruct",
155
154
  "WorkflowStepsSectSummary",
155
+ "WorkflowsGetRequestId",
156
156
  "WorkflowsResponse",
157
157
  "__version__",
158
158
  "buckets",
@@ -14,10 +14,10 @@ class BaseClientWrapper:
14
14
 
15
15
  def get_headers(self) -> typing.Dict[str, str]:
16
16
  headers: typing.Dict[str, str] = {
17
- "User-Agent": "groundx/2.6.2",
17
+ "User-Agent": "groundx/2.6.3",
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "groundx",
20
- "X-Fern-SDK-Version": "2.6.2",
20
+ "X-Fern-SDK-Version": "2.6.3",
21
21
  }
22
22
  headers["X-API-Key"] = self.api_key
23
23
  return headers
@@ -2,6 +2,6 @@
2
2
 
3
3
  # isort: skip_file
4
4
 
5
- from .types import WorkflowGetRequestId
5
+ from .types import WorkflowsGetRequestId
6
6
 
7
- __all__ = ["WorkflowGetRequestId"]
7
+ __all__ = ["WorkflowsGetRequestId"]
@@ -9,7 +9,7 @@ from ..types.workflow_response import WorkflowResponse
9
9
  from ..types.workflow_steps import WorkflowSteps
10
10
  from ..types.workflows_response import WorkflowsResponse
11
11
  from .raw_client import AsyncRawWorkflowsClient, RawWorkflowsClient
12
- from .types.workflow_get_request_id import WorkflowGetRequestId
12
+ from .types.workflows_get_request_id import WorkflowsGetRequestId
13
13
 
14
14
  # this is used as the default value for optional parameters
15
15
  OMIT = typing.cast(typing.Any, ...)
@@ -30,7 +30,7 @@ class WorkflowsClient:
30
30
  """
31
31
  return self._raw_client
32
32
 
33
- def workflow_list(self, *, request_options: typing.Optional[RequestOptions] = None) -> WorkflowsResponse:
33
+ def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> WorkflowsResponse:
34
34
  """
35
35
  Get all workflows associated with the API key.
36
36
 
@@ -51,12 +51,12 @@ class WorkflowsClient:
51
51
  client = GroundX(
52
52
  api_key="YOUR_API_KEY",
53
53
  )
54
- client.workflows.workflow_list()
54
+ client.workflows.list()
55
55
  """
56
- _response = self._raw_client.workflow_list(request_options=request_options)
56
+ _response = self._raw_client.list(request_options=request_options)
57
57
  return _response.data
58
58
 
59
- def workflow_create(
59
+ def create(
60
60
  self,
61
61
  *,
62
62
  name: typing.Optional[str] = OMIT,
@@ -88,9 +88,9 @@ class WorkflowsClient:
88
88
  client = GroundX(
89
89
  api_key="YOUR_API_KEY",
90
90
  )
91
- client.workflows.workflow_create()
91
+ client.workflows.create()
92
92
  """
93
- _response = self._raw_client.workflow_create(name=name, steps=steps, request_options=request_options)
93
+ _response = self._raw_client.create(name=name, steps=steps, request_options=request_options)
94
94
  return _response.data
95
95
 
96
96
  def add_to_account(
@@ -220,15 +220,15 @@ class WorkflowsClient:
220
220
  _response = self._raw_client.remove_from_id(id, request_options=request_options)
221
221
  return _response.data
222
222
 
223
- def workflow_get(
224
- self, id: WorkflowGetRequestId, *, request_options: typing.Optional[RequestOptions] = None
223
+ def get(
224
+ self, id: WorkflowsGetRequestId, *, request_options: typing.Optional[RequestOptions] = None
225
225
  ) -> WorkflowResponse:
226
226
  """
227
227
  look up a specific workflow by groupId, bucketId, or workflowId.
228
228
 
229
229
  Parameters
230
230
  ----------
231
- id : WorkflowGetRequestId
231
+ id : WorkflowsGetRequestId
232
232
  The id of the group, bucket, or workflow to look up.
233
233
 
234
234
  request_options : typing.Optional[RequestOptions]
@@ -246,14 +246,14 @@ class WorkflowsClient:
246
246
  client = GroundX(
247
247
  api_key="YOUR_API_KEY",
248
248
  )
249
- client.workflows.workflow_get(
249
+ client.workflows.get(
250
250
  id=1,
251
251
  )
252
252
  """
253
- _response = self._raw_client.workflow_get(id, request_options=request_options)
253
+ _response = self._raw_client.get(id, request_options=request_options)
254
254
  return _response.data
255
255
 
256
- def workflow_update(
256
+ def update(
257
257
  self,
258
258
  id: str,
259
259
  *,
@@ -293,17 +293,17 @@ class WorkflowsClient:
293
293
  client = GroundX(
294
294
  api_key="YOUR_API_KEY",
295
295
  )
296
- client.workflows.workflow_update(
296
+ client.workflows.update(
297
297
  id="id",
298
298
  workflow_id="workflowId",
299
299
  )
300
300
  """
301
- _response = self._raw_client.workflow_update(
301
+ _response = self._raw_client.update(
302
302
  id, workflow_id=workflow_id, name=name, steps=steps, request_options=request_options
303
303
  )
304
304
  return _response.data
305
305
 
306
- def workflow_delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MessageResponse:
306
+ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MessageResponse:
307
307
  """
308
308
  Delete a workflow.
309
309
 
@@ -327,11 +327,11 @@ class WorkflowsClient:
327
327
  client = GroundX(
328
328
  api_key="YOUR_API_KEY",
329
329
  )
330
- client.workflows.workflow_delete(
330
+ client.workflows.delete(
331
331
  id="id",
332
332
  )
333
333
  """
334
- _response = self._raw_client.workflow_delete(id, request_options=request_options)
334
+ _response = self._raw_client.delete(id, request_options=request_options)
335
335
  return _response.data
336
336
 
337
337
 
@@ -350,7 +350,7 @@ class AsyncWorkflowsClient:
350
350
  """
351
351
  return self._raw_client
352
352
 
353
- async def workflow_list(self, *, request_options: typing.Optional[RequestOptions] = None) -> WorkflowsResponse:
353
+ async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> WorkflowsResponse:
354
354
  """
355
355
  Get all workflows associated with the API key.
356
356
 
@@ -376,15 +376,15 @@ class AsyncWorkflowsClient:
376
376
 
377
377
 
378
378
  async def main() -> None:
379
- await client.workflows.workflow_list()
379
+ await client.workflows.list()
380
380
 
381
381
 
382
382
  asyncio.run(main())
383
383
  """
384
- _response = await self._raw_client.workflow_list(request_options=request_options)
384
+ _response = await self._raw_client.list(request_options=request_options)
385
385
  return _response.data
386
386
 
387
- async def workflow_create(
387
+ async def create(
388
388
  self,
389
389
  *,
390
390
  name: typing.Optional[str] = OMIT,
@@ -421,12 +421,12 @@ class AsyncWorkflowsClient:
421
421
 
422
422
 
423
423
  async def main() -> None:
424
- await client.workflows.workflow_create()
424
+ await client.workflows.create()
425
425
 
426
426
 
427
427
  asyncio.run(main())
428
428
  """
429
- _response = await self._raw_client.workflow_create(name=name, steps=steps, request_options=request_options)
429
+ _response = await self._raw_client.create(name=name, steps=steps, request_options=request_options)
430
430
  return _response.data
431
431
 
432
432
  async def add_to_account(
@@ -590,15 +590,15 @@ class AsyncWorkflowsClient:
590
590
  _response = await self._raw_client.remove_from_id(id, request_options=request_options)
591
591
  return _response.data
592
592
 
593
- async def workflow_get(
594
- self, id: WorkflowGetRequestId, *, request_options: typing.Optional[RequestOptions] = None
593
+ async def get(
594
+ self, id: WorkflowsGetRequestId, *, request_options: typing.Optional[RequestOptions] = None
595
595
  ) -> WorkflowResponse:
596
596
  """
597
597
  look up a specific workflow by groupId, bucketId, or workflowId.
598
598
 
599
599
  Parameters
600
600
  ----------
601
- id : WorkflowGetRequestId
601
+ id : WorkflowsGetRequestId
602
602
  The id of the group, bucket, or workflow to look up.
603
603
 
604
604
  request_options : typing.Optional[RequestOptions]
@@ -621,17 +621,17 @@ class AsyncWorkflowsClient:
621
621
 
622
622
 
623
623
  async def main() -> None:
624
- await client.workflows.workflow_get(
624
+ await client.workflows.get(
625
625
  id=1,
626
626
  )
627
627
 
628
628
 
629
629
  asyncio.run(main())
630
630
  """
631
- _response = await self._raw_client.workflow_get(id, request_options=request_options)
631
+ _response = await self._raw_client.get(id, request_options=request_options)
632
632
  return _response.data
633
633
 
634
- async def workflow_update(
634
+ async def update(
635
635
  self,
636
636
  id: str,
637
637
  *,
@@ -676,7 +676,7 @@ class AsyncWorkflowsClient:
676
676
 
677
677
 
678
678
  async def main() -> None:
679
- await client.workflows.workflow_update(
679
+ await client.workflows.update(
680
680
  id="id",
681
681
  workflow_id="workflowId",
682
682
  )
@@ -684,14 +684,12 @@ class AsyncWorkflowsClient:
684
684
 
685
685
  asyncio.run(main())
686
686
  """
687
- _response = await self._raw_client.workflow_update(
687
+ _response = await self._raw_client.update(
688
688
  id, workflow_id=workflow_id, name=name, steps=steps, request_options=request_options
689
689
  )
690
690
  return _response.data
691
691
 
692
- async def workflow_delete(
693
- self, id: str, *, request_options: typing.Optional[RequestOptions] = None
694
- ) -> MessageResponse:
692
+ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MessageResponse:
695
693
  """
696
694
  Delete a workflow.
697
695
 
@@ -720,12 +718,12 @@ class AsyncWorkflowsClient:
720
718
 
721
719
 
722
720
  async def main() -> None:
723
- await client.workflows.workflow_delete(
721
+ await client.workflows.delete(
724
722
  id="id",
725
723
  )
726
724
 
727
725
 
728
726
  asyncio.run(main())
729
727
  """
730
- _response = await self._raw_client.workflow_delete(id, request_options=request_options)
728
+ _response = await self._raw_client.delete(id, request_options=request_options)
731
729
  return _response.data
@@ -14,7 +14,7 @@ from ..types.message_response import MessageResponse
14
14
  from ..types.workflow_response import WorkflowResponse
15
15
  from ..types.workflow_steps import WorkflowSteps
16
16
  from ..types.workflows_response import WorkflowsResponse
17
- from .types.workflow_get_request_id import WorkflowGetRequestId
17
+ from .types.workflows_get_request_id import WorkflowsGetRequestId
18
18
 
19
19
  # this is used as the default value for optional parameters
20
20
  OMIT = typing.cast(typing.Any, ...)
@@ -24,9 +24,7 @@ class RawWorkflowsClient:
24
24
  def __init__(self, *, client_wrapper: SyncClientWrapper):
25
25
  self._client_wrapper = client_wrapper
26
26
 
27
- def workflow_list(
28
- self, *, request_options: typing.Optional[RequestOptions] = None
29
- ) -> HttpResponse[WorkflowsResponse]:
27
+ def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[WorkflowsResponse]:
30
28
  """
31
29
  Get all workflows associated with the API key.
32
30
 
@@ -60,7 +58,7 @@ class RawWorkflowsClient:
60
58
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
61
59
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
62
60
 
63
- def workflow_create(
61
+ def create(
64
62
  self,
65
63
  *,
66
64
  name: typing.Optional[str] = OMIT,
@@ -285,15 +283,15 @@ class RawWorkflowsClient:
285
283
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
286
284
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
287
285
 
288
- def workflow_get(
289
- self, id: WorkflowGetRequestId, *, request_options: typing.Optional[RequestOptions] = None
286
+ def get(
287
+ self, id: WorkflowsGetRequestId, *, request_options: typing.Optional[RequestOptions] = None
290
288
  ) -> HttpResponse[WorkflowResponse]:
291
289
  """
292
290
  look up a specific workflow by groupId, bucketId, or workflowId.
293
291
 
294
292
  Parameters
295
293
  ----------
296
- id : WorkflowGetRequestId
294
+ id : WorkflowsGetRequestId
297
295
  The id of the group, bucket, or workflow to look up.
298
296
 
299
297
  request_options : typing.Optional[RequestOptions]
@@ -324,7 +322,7 @@ class RawWorkflowsClient:
324
322
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
325
323
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
326
324
 
327
- def workflow_update(
325
+ def update(
328
326
  self,
329
327
  id: str,
330
328
  *,
@@ -388,7 +386,7 @@ class RawWorkflowsClient:
388
386
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
389
387
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
390
388
 
391
- def workflow_delete(
389
+ def delete(
392
390
  self, id: str, *, request_options: typing.Optional[RequestOptions] = None
393
391
  ) -> HttpResponse[MessageResponse]:
394
392
  """
@@ -432,7 +430,7 @@ class AsyncRawWorkflowsClient:
432
430
  def __init__(self, *, client_wrapper: AsyncClientWrapper):
433
431
  self._client_wrapper = client_wrapper
434
432
 
435
- async def workflow_list(
433
+ async def list(
436
434
  self, *, request_options: typing.Optional[RequestOptions] = None
437
435
  ) -> AsyncHttpResponse[WorkflowsResponse]:
438
436
  """
@@ -468,7 +466,7 @@ class AsyncRawWorkflowsClient:
468
466
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
469
467
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
470
468
 
471
- async def workflow_create(
469
+ async def create(
472
470
  self,
473
471
  *,
474
472
  name: typing.Optional[str] = OMIT,
@@ -693,15 +691,15 @@ class AsyncRawWorkflowsClient:
693
691
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
694
692
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
695
693
 
696
- async def workflow_get(
697
- self, id: WorkflowGetRequestId, *, request_options: typing.Optional[RequestOptions] = None
694
+ async def get(
695
+ self, id: WorkflowsGetRequestId, *, request_options: typing.Optional[RequestOptions] = None
698
696
  ) -> AsyncHttpResponse[WorkflowResponse]:
699
697
  """
700
698
  look up a specific workflow by groupId, bucketId, or workflowId.
701
699
 
702
700
  Parameters
703
701
  ----------
704
- id : WorkflowGetRequestId
702
+ id : WorkflowsGetRequestId
705
703
  The id of the group, bucket, or workflow to look up.
706
704
 
707
705
  request_options : typing.Optional[RequestOptions]
@@ -732,7 +730,7 @@ class AsyncRawWorkflowsClient:
732
730
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
733
731
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
734
732
 
735
- async def workflow_update(
733
+ async def update(
736
734
  self,
737
735
  id: str,
738
736
  *,
@@ -796,7 +794,7 @@ class AsyncRawWorkflowsClient:
796
794
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
797
795
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
798
796
 
799
- async def workflow_delete(
797
+ async def delete(
800
798
  self, id: str, *, request_options: typing.Optional[RequestOptions] = None
801
799
  ) -> AsyncHttpResponse[MessageResponse]:
802
800
  """
@@ -2,6 +2,6 @@
2
2
 
3
3
  # isort: skip_file
4
4
 
5
- from .workflow_get_request_id import WorkflowGetRequestId
5
+ from .workflows_get_request_id import WorkflowsGetRequestId
6
6
 
7
- __all__ = ["WorkflowGetRequestId"]
7
+ __all__ = ["WorkflowsGetRequestId"]
@@ -2,4 +2,4 @@
2
2
 
3
3
  import typing
4
4
 
5
- WorkflowGetRequestId = typing.Union[int, str]
5
+ WorkflowsGetRequestId = typing.Union[int, str]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: groundx
3
- Version: 2.6.2
3
+ Version: 2.6.3
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -1,11 +1,11 @@
1
- groundx/__init__.py,sha256=GPYfE6LAmJPuHE---g6UWJBO4vZSh6uAW9OCuQH0yww,4127
1
+ groundx/__init__.py,sha256=4J8NWDCfslhhQE1OKHrYQ98bP-EmfPqJlOo6CtGeO1c,4129
2
2
  groundx/buckets/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
3
3
  groundx/buckets/client.py,sha256=F1tcqQoqmrC8lQtRZvmXldIdVxIp1LWfdbAfY8SB5sM,11460
4
4
  groundx/buckets/raw_client.py,sha256=T2Ty5obN7eHbaxHGAimzjM8MGOmSOQEckhciyZkzcjE,23873
5
5
  groundx/client.py,sha256=PksVIgU2pXup9Ewkl7NcLPvQOIhg_Do3cJVGgXqqQjE,6641
6
6
  groundx/core/__init__.py,sha256=lTcqUPXcx4112yLDd70RAPeqq6tu3eFMe1pKOqkW9JQ,1562
7
7
  groundx/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
8
- groundx/core/client_wrapper.py,sha256=D1IvPdq1PXOyeZYA5uZdKfJbZLMdOwihQQdFyvMvfr8,1822
8
+ groundx/core/client_wrapper.py,sha256=k60nUQUg22U-y88dW1rgM5sq-Y7zKrBPR8BZoDO8gS4,1822
9
9
  groundx/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
10
10
  groundx/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
11
11
  groundx/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
@@ -146,12 +146,12 @@ groundx/types/workflow_steps_sect_instruct.py,sha256=EJhl5__qyC1o1-CQh9HL-bwGmWs
146
146
  groundx/types/workflow_steps_sect_summary.py,sha256=76MalXb7GO0m4x-UllrYkkvQbSjx9Qu1WROlxvyNCRU,781
147
147
  groundx/types/workflows_response.py,sha256=lKy6N4r0jTVK2S3mnmTzAvPjkmOl4BTnU2q0k-TbqjQ,597
148
148
  groundx/version.py,sha256=1yVogKaq260fQfckM2RYN2144SEw0QROsZW8ICtkG4U,74
149
- groundx/workflows/__init__.py,sha256=fGf-XTsj0bkp_nV-svtq33R1LwufLe4t_3qsSBTaTT4,161
150
- groundx/workflows/client.py,sha256=4Rrn35oz4VagsdOOPSrb-Md9sXnnFPUB7Hgu6yEDmk8,19582
151
- groundx/workflows/raw_client.py,sha256=UVI38ESwtxzew-dos5ssyJ9s-RrSd-zJVf1gKoX6-a4,30897
152
- groundx/workflows/types/__init__.py,sha256=zlK65Gp_dtVFjQmx6QIQfkR-T2w77KMCopzBHuCjfpY,179
153
- groundx/workflows/types/workflow_get_request_id.py,sha256=z7oyA9qhGIc0zkDgD6JaEqLOPcMfwc0NBpzi7uVuDOs,126
154
- groundx-2.6.2.dist-info/LICENSE,sha256=dFE6nY1bHnSn6NqmdlghlU1gQqLqYNphrceGVehSa7o,1065
155
- groundx-2.6.2.dist-info/METADATA,sha256=B1bE4tGaymiZZgP-9TvZF4UUrrwITyQpv2RDgNV3swY,5919
156
- groundx-2.6.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
157
- groundx-2.6.2.dist-info/RECORD,,
149
+ groundx/workflows/__init__.py,sha256=qS5TOSfeClFC9oVjYFqCMuNlZOHTcU0cNOrNmDpflQs,163
150
+ groundx/workflows/client.py,sha256=Z6Ua0DGLMAK0s2HtrbJjLCQe2fp96gyXu8BHX4z276c,19304
151
+ groundx/workflows/raw_client.py,sha256=SQ3CBWTIwatEdz1igO-1p-dGrnAHXIliK_ksT8ImWkM,30799
152
+ groundx/workflows/types/__init__.py,sha256=r-3IiPgf480gPstg62dFXecJQNOoTaJzcqul0_8_8DM,182
153
+ groundx/workflows/types/workflows_get_request_id.py,sha256=pGcBQwEQYDxoxBGpACdy3zf1Qc2rjcN3zv-TZXHu9p0,127
154
+ groundx-2.6.3.dist-info/LICENSE,sha256=dFE6nY1bHnSn6NqmdlghlU1gQqLqYNphrceGVehSa7o,1065
155
+ groundx-2.6.3.dist-info/METADATA,sha256=1rpHjrR0rnvw5E946QjT0xTZDLIbySvcE5VPXGsceaQ,5919
156
+ groundx-2.6.3.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
157
+ groundx-2.6.3.dist-info/RECORD,,