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%
Utility for launching and managing batch document analysis jobs against Azure Blob Storage so multiple files can be processed and results collected in bulk.
@generates
from typing import Dict, Iterable, Optional, TypedDict, Tuple
class BatchRunSummary(TypedDict):
operation_id: str
status: str
percent_completed: Optional[int]
def start_batch_run(
model_id: str,
source_container_url: str,
*,
file_list_path: Optional[str] = None,
result_container_url: str,
result_prefix: Optional[str] = None,
overwrite_existing: bool = False
) -> Tuple[str, str]:
"""
Starts a batch analysis job and returns (operation_id, continuation_token).
Raises ValueError when required URLs are missing.
"""
def resume_batch_status(continuation_token: str) -> Dict[str, int]:
"""
Resumes a batch analysis using continuation token and returns succeeded_count,
failed_count, skipped_count, and current status.
"""
def list_batch_runs(
model_id: str,
*,
skip: int = 0,
top: int = 20
) -> Iterable[BatchRunSummary]:
"""
Iterates over recent batch runs for a model yielding summaries.
"""
def delete_batch_run(model_id: str, result_id: str) -> None:
"""
Removes the stored batch result for the given identifiers.
"""Provides batch document analysis and run management against Azure resources.