Skip to content

Commit e72b9dc

Browse files
feat(api): Add product configurations under beta namespace
1 parent 12c70b4 commit e72b9dc

27 files changed

+2873
-286
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 113
1+
configured_endpoints: 118
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamaindex-Georgehe4%2Fllamacloud-prod-7e0726654d22046d5437fb8370e9d1323fc7d71a1ce915184329af9113ef8806.yml
33
openapi_spec_hash: cdb6aa1bdca8fc6b700054002d512a8a
4-
config_hash: 2b3e23211915397ef80d62e54640c7fa
4+
config_hash: 1d5633f0de325137d900647a9581025a

api.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ from llama_cloud.types import (
9999
ExtractV2SchemaValidateRequest,
100100
ExtractV2SchemaValidateResponse,
101101
ExtractedFieldMetadata,
102-
ExtractGenerateSchemaResponse,
103102
)
104103
```
105104

@@ -108,7 +107,7 @@ Methods:
108107
- <code title="post /api/v2/extract">client.extract.<a href="./src/llama_cloud/resources/extract.py">create</a>(\*\*<a href="src/llama_cloud/types/extract_create_params.py">params</a>) -> <a href="./src/llama_cloud/types/extract_v2_job.py">ExtractV2Job</a></code>
109108
- <code title="get /api/v2/extract">client.extract.<a href="./src/llama_cloud/resources/extract.py">list</a>(\*\*<a href="src/llama_cloud/types/extract_list_params.py">params</a>) -> <a href="./src/llama_cloud/types/extract_v2_job.py">SyncPaginatedCursor[ExtractV2Job]</a></code>
110109
- <code title="delete /api/v2/extract/{job_id}">client.extract.<a href="./src/llama_cloud/resources/extract.py">delete</a>(job_id, \*\*<a href="src/llama_cloud/types/extract_delete_params.py">params</a>) -> object</code>
111-
- <code title="post /api/v2/extract/schema/generate">client.extract.<a href="./src/llama_cloud/resources/extract.py">generate_schema</a>(\*\*<a href="src/llama_cloud/types/extract_generate_schema_params.py">params</a>) -> <a href="./src/llama_cloud/types/extract_generate_schema_response.py">ExtractGenerateSchemaResponse</a></code>
110+
- <code title="post /api/v2/extract/schema/generate">client.extract.<a href="./src/llama_cloud/resources/extract.py">generate_schema</a>(\*\*<a href="src/llama_cloud/types/extract_generate_schema_params.py">params</a>) -> <a href="./src/llama_cloud/types/beta/configuration_create.py">ConfigurationCreate</a></code>
112111
- <code title="get /api/v2/extract/{job_id}">client.extract.<a href="./src/llama_cloud/resources/extract.py">get</a>(job_id, \*\*<a href="src/llama_cloud/types/extract_get_params.py">params</a>) -> <a href="./src/llama_cloud/types/extract_v2_job.py">ExtractV2Job</a></code>
113112
- <code title="post /api/v2/extract/schema/validation">client.extract.<a href="./src/llama_cloud/resources/extract.py">validate_schema</a>(\*\*<a href="src/llama_cloud/types/extract_validate_schema_params.py">params</a>) -> <a href="./src/llama_cloud/types/extract_v2_schema_validate_response.py">ExtractV2SchemaValidateResponse</a></code>
114113

@@ -435,6 +434,30 @@ Methods:
435434
- <code title="delete /api/v1/beta/parse-configurations/{config_id}">client.beta.parse_configurations.<a href="./src/llama_cloud/resources/beta/parse_configurations.py">delete</a>(config_id, \*\*<a href="src/llama_cloud/types/beta/parse_configuration_delete_params.py">params</a>) -> None</code>
436435
- <code title="get /api/v1/beta/parse-configurations/{config_id}">client.beta.parse_configurations.<a href="./src/llama_cloud/resources/beta/parse_configurations.py">get</a>(config_id, \*\*<a href="src/llama_cloud/types/beta/parse_configuration_get_params.py">params</a>) -> <a href="./src/llama_cloud/types/beta/parse_configuration.py">ParseConfiguration</a></code>
437436

437+
## Configurations
438+
439+
Types:
440+
441+
```python
442+
from llama_cloud.types.beta import (
443+
ClassifyV2Parameters,
444+
ConfigurationCreate,
445+
ConfigurationResponse,
446+
ExtractV2Parameters,
447+
ParseV2Parameters,
448+
SplitV1Parameters,
449+
UntypedParameters,
450+
)
451+
```
452+
453+
Methods:
454+
455+
- <code title="post /api/v1/beta/configurations">client.beta.configurations.<a href="./src/llama_cloud/resources/beta/configurations.py">create</a>(\*\*<a href="src/llama_cloud/types/beta/configuration_create_params.py">params</a>) -> <a href="./src/llama_cloud/types/beta/configuration_response.py">ConfigurationResponse</a></code>
456+
- <code title="get /api/v1/beta/configurations/{config_id}">client.beta.configurations.<a href="./src/llama_cloud/resources/beta/configurations.py">retrieve</a>(config_id, \*\*<a href="src/llama_cloud/types/beta/configuration_retrieve_params.py">params</a>) -> <a href="./src/llama_cloud/types/beta/configuration_response.py">ConfigurationResponse</a></code>
457+
- <code title="put /api/v1/beta/configurations/{config_id}">client.beta.configurations.<a href="./src/llama_cloud/resources/beta/configurations.py">update</a>(config_id, \*\*<a href="src/llama_cloud/types/beta/configuration_update_params.py">params</a>) -> <a href="./src/llama_cloud/types/beta/configuration_response.py">ConfigurationResponse</a></code>
458+
- <code title="get /api/v1/beta/configurations">client.beta.configurations.<a href="./src/llama_cloud/resources/beta/configurations.py">list</a>(\*\*<a href="src/llama_cloud/types/beta/configuration_list_params.py">params</a>) -> <a href="./src/llama_cloud/types/beta/configuration_response.py">SyncPaginatedCursor[ConfigurationResponse]</a></code>
459+
- <code title="delete /api/v1/beta/configurations/{config_id}">client.beta.configurations.<a href="./src/llama_cloud/resources/beta/configurations.py">delete</a>(config_id, \*\*<a href="src/llama_cloud/types/beta/configuration_delete_params.py">params</a>) -> None</code>
460+
438461
## Sheets
439462

440463
Types:

src/llama_cloud/resources/beta/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@
4848
DirectoriesResourceWithStreamingResponse,
4949
AsyncDirectoriesResourceWithStreamingResponse,
5050
)
51+
from .configurations import (
52+
ConfigurationsResource,
53+
AsyncConfigurationsResource,
54+
ConfigurationsResourceWithRawResponse,
55+
AsyncConfigurationsResourceWithRawResponse,
56+
ConfigurationsResourceWithStreamingResponse,
57+
AsyncConfigurationsResourceWithStreamingResponse,
58+
)
5159
from .parse_configurations import (
5260
ParseConfigurationsResource,
5361
AsyncParseConfigurationsResource,
@@ -70,6 +78,12 @@
7078
"AsyncParseConfigurationsResourceWithRawResponse",
7179
"ParseConfigurationsResourceWithStreamingResponse",
7280
"AsyncParseConfigurationsResourceWithStreamingResponse",
81+
"ConfigurationsResource",
82+
"AsyncConfigurationsResource",
83+
"ConfigurationsResourceWithRawResponse",
84+
"AsyncConfigurationsResourceWithRawResponse",
85+
"ConfigurationsResourceWithStreamingResponse",
86+
"AsyncConfigurationsResourceWithStreamingResponse",
7387
"SheetsResource",
7488
"AsyncSheetsResource",
7589
"SheetsResourceWithRawResponse",

src/llama_cloud/resources/beta/beta.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@
3636
BatchResourceWithStreamingResponse,
3737
AsyncBatchResourceWithStreamingResponse,
3838
)
39+
from .configurations import (
40+
ConfigurationsResource,
41+
AsyncConfigurationsResource,
42+
ConfigurationsResourceWithRawResponse,
43+
AsyncConfigurationsResourceWithRawResponse,
44+
ConfigurationsResourceWithStreamingResponse,
45+
AsyncConfigurationsResourceWithStreamingResponse,
46+
)
3947
from .parse_configurations import (
4048
ParseConfigurationsResource,
4149
AsyncParseConfigurationsResource,
@@ -65,6 +73,10 @@ def agent_data(self) -> AgentDataResource:
6573
def parse_configurations(self) -> ParseConfigurationsResource:
6674
return ParseConfigurationsResource(self._client)
6775

76+
@cached_property
77+
def configurations(self) -> ConfigurationsResource:
78+
return ConfigurationsResource(self._client)
79+
6880
@cached_property
6981
def sheets(self) -> SheetsResource:
7082
return SheetsResource(self._client)
@@ -110,6 +122,10 @@ def agent_data(self) -> AsyncAgentDataResource:
110122
def parse_configurations(self) -> AsyncParseConfigurationsResource:
111123
return AsyncParseConfigurationsResource(self._client)
112124

125+
@cached_property
126+
def configurations(self) -> AsyncConfigurationsResource:
127+
return AsyncConfigurationsResource(self._client)
128+
113129
@cached_property
114130
def sheets(self) -> AsyncSheetsResource:
115131
return AsyncSheetsResource(self._client)
@@ -158,6 +174,10 @@ def agent_data(self) -> AgentDataResourceWithRawResponse:
158174
def parse_configurations(self) -> ParseConfigurationsResourceWithRawResponse:
159175
return ParseConfigurationsResourceWithRawResponse(self._beta.parse_configurations)
160176

177+
@cached_property
178+
def configurations(self) -> ConfigurationsResourceWithRawResponse:
179+
return ConfigurationsResourceWithRawResponse(self._beta.configurations)
180+
161181
@cached_property
162182
def sheets(self) -> SheetsResourceWithRawResponse:
163183
return SheetsResourceWithRawResponse(self._beta.sheets)
@@ -187,6 +207,10 @@ def agent_data(self) -> AsyncAgentDataResourceWithRawResponse:
187207
def parse_configurations(self) -> AsyncParseConfigurationsResourceWithRawResponse:
188208
return AsyncParseConfigurationsResourceWithRawResponse(self._beta.parse_configurations)
189209

210+
@cached_property
211+
def configurations(self) -> AsyncConfigurationsResourceWithRawResponse:
212+
return AsyncConfigurationsResourceWithRawResponse(self._beta.configurations)
213+
190214
@cached_property
191215
def sheets(self) -> AsyncSheetsResourceWithRawResponse:
192216
return AsyncSheetsResourceWithRawResponse(self._beta.sheets)
@@ -216,6 +240,10 @@ def agent_data(self) -> AgentDataResourceWithStreamingResponse:
216240
def parse_configurations(self) -> ParseConfigurationsResourceWithStreamingResponse:
217241
return ParseConfigurationsResourceWithStreamingResponse(self._beta.parse_configurations)
218242

243+
@cached_property
244+
def configurations(self) -> ConfigurationsResourceWithStreamingResponse:
245+
return ConfigurationsResourceWithStreamingResponse(self._beta.configurations)
246+
219247
@cached_property
220248
def sheets(self) -> SheetsResourceWithStreamingResponse:
221249
return SheetsResourceWithStreamingResponse(self._beta.sheets)
@@ -245,6 +273,10 @@ def agent_data(self) -> AsyncAgentDataResourceWithStreamingResponse:
245273
def parse_configurations(self) -> AsyncParseConfigurationsResourceWithStreamingResponse:
246274
return AsyncParseConfigurationsResourceWithStreamingResponse(self._beta.parse_configurations)
247275

276+
@cached_property
277+
def configurations(self) -> AsyncConfigurationsResourceWithStreamingResponse:
278+
return AsyncConfigurationsResourceWithStreamingResponse(self._beta.configurations)
279+
248280
@cached_property
249281
def sheets(self) -> AsyncSheetsResourceWithStreamingResponse:
250282
return AsyncSheetsResourceWithStreamingResponse(self._beta.sheets)

0 commit comments

Comments
 (0)