[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71RD2W0VRV0C6CD54KCKMS7":3,"skill-same:01M71RD2W0VRV0C6CD54KCKMS7":53},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":21,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":12,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M71RD2W0VRV0C6CD54KCKMS7","azure-ai-document-intelligence-dotnet",null,"javiertarazon\u002Fide-agente-free-jt7-","javiertarazon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F153141207?v=4","01M71R52TB3S9HXKH6WSNT8A7V","01M71R52VG5KS2DKDDH4GDQ30A",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjaviertarazon\u002Fide-agente-free-jt7-\u002Fblob\u002Frelease\u002Fv4.2.11-panel-pro\u002F.github\u002Fskills\u002Fazure-ai-document-intelligence-dotnet\u002FSKILL.md",[16],{"categoryNo":17,"categoryName":18,"taxonomyType":19,"taxonomyTypeDesc":20},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[22,23,24,25,26,27],"dotnet","azure ai","azure","azure ai document intelligence dotnet","document","intelligence","2026-11-10 13:02:02",false,"---\nname: azure-ai-document-intelligence-dotnet\ndescription: \"|\"\n  Azure AI Document Intelligence SDK for .NET. Extract text, tables, and structured data from documents using prebuilt and custom models. Use for invoice processing, receipt extraction, ID document analysis, and custom document models. Triggers: \"Document Intelligence\", \"DocumentIntelligenceClient\", \"form recognizer\", \"invoice extraction\", \"receipt OCR\", \"document analysis .NET\".\npackage: Azure.AI.DocumentIntelligence\nrisk: unknown\nsource: community\n---\n\n# Azure.AI.DocumentIntelligence (.NET)\n\nExtract text, tables, and structured data from documents using prebuilt and custom models.\n\n## Installation\n\n```bash\ndotnet add package Azure.AI.DocumentIntelligence\ndotnet add package Azure.Identity\n```\n\n**Current Version**: v1.0.0 (GA)\n\n## Environment Variables\n\n```bash\nDOCUMENT_INTELLIGENCE_ENDPOINT=https:\u002F\u002F\u003Cresource-name>.cognitiveservices.azure.com\u002F\nDOCUMENT_INTELLIGENCE_API_KEY=\u003Cyour-api-key>\nBLOB_CONTAINER_SAS_URL=https:\u002F\u002F\u003Cstorage>.blob.core.windows.net\u002F\u003Ccontainer>?\u003Csas-token>\n```\n\n## Authentication\n\n### Microsoft Entra ID (Recommended)\n\n```csharp\nusing Azure.Identity;\nusing Azure.AI.DocumentIntelligence;\n\nstring endpoint = Environment.GetEnvironmentVariable(\"DOCUMENT_INTELLIGENCE_ENDPOINT\");\nvar credential = new DefaultAzureCredential();\nvar client = new DocumentIntelligenceClient(new Uri(endpoint), credential);\n```\n\n> **Note**: Entra ID requires a **custom subdomain** (e.g., `https:\u002F\u002F\u003Cresource-name>.cognitiveservices.azure.com\u002F`), not a regional endpoint.\n\n### API Key\n\n```csharp\nstring endpoint = Environment.GetEnvironmentVariable(\"DOCUMENT_INTELLIGENCE_ENDPOINT\");\nstring apiKey = Environment.GetEnvironmentVariable(\"DOCUMENT_INTELLIGENCE_API_KEY\");\nvar client = new DocumentIntelligenceClient(new Uri(endpoint), new AzureKeyCredential(apiKey));\n```\n\n## Client Types\n\n| Client | Purpose |\n|--------|---------|\n| `DocumentIntelligenceClient` | Analyze documents, classify documents |\n| `DocumentIntelligenceAdministrationClient` | Build\u002Fmanage custom models and classifiers |\n\n## Prebuilt Models\n\n| Model ID | Description |\n|----------|-------------|\n| `prebuilt-read` | Extract text, languages, handwriting |\n| `prebuilt-layout` | Extract text, tables, selection marks, structure |\n| `prebuilt-invoice` | Extract invoice fields (vendor, items, totals) |\n| `prebuilt-receipt` | Extract receipt fields (merchant, items, total) |\n| `prebuilt-idDocument` | Extract ID document fields (name, DOB, address) |\n| `prebuilt-businessCard` | Extract business card fields |\n| `prebuilt-tax.us.w2` | Extract W-2 tax form fields |\n| `prebuilt-healthInsuranceCard.us` | Extract health insurance card fields |\n\n## Core Workflows\n\n### 1. Analyze Invoice\n\n```csharp\nusing Azure.AI.DocumentIntelligence;\n\nUri invoiceUri = new Uri(\"https:\u002F\u002Fexample.com\u002Finvoice.pdf\");\n\nOperation\u003CAnalyzeResult> operation = await client.AnalyzeDocumentAsync(\n    WaitUntil.Completed, \n    \"prebuilt-invoice\", \n    invoiceUri);\n\nAnalyzeResult result = operation.Value;\n\nforeach (AnalyzedDocument document in result.Documents)\n{\n    if (document.Fields.TryGetValue(\"VendorName\", out DocumentField vendorNameField)\n        && vendorNameField.FieldType == DocumentFieldType.String)\n    {\n        string vendorName = vendorNameField.ValueString;\n        Console.WriteLine($\"Vendor Name: '{vendorName}', confidence: {vendorNameField.Confidence}\");\n    }\n\n    if (document.Fields.TryGetValue(\"InvoiceTotal\", out DocumentField invoiceTotalField)\n        && invoiceTotalField.FieldType == DocumentFieldType.Currency)\n    {\n        CurrencyValue invoiceTotal = invoiceTotalField.ValueCurrency;\n        Console.WriteLine($\"Invoice Total: '{invoiceTotal.CurrencySymbol}{invoiceTotal.Amount}'\");\n    }\n    \n    \u002F\u002F Extract line items\n    if (document.Fields.TryGetValue(\"Items\", out DocumentField itemsField)\n        && itemsField.FieldType == DocumentFieldType.List)\n    {\n        foreach (DocumentField item in itemsField.ValueList)\n        {\n            var itemFields = item.ValueDictionary;\n            if (itemFields.TryGetValue(\"Description\", out DocumentField descField))\n                Console.WriteLine($\"  Item: {descField.ValueString}\");\n        }\n    }\n}\n```\n\n### 2. Extract Layout (Text, Tables, Structure)\n\n```csharp\nUri fileUri = new Uri(\"https:\u002F\u002Fexample.com\u002Fdocument.pdf\");\n\nOperation\u003CAnalyzeResult> operation = await client.AnalyzeDocumentAsync(\n    WaitUntil.Completed, \n    \"prebuilt-layout\", \n    fileUri);\n\nAnalyzeResult result = operation.Value;\n\n\u002F\u002F Extract text by page\nforeach (DocumentPage page in result.Pages)\n{\n    Console.WriteLine($\"Page {page.PageNumber}: {page.Lines.Count} lines, {page.Words.Count} words\");\n    \n    foreach (DocumentLine line in page.Lines)\n    {\n        Console.WriteLine($\"  Line: '{line.Content}'\");\n    }\n}\n\n\u002F\u002F Extract tables\nforeach (DocumentTable table in result.Tables)\n{\n    Console.WriteLine($\"Table: {table.RowCount} rows x {table.ColumnCount} columns\");\n    foreach (DocumentTableCell cell in table.Cells)\n    {\n        Console.WriteLine($\"  Cell ({cell.RowIndex}, {cell.ColumnIndex}): {cell.Content}\");\n    }\n}\n```\n\n### 3. Analyze Receipt\n\n```csharp\nOperation\u003CAnalyzeResult> operation = await client.AnalyzeDocumentAsync(\n    WaitUntil.Completed, \n    \"prebuilt-receipt\", \n    receiptUri);\n\nAnalyzeResult result = operation.Value;\n\nforeach (AnalyzedDocument document in result.Documents)\n{\n    if (document.Fields.TryGetValue(\"MerchantName\", out DocumentField merchantField))\n        Console.WriteLine($\"Merchant: {merchantField.ValueString}\");\n        \n    if (document.Fields.TryGetValue(\"Total\", out DocumentField totalField))\n        Console.WriteLine($\"Total: {totalField.ValueCurrency.Amount}\");\n        \n    if (document.Fields.TryGetValue(\"TransactionDate\", out DocumentField dateField))\n        Console.WriteLine($\"Date: {dateField.ValueDate}\");\n}\n```\n\n### 4. Build Custom Model\n\n```csharp\nvar adminClient = new DocumentIntelligenceAdministrationClient(\n    new Uri(endpoint), \n    new AzureKeyCredential(apiKey));\n\nstring modelId = \"my-custom-model\";\nUri blobContainerUri = new Uri(\"\u003Cblob-container-sas-url>\");\n\nvar blobSource = new BlobContentSource(blobContainerUri);\nvar options = new BuildDocumentModelOptions(modelId, DocumentBuildMode.Template, blobSource);\n\nOperation\u003CDocumentModelDetails> operation = await adminClient.BuildDocumentModelAsync(\n    WaitUntil.Completed, \n    options);\n\nDocumentModelDetails model = operation.Value;\n\nConsole.WriteLine($\"Model ID: {model.ModelId}\");\nConsole.WriteLine($\"Created: {model.CreatedOn}\");\n\nforeach (var docType in model.DocumentTypes)\n{\n    Console.WriteLine($\"Document type: {docType.Key}\");\n    foreach (var field in docType.Value.FieldSchema)\n    {\n        Console.WriteLine($\"  Field: {field.Key}, Confidence: {docType.Value.FieldConfidence[field.Key]}\");\n    }\n}\n```\n\n### 5. Build Document Classifier\n\n```csharp\nstring classifierId = \"my-classifier\";\nUri blobContainerUri = new Uri(\"\u003Cblob-container-sas-url>\");\n\nvar sourceA = new BlobContentSource(blobContainerUri) { Prefix = \"TypeA\u002Ftrain\" };\nvar sourceB = new BlobContentSource(blobContainerUri) { Prefix = \"TypeB\u002Ftrain\" };\n\nvar docTypes = new Dictionary\u003Cstring, ClassifierDocumentTypeDetails>()\n{\n    { \"TypeA\", new ClassifierDocumentTypeDetails(sourceA) },\n    { \"TypeB\", new ClassifierDocumentTypeDetails(sourceB) }\n};\n\nvar options = new BuildClassifierOptions(classifierId, docTypes);\n\nOperation\u003CDocumentClassifierDetails> operation = await adminClient.BuildClassifierAsync(\n    WaitUntil.Completed, \n    options);\n\nDocumentClassifierDetails classifier = operation.Value;\nConsole.WriteLine($\"Classifier ID: {classifier.ClassifierId}\");\n```\n\n### 6. Classify Document\n\n```csharp\nstring classifierId = \"my-classifier\";\nUri documentUri = new Uri(\"https:\u002F\u002Fexample.com\u002Fdocument.pdf\");\n\nvar options = new ClassifyDocumentOptions(classifierId, documentUri);\n\nOperation\u003CAnalyzeResult> operation = await client.ClassifyDocumentAsync(\n    WaitUntil.Completed, \n    options);\n\nAnalyzeResult result = operation.Value;\n\nforeach (AnalyzedDocument document in result.Documents)\n{\n    Console.WriteLine($\"Document type: {document.DocumentType}, confidence: {document.Confidence}\");\n}\n```\n\n### 7. Manage Models\n\n```csharp\n\u002F\u002F Get resource details\nDocumentIntelligenceResourceDetails resourceDetails = await adminClient.GetResourceDetailsAsync();\nConsole.WriteLine($\"Custom models: {resourceDetails.CustomDocumentModels.Count}\u002F{resourceDetails.CustomDocumentModels.Limit}\");\n\n\u002F\u002F Get specific model\nDocumentModelDetails model = await adminClient.GetModelAsync(\"my-model-id\");\nConsole.WriteLine($\"Model: {model.ModelId}, Created: {model.CreatedOn}\");\n\n\u002F\u002F List models\nawait foreach (DocumentModelDetails modelItem in adminClient.GetModelsAsync())\n{\n    Console.WriteLine($\"Model: {modelItem.ModelId}\");\n}\n\n\u002F\u002F Delete model\nawait adminClient.DeleteModelAsync(\"my-model-id\");\n```\n\n## Key Types Reference\n\n| Type | Description |\n|------|-------------|\n| `DocumentIntelligenceClient` | Main client for analysis |\n| `DocumentIntelligenceAdministrationClient` | Model management |\n| `AnalyzeResult` | Result of document analysis |\n| `AnalyzedDocument` | Single document within result |\n| `DocumentField` | Extracted field with value and confidence |\n| `DocumentFieldType` | String, Date, Number, Currency, etc. |\n| `DocumentPage` | Page info (lines, words, selection marks) |\n| `DocumentTable` | Extracted table with cells |\n| `DocumentModelDetails` | Custom model metadata |\n| `BlobContentSource` | Training data source |\n\n## Build Modes\n\n| Mode | Use Case |\n|------|----------|\n| `DocumentBuildMode.Template` | Fixed layout documents (forms) |\n| `DocumentBuildMode.Neural` | Variable layout documents |\n\n## Best Practices\n\n1. **Use DefaultAzureCredential** for production\n2. **Reuse client instances** — clients are thread-safe\n3. **Handle long-running operations** — Use `WaitUntil.Completed` for simplicity\n4. **Check field confidence** — Always verify `Confidence` property\n5. **Use appropriate model** — Prebuilt for common docs, custom for specialized\n6. **Use custom subdomain** — Required for Entra ID authentication\n\n## Error Handling\n\n```csharp\nusing Azure;\n\ntry\n{\n    var operation = await client.AnalyzeDocumentAsync(\n        WaitUntil.Completed, \n        \"prebuilt-invoice\", \n        documentUri);\n}\ncatch (RequestFailedException ex)\n{\n    Console.WriteLine($\"Error: {ex.Status} - {ex.Message}\");\n}\n```\n\n## Related SDKs\n\n| SDK | Purpose | Install |\n|-----|---------|---------|\n| `Azure.AI.DocumentIntelligence` | Document analysis (this SDK) | `dotnet add package Azure.AI.DocumentIntelligence` |\n| `Azure.AI.FormRecognizer` | Legacy SDK (deprecated) | Use DocumentIntelligence instead |\n\n## Reference Links\n\n| Resource | URL |\n|----------|-----|\n| NuGet Package | https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FAzure.AI.DocumentIntelligence |\n| API Reference | https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fapi\u002Fazure.ai.documentintelligence |\n| GitHub Samples | https:\u002F\u002Fgithub.com\u002FAzure\u002Fazure-sdk-for-net\u002Ftree\u002Fmain\u002Fsdk\u002Fdocumentintelligence\u002FAzure.AI.DocumentIntelligence\u002Fsamples |\n| Document Intelligence Studio | https:\u002F\u002Fdocumentintelligence.ai.azure.com\u002F |\n| Prebuilt Models | https:\u002F\u002Faka.ms\u002Fazsdk\u002Fformrecognizer\u002Fmodels |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n","# Azure.AI.DocumentIntelligence (.NET)\n\nExtract text, tables, and structured data from documents using prebuilt and custom models.\n\n## Installation\n\n```bash\ndotnet add package Azure.AI.DocumentIntelligence\ndotnet add package Azure.Identity\n```\n\n**Current Version**: v1.0.0 (GA)\n\n## Environment Variables\n\n```bash\nDOCUMENT_INTELLIGENCE_ENDPOINT=https:\u002F\u002F\u003Cresource-name>.cognitiveservices.azure.com\u002F\nDOCUMENT_INTELLIGENCE_API_KEY=\u003Cyour-api-key>\nBLOB_CONTAINER_SAS_URL=https:\u002F\u002F\u003Cstorage>.blob.core.windows.net\u002F\u003Ccontainer>?\u003Csas-token>\n```\n\n## Authentication\n\n### Microsoft Entra ID (Recommended)\n\n```csharp\nusing Azure.Identity;\nusing Azure.AI.DocumentIntelligence;\n\nstring endpoint = Environment.GetEnvironmentVariable(\"DOCUMENT_INTELLIGENCE_ENDPOINT\");\nvar credential = new DefaultAzureCredential();\nvar client = new DocumentIntelligenceClient(new Uri(endpoint), credential);\n```\n\n> **Note**: Entra ID requires a **custom subdomain** (e.g., `https:\u002F\u002F\u003Cresource-name>.cognitiveservices.azure.com\u002F`), not a regional endpoint.\n\n### API Key\n\n```csharp\nstring endpoint = Environment.GetEnvironmentVariable(\"DOCUMENT_INTELLIGENCE_ENDPOINT\");\nstring apiKey = Environment.GetEnvironmentVariable(\"DOCUMENT_INTELLIGENCE_API_KEY\");\nvar client = new DocumentIntelligenceClient(new Uri(endpoint), new AzureKeyCredential(apiKey));\n```\n\n## Client Types\n\n| Client | Purpose |\n|--------|---------|\n| `DocumentIntelligenceClient` | Analyze documents, classify documents |\n| `DocumentIntelligenceAdministrationClient` | Build\u002Fmanage custom models and classifiers |\n\n## Prebuilt Models\n\n| Model ID | Description |\n|----------|-------------|\n| `prebuilt-read` | Extract text, languages, handwriting |\n| `prebuilt-layout` | Extract text, tables, selection marks, structure |\n| `prebuilt-invoice` | Extract invoice fields (vendor, items, totals) |\n| `prebuilt-receipt` | Extract receipt fields (merchant, items, total) |\n| `prebuilt-idDocument` | Extract ID document fields (name, DOB, address) |\n| `prebuilt-businessCard` | Extract business card fields |\n| `prebuilt-tax.us.w2` | Extract W-2 tax form fields |\n| `prebuilt-healthInsuranceCard.us` | Extract health insurance card fields |\n\n## Core Workflows\n\n### 1. Analyze Invoice\n\n```csharp\nusing Azure.AI.DocumentIntelligence;\n\nUri invoiceUri = new Uri(\"https:\u002F\u002Fexample.com\u002Finvoice.pdf\");\n\nOperation\u003CAnalyzeResult> operation = await client.AnalyzeDocumentAsync(\n    WaitUntil.Completed, \n    \"prebuilt-invoice\", \n    invoiceUri);\n\nAnalyzeResult result = operation.Value;\n\nforeach (AnalyzedDocument document in result.Documents)\n{\n    if (document.Fields.TryGetValue(\"VendorName\", out DocumentField vendorNameField)\n        && vendorNameField.FieldType == DocumentFieldType.String)\n    {\n        string vendorName = vendorNameField.ValueString;\n        Console.WriteLine($\"Vendor Name: '{vendorName}', confidence: {vendorNameField.Confidence}\");\n    }\n\n    if (document.Fields.TryGetValue(\"InvoiceTotal\", out DocumentField invoiceTotalField)\n        && invoiceTotalField.FieldType == DocumentFieldType.Currency)\n    {\n        CurrencyValue invoiceTotal = invoiceTotalField.ValueCurrency;\n        Console.WriteLine($\"Invoice Total: '{invoiceTotal.CurrencySymbol}{invoiceTotal.Amount}'\");\n    }\n    \n    \u002F\u002F Extract line items\n    if (document.Fields.TryGetValue(\"Items\", out DocumentField itemsField)\n        && itemsField.FieldType == DocumentFieldType.List)\n    {\n        foreach (DocumentField item in itemsField.ValueList)\n        {\n            var itemFields = item.ValueDictionary;\n            if (itemFields.TryGetValue(\"Description\", out DocumentField descField))\n                Console.WriteLine($\"  Item: {descField.ValueString}\");\n        }\n    }\n}\n```\n\n### 2. Extract Layout (Text, Tables, Structure)\n\n```csharp\nUri fileUri = new Uri(\"https:\u002F\u002Fexample.com\u002Fdocument.pdf\");\n\nOperation\u003CAnalyzeResult> operation = await client.AnalyzeDocumentAsync(\n    WaitUntil.Completed, \n    \"prebuilt-layout\", \n    fileUri);\n\nAnalyzeResult result = operation.Value;\n\n\u002F\u002F Extract text by page\nforeach (DocumentPage page in result.Pages)\n{\n    Console.WriteLine($\"Page {page.PageNumber}: {page.Lines.Count} lines, {page.Words.Count} words\");\n    \n    foreach (DocumentLine line in page.Lines)\n    {\n        Console.WriteLine($\"  Line: '{line.Content}'\");\n    }\n}\n\n\u002F\u002F Extract tables\nforeach (DocumentTable table in result.Tables)\n{\n    Console.WriteLine($\"Table: {table.RowCount} rows x {table.ColumnCount} columns\");\n    foreach (DocumentTableCell cell in table.Cells)\n    {\n        Console.WriteLine($\"  Cell ({cell.RowIndex}, {cell.ColumnIndex}): {cell.Content}\");\n    }\n}\n```\n\n### 3. Analyze Receipt\n\n```csharp\nOperation\u003CAnalyzeResult> operation = await client.AnalyzeDocumentAsync(\n    WaitUntil.Completed, \n    \"prebuilt-receipt\", \n    receiptUri);\n\nAnalyzeResult result = operation.Value;\n\nforeach (AnalyzedDocument document in result.Documents)\n{\n    if (document.Fields.TryGetValue(\"MerchantName\", out DocumentField merchantField))\n        Console.WriteLine($\"Merchant: {merchantField.ValueString}\");\n        \n    if (document.Fields.TryGetValue(\"Total\", out DocumentField totalField))\n        Console.WriteLine($\"Total: {totalField.ValueCurrency.Amount}\");\n        \n    if (document.Fields.TryGetValue(\"TransactionDate\", out DocumentField dateField))\n        Console.WriteLine($\"Date: {dateField.ValueDate}\");\n}\n```\n\n### 4. Build Custom Model\n\n```csharp\nvar adminClient = new DocumentIntelligenceAdministrationClient(\n    new Uri(endpoint), \n    new AzureKeyCredential(apiKey));\n\nstring modelId = \"my-custom-model\";\nUri blobContainerUri = new Uri(\"\u003Cblob-container-sas-url>\");\n\nvar blobSource = new BlobContentSource(blobContainerUri);\nvar options = new BuildDocumentModelOptions(modelId, DocumentBuildMode.Template, blobSource);\n\nOperation\u003CDocumentModelDetails> operation = await adminClient.BuildDocumentModelAsync(\n    WaitUntil.Completed, \n    options);\n\nDocumentModelDetails model = operation.Value;\n\nConsole.WriteLine($\"Model ID: {model.ModelId}\");\nConsole.WriteLine($\"Created: {model.CreatedOn}\");\n\nforeach (var docType in model.DocumentTypes)\n{\n    Console.WriteLine($\"Document type: {docType.Key}\");\n    foreach (var field in docType.Value.FieldSchema)\n    {\n        Console.WriteLine($\"  Field: {field.Key}, Confidence: {docType.Value.FieldConfidence[field.Key]}\");\n    }\n}\n```\n\n### 5. Build Document Classifier\n\n```csharp\nstring classifierId = \"my-classifier\";\nUri blobContainerUri = new Uri(\"\u003Cblob-container-sas-url>\");\n\nvar sourceA = new BlobContentSource(blobContainerUri) { Prefix = \"TypeA\u002Ftrain\" };\nvar sourceB = new BlobContentSource(blobContainerUri) { Prefix = \"TypeB\u002Ftrain\" };\n\nvar docTypes = new Dictionary\u003Cstring, ClassifierDocumentTypeDetails>()\n{\n    { \"TypeA\", new ClassifierDocumentTypeDetails(sourceA) },\n    { \"TypeB\", new ClassifierDocumentTypeDetails(sourceB) }\n};\n\nvar options = new BuildClassifierOptions(classifierId, docTypes);\n\nOperation\u003CDocumentClassifierDetails> operation = await adminClient.BuildClassifierAsync(\n    WaitUntil.Completed, \n    options);\n\nDocumentClassifierDetails classifier = operation.Value;\nConsole.WriteLine($\"Classifier ID: {classifier.ClassifierId}\");\n```\n\n### 6. Classify Document\n\n```csharp\nstring classifierId = \"my-classifier\";\nUri documentUri = new Uri(\"https:\u002F\u002Fexample.com\u002Fdocument.pdf\");\n\nvar options = new ClassifyDocumentOptions(classifierId, documentUri);\n\nOperation\u003CAnalyzeResult> operation = await client.ClassifyDocumentAsync(\n    WaitUntil.Completed, \n    options);\n\nAnalyzeResult result = operation.Value;\n\nforeach (AnalyzedDocument document in result.Documents)\n{\n    Console.WriteLine($\"Document type: {document.DocumentType}, confidence: {document.Confidence}\");\n}\n```\n\n### 7. Manage Models\n\n```csharp\n\u002F\u002F Get resource details\nDocumentIntelligenceResourceDetails resourceDetails = await adminClient.GetResourceDetailsAsync();\nConsole.WriteLine($\"Custom models: {resourceDetails.CustomDocumentModels.Count}\u002F{resourceDetails.CustomDocumentModels.Limit}\");\n\n\u002F\u002F Get specific model\nDocumentModelDetails model = await adminClient.GetModelAsync(\"my-model-id\");\nConsole.WriteLine($\"Model: {model.ModelId}, Created: {model.CreatedOn}\");\n\n\u002F\u002F List models\nawait foreach (DocumentModelDetails modelItem in adminClient.GetModelsAsync())\n{\n    Console.WriteLine($\"Model: {modelItem.ModelId}\");\n}\n\n\u002F\u002F Delete model\nawait adminClient.DeleteModelAsync(\"my-model-id\");\n```\n\n## Key Types Reference\n\n| Type | Description |\n|------|-------------|\n| `DocumentIntelligenceClient` | Main client for analysis |\n| `DocumentIntelligenceAdministrationClient` | Model management |\n| `AnalyzeResult` | Result of document analysis |\n| `AnalyzedDocument` | Single document within result |\n| `DocumentField` | Extracted field with value and confidence |\n| `DocumentFieldType` | String, Date, Number, Currency, etc. |\n| `DocumentPage` | Page info (lines, words, selection marks) |\n| `DocumentTable` | Extracted table with cells |\n| `DocumentModelDetails` | Custom model metadata |\n| `BlobContentSource` | Training data source |\n\n## Build Modes\n\n| Mode | Use Case |\n|------|----------|\n| `DocumentBuildMode.Template` | Fixed layout documents (forms) |\n| `DocumentBuildMode.Neural` | Variable layout documents |\n\n## Best Practices\n\n1. **Use DefaultAzureCredential** for production\n2. **Reuse client instances** — clients are thread-safe\n3. **Handle long-running operations** — Use `WaitUntil.Completed` for simplicity\n4. **Check field confidence** — Always verify `Confidence` property\n5. **Use appropriate model** — Prebuilt for common docs, custom for specialized\n6. **Use custom subdomain** — Required for Entra ID authentication\n\n## Error Handling\n\n```csharp\nusing Azure;\n\ntry\n{\n    var operation = await client.AnalyzeDocumentAsync(\n        WaitUntil.Completed, \n        \"prebuilt-invoice\", \n        documentUri);\n}\ncatch (RequestFailedException ex)\n{\n    Console.WriteLine($\"Error: {ex.Status} - {ex.Message}\");\n}\n```\n\n## Related SDKs\n\n| SDK | Purpose | Install |\n|-----|---------|---------|\n| `Azure.AI.DocumentIntelligence` | Document analysis (this SDK) | `dotnet add package Azure.AI.DocumentIntelligence` |\n| `Azure.AI.FormRecognizer` | Legacy SDK (deprecated) | Use DocumentIntelligence instead |\n\n## Reference Links\n\n| Resource | URL |\n|----------|-----|\n| NuGet Package | https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FAzure.AI.DocumentIntelligence |\n| API Reference | https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fapi\u002Fazure.ai.documentintelligence |\n| GitHub Samples | https:\u002F\u002Fgithub.com\u002FAzure\u002Fazure-sdk-for-net\u002Ftree\u002Fmain\u002Fsdk\u002Fdocumentintelligence\u002FAzure.AI.DocumentIntelligence\u002Fsamples |\n| Document Intelligence Studio | https:\u002F\u002Fdocumentintelligence.ai.azure.com\u002F |\n| Prebuilt Models | https:\u002F\u002Faka.ms\u002Fazsdk\u002Fformrecognizer\u002Fmodels |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n",{},"release\u002Fv4.2.11-panel-pro","a92ea02bcf7e2b3dbaf46d49696c29a3cb490d4f",".github\u002Fskills\u002Fazure-ai-document-intelligence-dotnet","https:\u002F\u002Fgithub.com\u002Fjaviertarazon\u002Fide-agente-free-jt7-","https:\u002F\u002Fgithub.com\u002Fjaviertarazon","2026-07-12 07:10:45",{"source":7,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add javiertarazon\u002Fide-agente-free-jt7- --skill azure-ai-document-intelligence-dotnet",{"tool":45,"command":46},"bunx","bunx skills add javiertarazon\u002Fide-agente-free-jt7- --skill azure-ai-document-intelligence-dotnet",{"tool":48,"command":49},"pnpm","pnpm dlx skills add javiertarazon\u002Fide-agente-free-jt7- --skill azure-ai-document-intelligence-dotnet","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjaviertarazon\u002Fide-agente-free-jt7-\u002Fblob\u002Frelease\u002Fv4.2.11-panel-pro\u002F.github\u002Fskills\u002Fazure-ai-document-intelligence-dotnet\u002FSKILL.md",true,[],[54,84,111,131,146,168],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":63,"publishedAt":28},"01M71TQ7Q6Z10VWF3C2H5X1KW9","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reacti...","https:\u002F\u002Fgithub.com\u002Fjaviertarazon\u002Fide-agente-free-jt7-\u002Fblob\u002Frelease\u002Fv4.2.11-panel-pro\u002F.github\u002Fskills\u002Fzustand-store-ts\u002FSKILL.md",[60],{"categoryNo":61,"categoryName":62,"taxonomyType":19,"taxonomyTypeDesc":20},"01JBSEEDCAT000000000000009","前端开发",[64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83],"zustand","store","zustand store ts","community","middleware","implementing","use","react state management","when","unknown","react","with","state","create","state management","typescript","action","management","separation","global",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":93,"publishedAt":28},"01M71TQ5EAR40G6W0MV5ZDVEZT","zoom-automation","Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fjaviertarazon\u002Fide-agente-free-jt7-\u002Fblob\u002Frelease\u002Fv4.2.11-panel-pro\u002F.github\u002Fskills\u002Fzoom-automation\u002FSKILL.md",[90],{"categoryNo":91,"categoryName":92,"taxonomyType":19,"taxonomyTypeDesc":20},"01JBSEEDCAT000000000000023","Skill与智能体开发",[94,95,96,67,97,98,99,100,101,73,102,103,104,105,106,107,108,109,81,110],"zoom automation","zoom","automation","creation","for","search","schemas","MCP","first","via","meeting","search tools","tracking","webinars","composio","recordings","Tools",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":118,"publishedAt":28},"01M71TQ29B1EYBCEAP1ZBGXQ1A","zoho-crm-automation","Automate Zoho CRM tasks via Rube MCP (Composio): create\u002Fupdate records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fjaviertarazon\u002Fide-agente-free-jt7-\u002Fblob\u002Frelease\u002Fv4.2.11-panel-pro\u002F.github\u002Fskills\u002Fzoho-crm-automation\u002FSKILL.md",[117],{"categoryNo":91,"categoryName":92,"taxonomyType":19,"taxonomyTypeDesc":20},[119,120,96,121,122,123,67,124,125,98,126,99,100,127,101,73,128,129,130,77],"crm automation","zoho crm automation","crm","zoho crm","zoho","leads","manage leads","manage","records","convert","tasks","contacts",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":138,"publishedAt":28},"01M71TPZPMN60DH0XV58KVHY23","zendesk-automation","Automate Zendesk tasks via Rube MCP (Composio): tickets, users, organizations, replies. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fjaviertarazon\u002Fide-agente-free-jt7-\u002Fblob\u002Frelease\u002Fv4.2.11-panel-pro\u002F.github\u002Fskills\u002Fzendesk-automation\u002FSKILL.md",[137],{"categoryNo":91,"categoryName":92,"taxonomyType":19,"taxonomyTypeDesc":20},[139,96,140,67,98,99,100,101,141,73,129,142,143,102,103,144,105,108,110,145],"zendesk automation","zendesk","organizations","replies","users","tickets","automate",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":28},"01M71TPXDWKHKG4N6TVEPXWD0N","zapier-make-patterns","No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity ...","https:\u002F\u002Fgithub.com\u002Fjaviertarazon\u002Fide-agente-free-jt7-\u002Fblob\u002Frelease\u002Fv4.2.11-panel-pro\u002F.github\u002Fskills\u002Fzapier-make-patterns\u002FSKILL.md",[],[153,154,155,156,157,158,159,160,161,96,162,73,163,164,165,166,167,145],"zapier make patterns","zapier","patterns","make","No-Code","complexity","writing","spawner","business","workflow","code","integromat","apache","processes","but",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":177,"publishedAt":28},"01M71TPT5T10WXNKW9G7ZXZ27W","youtube-summarizer","Extract transcripts from YouTube videos and generate comprehensive, detailed summaries using intelligent analysis frameworks","https:\u002F\u002Fgithub.com\u002Fjaviertarazon\u002Fide-agente-free-jt7-\u002Fblob\u002Frelease\u002Fv4.2.11-panel-pro\u002F.github\u002Fskills\u002Fyoutube-summarizer\u002FSKILL.md",[174],{"categoryNo":175,"categoryName":176,"taxonomyType":19,"taxonomyTypeDesc":20},"01JBSEEDCAT000000000000016","图像与多媒体",[178,179,180,181,67,182,183,184,185,186,187,188,163,189,190,191,192,193,194,195],"summarizer","youtube","youtube summarizer","Video","content-analysis","frameworks","copilot","2025","github-copilot","extract transcripts","analysis","codex","cli","summaries","github","generate","summarization","2026"]