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%
Implements helper functions that move document models and classifiers between Azure Document Intelligence resources by combining target-generated copy authorizations with long-running pollers.
@generates
from dataclasses import dataclass
from typing import Optional, Tuple
@dataclass
class ResourceConfig:
endpoint: str
api_key: str
target_asset_id: str
def copy_model(source: ResourceConfig, target: ResourceConfig, *, poll_interval: float = 5.0) -> str:
"""Initiates a cross-resource model copy using a target authorization and waits for completion. Returns the new model id from the target resource."""
def copy_classifier(source: ResourceConfig, target: ResourceConfig, *, poll_interval: float = 5.0) -> str:
"""Initiates a cross-resource classifier copy using a target authorization and waits for completion. Returns the new classifier id from the target resource."""
def resume_copy(continuation_token: str, *, poll_interval: float = 5.0) -> Tuple[str, str]:
"""Resumes a previously started model or classifier copy using a continuation token and returns a tuple of (asset_id, status) when done."""Provides administration clients, copy authorization helpers, and pollers for model and classifier copy operations.