Microsoft.Extensions.AI Integration
Cross-SDK comparison
See the centralized MEAI documentation for feature matrices and comparisons across all tryAGI SDKs.
The LlamaParse SDK provides AIFunction tool wrappers compatible with Microsoft.Extensions.AI. These tools can be used with any IChatClient to give AI models document parsing, extraction, and processing capabilities.
Available Tools
| Method | Tool Name | Description |
|---|---|---|
AsParseUrlTool() |
ParseDocumentUrl |
Parses a document from a URL and returns markdown. Uploads, polls for completion, and returns the result. |
AsGetJobStatusTool() |
GetParsingJobStatus |
Checks the status of a parsing job by job ID. |
AsGetJobResultTool() |
GetParsingJobResult |
Retrieves the parsed markdown content of a completed job. |
AsSupportedExtensionsTool() |
GetSupportedFileExtensions |
Lists all file extensions supported by LlamaParse. |
Usage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
Tool Details
ParseDocumentUrl
A blocking tool that: 1. Uploads the URL for parsing 2. Polls until the job completes (configurable interval and max attempts) 3. Returns the parsed markdown content
Parameters:
- url (required): The URL of the document to parse
- parsingInstruction (optional): Instructions to guide the extraction
1 2 3 | |
GetParsingJobStatus / GetParsingJobResult
For async workflows, use these tools separately:
1. Start a parse job via the LlamaParse API
2. Use GetParsingJobStatus to check if the job is complete
3. Use GetParsingJobResult to retrieve the markdown content
GetSupportedFileExtensions
Returns a JSON array of all 130+ file formats supported by LlamaParse (PDF, DOCX, PPTX, HTML, and more).