tessl install tessl/pypi-azure-ai-documentintelligence@1.0.0Azure AI Document Intelligence client library for Python - a cloud service that uses machine learning to analyze text and structured data from documents
Agent Success
Agent success rate when using this tile
76%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.19x
Baseline
Agent success rate without this tile
64%
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.