Get Extraction Agent
extraction.extraction_agents.get(strextraction_agent_id) -> ExtractAgent
GET/api/v1/extraction/extraction-agents/{extraction_agent_id}
Get Extraction Agent
Parameters
extraction_agent_id: str
Returns
Get Extraction Agent
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_agent = client.extraction.extraction_agents.get(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(extract_agent.id){
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"chunk_mode": "PAGE",
"citation_bbox": true,
"cite_sources": true,
"confidence_scores": true,
"extract_model": "openai-gpt-4-1",
"extraction_mode": "FAST",
"extraction_target": "PER_DOC",
"high_resolution_mode": true,
"invalidate_cache": true,
"multimodal_fast_mode": true,
"num_pages_context": 1,
"page_range": "page_range",
"parse_model": "openai-gpt-4o",
"priority": "low",
"system_prompt": "system_prompt",
"use_reasoning": true
},
"data_schema": {
"foo": {
"foo": "bar"
}
},
"name": "name",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_configuration": "default",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"chunk_mode": "PAGE",
"citation_bbox": true,
"cite_sources": true,
"confidence_scores": true,
"extract_model": "openai-gpt-4-1",
"extraction_mode": "FAST",
"extraction_target": "PER_DOC",
"high_resolution_mode": true,
"invalidate_cache": true,
"multimodal_fast_mode": true,
"num_pages_context": 1,
"page_range": "page_range",
"parse_model": "openai-gpt-4o",
"priority": "low",
"system_prompt": "system_prompt",
"use_reasoning": true
},
"data_schema": {
"foo": {
"foo": "bar"
}
},
"name": "name",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_configuration": "default",
"updated_at": "2019-12-27T18:11:19.117Z"
}