groundx 2.6.5__py3-none-any.whl → 2.6.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.

Potentially problematic release.


This version of groundx might be problematic. Click here for more details.

groundx/__init__.py CHANGED
@@ -59,6 +59,7 @@ from .types import (
59
59
  WorkflowPrompt,
60
60
  WorkflowPromptGroup,
61
61
  WorkflowPromptRole,
62
+ WorkflowRequest,
62
63
  WorkflowResponse,
63
64
  WorkflowStep,
64
65
  WorkflowStepConfig,
@@ -136,6 +137,7 @@ __all__ = [
136
137
  "WorkflowPrompt",
137
138
  "WorkflowPromptGroup",
138
139
  "WorkflowPromptRole",
140
+ "WorkflowRequest",
139
141
  "WorkflowResponse",
140
142
  "WorkflowStep",
141
143
  "WorkflowStepConfig",
@@ -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.5",
17
+ "User-Agent": "groundx/2.6.7",
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "groundx",
20
- "X-Fern-SDK-Version": "2.6.5",
20
+ "X-Fern-SDK-Version": "2.6.7",
21
21
  }
22
22
  headers["X-API-Key"] = self.api_key
23
23
  return headers
groundx/types/__init__.py CHANGED
@@ -58,6 +58,7 @@ from .workflow_engine_service import WorkflowEngineService
58
58
  from .workflow_prompt import WorkflowPrompt
59
59
  from .workflow_prompt_group import WorkflowPromptGroup
60
60
  from .workflow_prompt_role import WorkflowPromptRole
61
+ from .workflow_request import WorkflowRequest
61
62
  from .workflow_response import WorkflowResponse
62
63
  from .workflow_step import WorkflowStep
63
64
  from .workflow_step_config import WorkflowStepConfig
@@ -121,6 +122,7 @@ __all__ = [
121
122
  "WorkflowPrompt",
122
123
  "WorkflowPromptGroup",
123
124
  "WorkflowPromptRole",
125
+ "WorkflowRequest",
124
126
  "WorkflowResponse",
125
127
  "WorkflowStep",
126
128
  "WorkflowStepConfig",
@@ -0,0 +1,25 @@
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_steps import WorkflowSteps
8
+
9
+
10
+ class WorkflowRequest(UniversalBaseModel):
11
+ name: typing.Optional[str] = pydantic.Field(default=None)
12
+ """
13
+ The name of the workflow being created.
14
+ """
15
+
16
+ steps: typing.Optional[WorkflowSteps] = None
17
+
18
+ if IS_PYDANTIC_V2:
19
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
20
+ else:
21
+
22
+ class Config:
23
+ frozen = True
24
+ smart_union = True
25
+ extra = pydantic.Extra.allow
@@ -257,7 +257,6 @@ class WorkflowsClient:
257
257
  self,
258
258
  id: str,
259
259
  *,
260
- workflow_id: str,
261
260
  name: typing.Optional[str] = OMIT,
262
261
  steps: typing.Optional[WorkflowSteps] = OMIT,
263
262
  request_options: typing.Optional[RequestOptions] = None,
@@ -270,9 +269,6 @@ class WorkflowsClient:
270
269
  id : str
271
270
  The workflowId of the workflow being updated.
272
271
 
273
- workflow_id : str
274
- The id of the workflow that is being updated.
275
-
276
272
  name : typing.Optional[str]
277
273
  The name of the workflow being created.
278
274
 
@@ -295,12 +291,9 @@ class WorkflowsClient:
295
291
  )
296
292
  client.workflows.update(
297
293
  id="id",
298
- workflow_id="workflowId",
299
294
  )
300
295
  """
301
- _response = self._raw_client.update(
302
- id, workflow_id=workflow_id, name=name, steps=steps, request_options=request_options
303
- )
296
+ _response = self._raw_client.update(id, name=name, steps=steps, request_options=request_options)
304
297
  return _response.data
305
298
 
306
299
  def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MessageResponse:
@@ -635,7 +628,6 @@ class AsyncWorkflowsClient:
635
628
  self,
636
629
  id: str,
637
630
  *,
638
- workflow_id: str,
639
631
  name: typing.Optional[str] = OMIT,
640
632
  steps: typing.Optional[WorkflowSteps] = OMIT,
641
633
  request_options: typing.Optional[RequestOptions] = None,
@@ -648,9 +640,6 @@ class AsyncWorkflowsClient:
648
640
  id : str
649
641
  The workflowId of the workflow being updated.
650
642
 
651
- workflow_id : str
652
- The id of the workflow that is being updated.
653
-
654
643
  name : typing.Optional[str]
655
644
  The name of the workflow being created.
656
645
 
@@ -678,15 +667,12 @@ class AsyncWorkflowsClient:
678
667
  async def main() -> None:
679
668
  await client.workflows.update(
680
669
  id="id",
681
- workflow_id="workflowId",
682
670
  )
683
671
 
684
672
 
685
673
  asyncio.run(main())
686
674
  """
687
- _response = await self._raw_client.update(
688
- id, workflow_id=workflow_id, name=name, steps=steps, request_options=request_options
689
- )
675
+ _response = await self._raw_client.update(id, name=name, steps=steps, request_options=request_options)
690
676
  return _response.data
691
677
 
692
678
  async def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MessageResponse:
@@ -326,7 +326,6 @@ class RawWorkflowsClient:
326
326
  self,
327
327
  id: str,
328
328
  *,
329
- workflow_id: str,
330
329
  name: typing.Optional[str] = OMIT,
331
330
  steps: typing.Optional[WorkflowSteps] = OMIT,
332
331
  request_options: typing.Optional[RequestOptions] = None,
@@ -339,9 +338,6 @@ class RawWorkflowsClient:
339
338
  id : str
340
339
  The workflowId of the workflow being updated.
341
340
 
342
- workflow_id : str
343
- The id of the workflow that is being updated.
344
-
345
341
  name : typing.Optional[str]
346
342
  The name of the workflow being created.
347
343
 
@@ -363,7 +359,6 @@ class RawWorkflowsClient:
363
359
  "steps": convert_and_respect_annotation_metadata(
364
360
  object_=steps, annotation=WorkflowSteps, direction="write"
365
361
  ),
366
- "workflowId": workflow_id,
367
362
  },
368
363
  headers={
369
364
  "content-type": "application/json",
@@ -734,7 +729,6 @@ class AsyncRawWorkflowsClient:
734
729
  self,
735
730
  id: str,
736
731
  *,
737
- workflow_id: str,
738
732
  name: typing.Optional[str] = OMIT,
739
733
  steps: typing.Optional[WorkflowSteps] = OMIT,
740
734
  request_options: typing.Optional[RequestOptions] = None,
@@ -747,9 +741,6 @@ class AsyncRawWorkflowsClient:
747
741
  id : str
748
742
  The workflowId of the workflow being updated.
749
743
 
750
- workflow_id : str
751
- The id of the workflow that is being updated.
752
-
753
744
  name : typing.Optional[str]
754
745
  The name of the workflow being created.
755
746
 
@@ -771,7 +762,6 @@ class AsyncRawWorkflowsClient:
771
762
  "steps": convert_and_respect_annotation_metadata(
772
763
  object_=steps, annotation=WorkflowSteps, direction="write"
773
764
  ),
774
- "workflowId": workflow_id,
775
765
  },
776
766
  headers={
777
767
  "content-type": "application/json",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: groundx
3
- Version: 2.6.5
3
+ Version: 2.6.7
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -1,11 +1,11 @@
1
- groundx/__init__.py,sha256=ZiJn5D9o6xe7ma9NkX431LmMDhQ0bLAr_gPcHT8OTWU,3747
1
+ groundx/__init__.py,sha256=YxOUzZv-B0yK-XtH0Gweb6lbaCHroZ1HFDY7iWte6Xg,3791
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=mBKFr3FvLVO8SVKoDz8k2em-aI2ftNY-MYCy19sR8q0,1822
8
+ groundx/core/client_wrapper.py,sha256=d__svY6FE3r6VKTmQ6KQT6A3dTGLEQV0plRoQZYg9wU,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
@@ -77,7 +77,7 @@ groundx/search/client.py,sha256=ArfAbcQGS6eCWuMU5Ld-AQ8nB0Vh-4Jec3tt05QJtuM,1378
77
77
  groundx/search/raw_client.py,sha256=_qO5u62e1d0rVbRUeyJFdt85v7WT_bSHcSLf8wJvfgQ,19545
78
78
  groundx/search/types/__init__.py,sha256=sy0s9qFdeT4Q3SJxK6hrulnsPirVpKkjxI29OqLTY0s,185
79
79
  groundx/search/types/search_content_request_id.py,sha256=us7mYdzR0qPur_wR5I9BhHaLEzC5nLBRna6-xq4M1ec,128
80
- groundx/types/__init__.py,sha256=mq05MpxH6EIXWDPH1FspyTFaZf1R0K1h8AhtSHbByJw,4806
80
+ groundx/types/__init__.py,sha256=kDUbBjQTCegYtyWVZ_8mZOlBLis2vJwOgMg6znOf_WI,4875
81
81
  groundx/types/bounding_box_detail.py,sha256=5_l3vFNIs2n-U2VXEpyPRcTcFKpMWrpvzQiIL88XNEs,1796
82
82
  groundx/types/bucket_detail.py,sha256=sYKzUCPCAosh2jTFfSDtSn0bEsLL228kLjA51jFEYwY,1475
83
83
  groundx/types/bucket_list_response.py,sha256=m1lO4PElbxc5VFCLchPtdWfCTlfrm8enpTe3bg1ng7Y,1060
@@ -134,6 +134,7 @@ groundx/types/workflow_engine_service.py,sha256=8EPL1ffSnv1r547eixSryVqO-X18TYFy
134
134
  groundx/types/workflow_prompt.py,sha256=uAKLSm57MJcgum5libVrK8d-4-MmidptdQ7IfxmkTx0,1132
135
135
  groundx/types/workflow_prompt_group.py,sha256=iT3QibXPAVyA_aAC8Z2aEqDul1xelbFOcsjYnHrPB6Q,724
136
136
  groundx/types/workflow_prompt_role.py,sha256=oasiW8V0qVZGMSULH0cPRySvf28SX4ESbzyfECrkIX0,173
137
+ groundx/types/workflow_request.py,sha256=npkSteKdUCECOsh2Scr7jQFZU8FVm1RuSOUA5RiYjME,722
137
138
  groundx/types/workflow_response.py,sha256=5SFtWKKTQW3L26Tv02Cc0aI4oZN-3NaCwzNk5WD762I,582
138
139
  groundx/types/workflow_step.py,sha256=YRTW79pJMb76NckGK3tWke8CCjOPkUfLD1YQ76pA5Zk,1248
139
140
  groundx/types/workflow_step_config.py,sha256=IaKxo37d2HoBJm7y2MVGWeUsXhnRO22Hqh6aEW-Z3uw,805
@@ -141,11 +142,11 @@ groundx/types/workflow_steps.py,sha256=qK4vyjT7nc3FY2dlS_gVGl_p9r9DlWUOh7FnNuFHf
141
142
  groundx/types/workflows_response.py,sha256=lKy6N4r0jTVK2S3mnmTzAvPjkmOl4BTnU2q0k-TbqjQ,597
142
143
  groundx/version.py,sha256=1yVogKaq260fQfckM2RYN2144SEw0QROsZW8ICtkG4U,74
143
144
  groundx/workflows/__init__.py,sha256=qS5TOSfeClFC9oVjYFqCMuNlZOHTcU0cNOrNmDpflQs,163
144
- groundx/workflows/client.py,sha256=Z6Ua0DGLMAK0s2HtrbJjLCQe2fp96gyXu8BHX4z276c,19304
145
- groundx/workflows/raw_client.py,sha256=SQ3CBWTIwatEdz1igO-1p-dGrnAHXIliK_ksT8ImWkM,30799
145
+ groundx/workflows/client.py,sha256=02k-qhjnn7H5QnlCGgqgA_UKtKufzvGVXb88Q4bGBtE,18908
146
+ groundx/workflows/raw_client.py,sha256=JrLKPxIFMa_RiDEn1PHyDyTH3fpeQspDrsqnWqiLu8Y,30491
146
147
  groundx/workflows/types/__init__.py,sha256=r-3IiPgf480gPstg62dFXecJQNOoTaJzcqul0_8_8DM,182
147
148
  groundx/workflows/types/workflows_get_request_id.py,sha256=pGcBQwEQYDxoxBGpACdy3zf1Qc2rjcN3zv-TZXHu9p0,127
148
- groundx-2.6.5.dist-info/LICENSE,sha256=dFE6nY1bHnSn6NqmdlghlU1gQqLqYNphrceGVehSa7o,1065
149
- groundx-2.6.5.dist-info/METADATA,sha256=Y3YkKTSOLtf8mo7QHr2AEZcXMgZlShgV7zsG-MZ8yr8,5919
150
- groundx-2.6.5.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
151
- groundx-2.6.5.dist-info/RECORD,,
149
+ groundx-2.6.7.dist-info/LICENSE,sha256=dFE6nY1bHnSn6NqmdlghlU1gQqLqYNphrceGVehSa7o,1065
150
+ groundx-2.6.7.dist-info/METADATA,sha256=gtCMt2ppuL4qLW7sEI0clsrLosujpqA3uXa49Vmg1oE,5919
151
+ groundx-2.6.7.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
152
+ groundx-2.6.7.dist-info/RECORD,,