Validate Extraction Schema
extract.validate_schema(ExtractValidateSchemaParams**kwargs) -> ExtractV2SchemaValidateResponse
POST/api/v2/extract/schema/validation
Validate a JSON schema for extraction.
Parameters
Returns
Validate Extraction Schema
import os
from llama_cloud import LlamaCloud
client = LlamaCloud(
api_key=os.environ.get("LLAMA_CLOUD_API_KEY"), # This is the default and can be omitted
)
extract_v2_schema_validate_response = client.extract.validate_schema(
data_schema={
"foo": {
"foo": "bar"
}
},
)
print(extract_v2_schema_validate_response.data_schema){
"data_schema": {
"foo": {
"foo": "bar"
}
}
}Returns Examples
{
"data_schema": {
"foo": {
"foo": "bar"
}
}
}