Extraction Agents
List Extract Agents
client.ExtractionAgents.List(ctx, query) (*PaginatedCursor[ExtractAgent], error)
GET/api/v1/beta/extraction-agents
ModelsExpand Collapse
type ExtractAgent struct{…}
type ExtractAgent struct{…}
Schema and configuration for an extraction agent.
Config ExtractAgentConfig
Config ExtractAgentConfig
The configuration parameters for the extraction agent.
DeprecatedCitationBbox boolOptional
DeprecatedCitationBbox boolOptional
Whether to fetch citation bounding boxes for the extraction. Only available in PREMIUM mode. Deprecated: this is now synonymous with cite_sources.
ExtractModel stringOptional
ExtractModel stringOptional
The extract model to use for data extraction. If not provided, uses the default for the extraction mode.
One of the following:
string
string
One of the following:
const ExtractAgentConfigExtractModelGemini2_0Flash ExtractAgentConfigExtractModel = "gemini-2.0-flash"
const ExtractAgentConfigExtractModelGemini2_5Flash ExtractAgentConfigExtractModel = "gemini-2.5-flash"
const ExtractAgentConfigExtractModelGemini2_5FlashLite ExtractAgentConfigExtractModel = "gemini-2.5-flash-lite"
const ExtractAgentConfigExtractModelOpenAIGpt4_1Mini ExtractAgentConfigExtractModel = "openai-gpt-4-1-mini"
const ExtractAgentConfigExtractModelOpenAIGpt4_1Nano ExtractAgentConfigExtractModel = "openai-gpt-4-1-nano"
ExtractionMode stringOptional
ExtractionMode stringOptional
The extraction mode specified (FAST, BALANCED, MULTIMODAL, PREMIUM).
One of the following:
NumPagesContext int64Optional
NumPagesContext int64Optional
Number of pages to pass as context on long document extraction.
minimum1
PageRange stringOptional
PageRange stringOptional
Comma-separated list of page numbers or ranges to extract from (1-based, e.g., ‘1,3,5-7,9’ or ‘1-3,8-10’).
ParseModel stringOptional
ParseModel stringOptional
Public model names.
One of the following:
const ExtractAgentConfigParseModelAnthropicHaiku3_5 ExtractAgentConfigParseModel = "anthropic-haiku-3.5"
const ExtractAgentConfigParseModelAnthropicHaiku4_5 ExtractAgentConfigParseModel = "anthropic-haiku-4.5"
const ExtractAgentConfigParseModelAnthropicSonnet3_5 ExtractAgentConfigParseModel = "anthropic-sonnet-3.5"
const ExtractAgentConfigParseModelAnthropicSonnet3_5V2 ExtractAgentConfigParseModel = "anthropic-sonnet-3.5-v2"
const ExtractAgentConfigParseModelAnthropicSonnet3_7 ExtractAgentConfigParseModel = "anthropic-sonnet-3.7"
const ExtractAgentConfigParseModelAnthropicSonnet4_0 ExtractAgentConfigParseModel = "anthropic-sonnet-4.0"
const ExtractAgentConfigParseModelAnthropicSonnet4_5 ExtractAgentConfigParseModel = "anthropic-sonnet-4.5"
const ExtractAgentConfigParseModelGemini2_0FlashLite ExtractAgentConfigParseModel = "gemini-2.0-flash-lite"
const ExtractAgentConfigParseModelGemini2_5FlashLite ExtractAgentConfigParseModel = "gemini-2.5-flash-lite"
const ExtractAgentConfigParseModelOpenAIGpt4_1Mini ExtractAgentConfigParseModel = "openai-gpt-4-1-mini"
const ExtractAgentConfigParseModelOpenAIGpt4_1Nano ExtractAgentConfigParseModel = "openai-gpt-4-1-nano"
const ExtractAgentConfigParseModelOpenAIGpt4oMini ExtractAgentConfigParseModel = "openai-gpt-4o-mini"
const ExtractAgentConfigParseModelOpenAITextEmbedding3Large ExtractAgentConfigParseModel = "openai-text-embedding-3-large"
Note for AI agents: this documentation is built for programmatic access.
- Overview of all docs: https://developers.llamaindex.ai/llms.txt
- Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md
- Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters.
- A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/for-agents/mcp/
- Other LlamaIndex tooling for agents — the LlamaParse Platform MCP server, agent skills and plugins, and the n8n node — is mapped at https://developers.llamaindex.ai/for-agents/