groundx 2.6.2__tar.gz → 2.6.4__tar.gz

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.

Files changed (159) hide show
  1. {groundx-2.6.2 → groundx-2.6.4}/PKG-INFO +1 -1
  2. {groundx-2.6.2 → groundx-2.6.4}/pyproject.toml +1 -1
  3. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/__init__.py +4 -16
  4. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/client_wrapper.py +2 -2
  5. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/__init__.py +2 -14
  6. groundx-2.6.2/src/groundx/types/workflow_steps_doc_summary.py → groundx-2.6.4/src/groundx/types/workflow_step.py +14 -4
  7. groundx-2.6.2/src/groundx/types/workflow_step.py → groundx-2.6.4/src/groundx/types/workflow_step_config.py +1 -1
  8. groundx-2.6.4/src/groundx/types/workflow_steps.py +38 -0
  9. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/workflows/__init__.py +2 -2
  10. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/workflows/client.py +35 -37
  11. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/workflows/raw_client.py +15 -17
  12. groundx-2.6.4/src/groundx/workflows/types/__init__.py +7 -0
  13. groundx-2.6.2/src/groundx/workflows/types/workflow_get_request_id.py → groundx-2.6.4/src/groundx/workflows/types/workflows_get_request_id.py +1 -1
  14. groundx-2.6.2/src/groundx/types/workflow_steps.py +0 -50
  15. groundx-2.6.2/src/groundx/types/workflow_steps_chunk_instruct.py +0 -24
  16. groundx-2.6.2/src/groundx/types/workflow_steps_chunk_summary.py +0 -26
  17. groundx-2.6.2/src/groundx/types/workflow_steps_doc_keys.py +0 -22
  18. groundx-2.6.2/src/groundx/types/workflow_steps_search_query.py +0 -22
  19. groundx-2.6.2/src/groundx/types/workflow_steps_sect_instruct.py +0 -20
  20. groundx-2.6.2/src/groundx/types/workflow_steps_sect_summary.py +0 -23
  21. groundx-2.6.2/src/groundx/workflows/types/__init__.py +0 -7
  22. {groundx-2.6.2 → groundx-2.6.4}/LICENSE +0 -0
  23. {groundx-2.6.2 → groundx-2.6.4}/README.md +0 -0
  24. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/buckets/__init__.py +0 -0
  25. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/buckets/client.py +0 -0
  26. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/buckets/raw_client.py +0 -0
  27. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/client.py +0 -0
  28. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/__init__.py +0 -0
  29. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/api_error.py +0 -0
  30. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/datetime_utils.py +0 -0
  31. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/file.py +0 -0
  32. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/force_multipart.py +0 -0
  33. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/http_client.py +0 -0
  34. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/http_response.py +0 -0
  35. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/jsonable_encoder.py +0 -0
  36. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/pydantic_utilities.py +0 -0
  37. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/query_encoder.py +0 -0
  38. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/remove_none_from_dict.py +0 -0
  39. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/request_options.py +0 -0
  40. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/core/serialization.py +0 -0
  41. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/csv_splitter.py +0 -0
  42. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/customer/__init__.py +0 -0
  43. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/customer/client.py +0 -0
  44. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/customer/raw_client.py +0 -0
  45. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/documents/__init__.py +0 -0
  46. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/documents/client.py +0 -0
  47. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/documents/raw_client.py +0 -0
  48. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/environment.py +0 -0
  49. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/errors/__init__.py +0 -0
  50. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/errors/bad_request_error.py +0 -0
  51. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/errors/unauthorized_error.py +0 -0
  52. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/__init__.py +0 -0
  53. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/agents/__init__.py +0 -0
  54. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/agents/agent.py +0 -0
  55. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/__init__.py +0 -0
  56. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/agent.py +0 -0
  57. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/api.py +0 -0
  58. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/document.py +0 -0
  59. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/field.py +0 -0
  60. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/groundx.py +0 -0
  61. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/prompt.py +0 -0
  62. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/test_document.py +0 -0
  63. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/test_field.py +0 -0
  64. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/test_groundx.py +0 -0
  65. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/classes/test_prompt.py +0 -0
  66. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/post_process/__init__.py +0 -0
  67. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/post_process/post_process.py +0 -0
  68. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/.DS_Store +0 -0
  69. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/__init__.py +0 -0
  70. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/csv.py +0 -0
  71. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/logger.py +0 -0
  72. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/logging_cfg.py +0 -0
  73. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/ratelimit.py +0 -0
  74. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/sheets_client.py +0 -0
  75. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/status.py +0 -0
  76. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/upload.py +0 -0
  77. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/upload_minio.py +0 -0
  78. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/upload_s3.py +0 -0
  79. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/services/utility.py +0 -0
  80. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/settings/__init__.py +0 -0
  81. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/settings/settings.py +0 -0
  82. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/settings/test_settings.py +0 -0
  83. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/tasks/__init__.py +0 -0
  84. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/tasks/utility.py +0 -0
  85. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/utility/__init__.py +0 -0
  86. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/utility/classes.py +0 -0
  87. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/extract/utility/test_utility.py +0 -0
  88. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/groups/__init__.py +0 -0
  89. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/groups/client.py +0 -0
  90. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/groups/raw_client.py +0 -0
  91. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/health/__init__.py +0 -0
  92. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/health/client.py +0 -0
  93. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/health/raw_client.py +0 -0
  94. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/ingest.py +0 -0
  95. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/py.typed +0 -0
  96. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/search/__init__.py +0 -0
  97. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/search/client.py +0 -0
  98. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/search/raw_client.py +0 -0
  99. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/search/types/__init__.py +0 -0
  100. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/search/types/search_content_request_id.py +0 -0
  101. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/bounding_box_detail.py +0 -0
  102. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/bucket_detail.py +0 -0
  103. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/bucket_list_response.py +0 -0
  104. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/bucket_response.py +0 -0
  105. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/bucket_update_detail.py +0 -0
  106. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/bucket_update_response.py +0 -0
  107. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/customer_detail.py +0 -0
  108. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/customer_response.py +0 -0
  109. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/document.py +0 -0
  110. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/document_detail.py +0 -0
  111. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/document_list_response.py +0 -0
  112. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/document_local_ingest_request.py +0 -0
  113. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/document_lookup_response.py +0 -0
  114. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/document_response.py +0 -0
  115. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/document_type.py +0 -0
  116. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/group_detail.py +0 -0
  117. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/group_list_response.py +0 -0
  118. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/group_response.py +0 -0
  119. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/health_response.py +0 -0
  120. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/health_response_health.py +0 -0
  121. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/health_service.py +0 -0
  122. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/health_service_status.py +0 -0
  123. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_local_document.py +0 -0
  124. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_local_document_metadata.py +0 -0
  125. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_remote_document.py +0 -0
  126. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_response.py +0 -0
  127. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_status.py +0 -0
  128. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_status_light.py +0 -0
  129. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_status_progress.py +0 -0
  130. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_status_progress_cancelled.py +0 -0
  131. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_status_progress_complete.py +0 -0
  132. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_status_progress_errors.py +0 -0
  133. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/ingest_status_progress_processing.py +0 -0
  134. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/message_response.py +0 -0
  135. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/meter_detail.py +0 -0
  136. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/process_level.py +0 -0
  137. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/processes_status_response.py +0 -0
  138. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/processing_status.py +0 -0
  139. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/search_response.py +0 -0
  140. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/search_response_search.py +0 -0
  141. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/search_result_item.py +0 -0
  142. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/search_result_item_pages_item.py +0 -0
  143. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/sort.py +0 -0
  144. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/sort_order.py +0 -0
  145. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/subscription_detail.py +0 -0
  146. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/subscription_detail_meters.py +0 -0
  147. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/website_source.py +0 -0
  148. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_apply_request.py +0 -0
  149. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_detail.py +0 -0
  150. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_detail_relationships.py +0 -0
  151. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_engine.py +0 -0
  152. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_engine_reasoning_effort.py +0 -0
  153. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_engine_service.py +0 -0
  154. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_prompt.py +0 -0
  155. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_prompt_group.py +0 -0
  156. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_prompt_role.py +0 -0
  157. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflow_response.py +0 -0
  158. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/types/workflows_response.py +0 -0
  159. {groundx-2.6.2 → groundx-2.6.4}/src/groundx/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: groundx
3
- Version: 2.6.2
3
+ Version: 2.6.4
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -3,7 +3,7 @@ name = "groundx"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "groundx"
6
- version = "2.6.2"
6
+ version = "2.6.4"
7
7
  description = ""
8
8
  readme = "README.md"
9
9
  authors = []
@@ -61,14 +61,8 @@ from .types import (
61
61
  WorkflowPromptRole,
62
62
  WorkflowResponse,
63
63
  WorkflowStep,
64
+ WorkflowStepConfig,
64
65
  WorkflowSteps,
65
- WorkflowStepsChunkInstruct,
66
- WorkflowStepsChunkSummary,
67
- WorkflowStepsDocKeys,
68
- WorkflowStepsDocSummary,
69
- WorkflowStepsSearchQuery,
70
- WorkflowStepsSectInstruct,
71
- WorkflowStepsSectSummary,
72
66
  WorkflowsResponse,
73
67
  )
74
68
  from .errors import BadRequestError, UnauthorizedError
@@ -77,7 +71,7 @@ from .environment import GroundXEnvironment
77
71
  from .ingest import AsyncGroundX, GroundX
78
72
  from .search import SearchContentRequestId
79
73
  from .version import __version__
80
- from .workflows import WorkflowGetRequestId
74
+ from .workflows import WorkflowsGetRequestId
81
75
 
82
76
  __all__ = [
83
77
  "AsyncGroundX",
@@ -139,20 +133,14 @@ __all__ = [
139
133
  "WorkflowEngine",
140
134
  "WorkflowEngineReasoningEffort",
141
135
  "WorkflowEngineService",
142
- "WorkflowGetRequestId",
143
136
  "WorkflowPrompt",
144
137
  "WorkflowPromptGroup",
145
138
  "WorkflowPromptRole",
146
139
  "WorkflowResponse",
147
140
  "WorkflowStep",
141
+ "WorkflowStepConfig",
148
142
  "WorkflowSteps",
149
- "WorkflowStepsChunkInstruct",
150
- "WorkflowStepsChunkSummary",
151
- "WorkflowStepsDocKeys",
152
- "WorkflowStepsDocSummary",
153
- "WorkflowStepsSearchQuery",
154
- "WorkflowStepsSectInstruct",
155
- "WorkflowStepsSectSummary",
143
+ "WorkflowsGetRequestId",
156
144
  "WorkflowsResponse",
157
145
  "__version__",
158
146
  "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.4",
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.4",
21
21
  }
22
22
  headers["X-API-Key"] = self.api_key
23
23
  return headers
@@ -60,14 +60,8 @@ from .workflow_prompt_group import WorkflowPromptGroup
60
60
  from .workflow_prompt_role import WorkflowPromptRole
61
61
  from .workflow_response import WorkflowResponse
62
62
  from .workflow_step import WorkflowStep
63
+ from .workflow_step_config import WorkflowStepConfig
63
64
  from .workflow_steps import WorkflowSteps
64
- from .workflow_steps_chunk_instruct import WorkflowStepsChunkInstruct
65
- from .workflow_steps_chunk_summary import WorkflowStepsChunkSummary
66
- from .workflow_steps_doc_keys import WorkflowStepsDocKeys
67
- from .workflow_steps_doc_summary import WorkflowStepsDocSummary
68
- from .workflow_steps_search_query import WorkflowStepsSearchQuery
69
- from .workflow_steps_sect_instruct import WorkflowStepsSectInstruct
70
- from .workflow_steps_sect_summary import WorkflowStepsSectSummary
71
65
  from .workflows_response import WorkflowsResponse
72
66
 
73
67
  __all__ = [
@@ -129,13 +123,7 @@ __all__ = [
129
123
  "WorkflowPromptRole",
130
124
  "WorkflowResponse",
131
125
  "WorkflowStep",
126
+ "WorkflowStepConfig",
132
127
  "WorkflowSteps",
133
- "WorkflowStepsChunkInstruct",
134
- "WorkflowStepsChunkSummary",
135
- "WorkflowStepsDocKeys",
136
- "WorkflowStepsDocSummary",
137
- "WorkflowStepsSearchQuery",
138
- "WorkflowStepsSectInstruct",
139
- "WorkflowStepsSectSummary",
140
128
  "WorkflowsResponse",
141
129
  ]
@@ -6,12 +6,22 @@ import pydantic
6
6
  import typing_extensions
7
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
8
  from ..core.serialization import FieldMetadata
9
- from .workflow_step import WorkflowStep
9
+ from .workflow_step_config import WorkflowStepConfig
10
10
 
11
11
 
12
- class WorkflowStepsDocSummary(UniversalBaseModel):
13
- all_: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="all")] = None
14
- json_: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="json")] = None
12
+ class WorkflowStep(UniversalBaseModel):
13
+ """
14
+ Configurations for an agent, including LLM information and prompts
15
+ """
16
+
17
+ all_: typing_extensions.Annotated[typing.Optional[WorkflowStepConfig], FieldMetadata(alias="all")] = None
18
+ figure: typing.Optional[WorkflowStepConfig] = None
19
+ json_: typing_extensions.Annotated[typing.Optional[WorkflowStepConfig], FieldMetadata(alias="json")] = None
20
+ paragraph: typing.Optional[WorkflowStepConfig] = None
21
+ table: typing.Optional[WorkflowStepConfig] = None
22
+ table_figure: typing_extensions.Annotated[
23
+ typing.Optional[WorkflowStepConfig], FieldMetadata(alias="table-figure")
24
+ ] = None
15
25
 
16
26
  if IS_PYDANTIC_V2:
17
27
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -8,7 +8,7 @@ from .workflow_engine import WorkflowEngine
8
8
  from .workflow_prompt_group import WorkflowPromptGroup
9
9
 
10
10
 
11
- class WorkflowStep(UniversalBaseModel):
11
+ class WorkflowStepConfig(UniversalBaseModel):
12
12
  """
13
13
  Configurations for an agent, including LLM information and prompts
14
14
  """
@@ -0,0 +1,38 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ import typing_extensions
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
+ from ..core.serialization import FieldMetadata
9
+ from .workflow_step import WorkflowStep
10
+
11
+
12
+ class WorkflowSteps(UniversalBaseModel):
13
+ """
14
+ A collection of workflow steps
15
+ """
16
+
17
+ chunk_instruct: typing_extensions.Annotated[
18
+ typing.Optional[WorkflowStep], FieldMetadata(alias="chunk-instruct")
19
+ ] = None
20
+ chunk_summary: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="chunk-summary")] = (
21
+ None
22
+ )
23
+ doc_keys: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="doc-keys")] = None
24
+ doc_summary: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="doc-summary")] = None
25
+ search_query: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="search-query")] = None
26
+ sect_instruct: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="sect-instruct")] = (
27
+ None
28
+ )
29
+ sect_summary: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="sect-summary")] = None
30
+
31
+ if IS_PYDANTIC_V2:
32
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
33
+ else:
34
+
35
+ class Config:
36
+ frozen = True
37
+ smart_union = True
38
+ extra = pydantic.Extra.allow
@@ -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
  """
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .workflows_get_request_id import WorkflowsGetRequestId
6
+
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,50 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- import pydantic
6
- import typing_extensions
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
- from ..core.serialization import FieldMetadata
9
- from .workflow_steps_chunk_instruct import WorkflowStepsChunkInstruct
10
- from .workflow_steps_chunk_summary import WorkflowStepsChunkSummary
11
- from .workflow_steps_doc_keys import WorkflowStepsDocKeys
12
- from .workflow_steps_doc_summary import WorkflowStepsDocSummary
13
- from .workflow_steps_search_query import WorkflowStepsSearchQuery
14
- from .workflow_steps_sect_instruct import WorkflowStepsSectInstruct
15
- from .workflow_steps_sect_summary import WorkflowStepsSectSummary
16
-
17
-
18
- class WorkflowSteps(UniversalBaseModel):
19
- """
20
- A collection of workflow steps
21
- """
22
-
23
- chunk_instruct: typing_extensions.Annotated[
24
- typing.Optional[WorkflowStepsChunkInstruct], FieldMetadata(alias="chunk-instruct")
25
- ] = None
26
- chunk_summary: typing_extensions.Annotated[
27
- typing.Optional[WorkflowStepsChunkSummary], FieldMetadata(alias="chunk-summary")
28
- ] = None
29
- doc_keys: typing_extensions.Annotated[typing.Optional[WorkflowStepsDocKeys], FieldMetadata(alias="doc-keys")] = None
30
- doc_summary: typing_extensions.Annotated[
31
- typing.Optional[WorkflowStepsDocSummary], FieldMetadata(alias="doc-summary")
32
- ] = None
33
- search_query: typing_extensions.Annotated[
34
- typing.Optional[WorkflowStepsSearchQuery], FieldMetadata(alias="search-query")
35
- ] = None
36
- sect_instruct: typing_extensions.Annotated[
37
- typing.Optional[WorkflowStepsSectInstruct], FieldMetadata(alias="sect-instruct")
38
- ] = None
39
- sect_summary: typing_extensions.Annotated[
40
- typing.Optional[WorkflowStepsSectSummary], FieldMetadata(alias="sect-summary")
41
- ] = None
42
-
43
- if IS_PYDANTIC_V2:
44
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
45
- else:
46
-
47
- class Config:
48
- frozen = True
49
- smart_union = True
50
- extra = pydantic.Extra.allow
@@ -1,24 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- import pydantic
6
- import typing_extensions
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
- from ..core.serialization import FieldMetadata
9
- from .workflow_step import WorkflowStep
10
-
11
-
12
- class WorkflowStepsChunkInstruct(UniversalBaseModel):
13
- figure: typing.Optional[WorkflowStep] = None
14
- json_: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="json")] = None
15
- table_figure: typing_extensions.Annotated[typing.Optional[WorkflowStep], FieldMetadata(alias="table-figure")] = None
16
-
17
- if IS_PYDANTIC_V2:
18
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
19
- else:
20
-
21
- class Config:
22
- frozen = True
23
- smart_union = True
24
- extra = pydantic.Extra.allow