azure_ai_foundry_tools
Vision and Document Intelligence clients for the Azure AI Foundry Rust SDK.
Features
- Vision — Image Analysis 4.0: tags, captions, object detection, OCR, smart crops, people
- Document Intelligence — Document Intelligence v4.0: OCR, layout, invoices, receipts, ID documents, business cards
- Tracing — Full instrumentation with
tracingspans
Installation
[]
= "0.8"
= "0.8"
= { = "1", = ["full"] }
Usage
Analyze an Image
use FoundryClient;
use FoundryCredential;
use ;
# async
Analyze a Document
use FoundryClient;
use FoundryCredential;
use ;
# async
Supported Models (Document Intelligence)
| Constant | Model ID | Purpose |
|---|---|---|
PREBUILT_READ |
prebuilt-read |
General OCR |
PREBUILT_LAYOUT |
prebuilt-layout |
Layout with tables |
PREBUILT_INVOICE |
prebuilt-invoice |
Invoice extraction |
PREBUILT_RECEIPT |
prebuilt-receipt |
Receipt extraction |
PREBUILT_ID_DOCUMENT |
prebuilt-idDocument |
Passport / ID |
PREBUILT_BUSINESS_CARD |
prebuilt-businessCard |
Business card |
Tracing Spans
| Span | Fields |
|---|---|
foundry::vision::analyze |
features |
foundry::document_intelligence::analyze |
model_id |
foundry::document_intelligence::get_result |
operation_location |
foundry::document_intelligence::poll_until_complete |
operation_location |
Related Crates
azure_ai_foundry_core— Core types, authentication, and HTTP clientazure_ai_foundry_models— Chat completions and embeddingsazure_ai_foundry_agents— Agent Service client
License
This project is licensed under the MIT License.