Azure AI Document Intelligence client library for Python - a cloud service that uses machine learning to analyze text and structured data from documents
76
Helpers for launching document analysis jobs with adjustable polling cadence, exposing operation identifiers from service metadata, and resuming in-flight work from continuation tokens.
@generates
from dataclasses import dataclass
from typing import Any
@dataclass
class AnalysisJob:
operation_id: str
continuation_token: str
page_count: int
content: Any
def analyze_document_with_metadata(
client: Any,
model_id: str,
document_path: str,
poll_interval: int = 1
) -> AnalysisJob:
"""
Starts a document analysis with a configurable polling interval, then returns
the completed content plus operation metadata and a continuation token.
"""
def resume_analysis_with_metadata(
client: Any,
continuation_token: str,
poll_interval: int = 1
) -> AnalysisJob:
"""
Resumes a prior analysis using a continuation token and returns the same
operation metadata and final content.
"""Provides document analysis client, enhanced poller metadata, and continuation token support.
Install with Tessl CLI
npx tessl i tessl/pypi-azure-ai-documentintelligencedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10