Source code for app.extractors.advanced_assessment_needed.extractor
"""Typed extractor wrapper for ``advanced_assessment_needed``.
Authors:
Roger Erismann (https://hammerdirt.solutions), OpenAI Codex
Purpose:
Provides a section-specific entry point that delegates extraction
to the central registry while preserving concrete return typing
for callers and documentation.
Dependencies:
- ``app.extractors.registry.run_extraction`` for shared extraction flow
- ``AdvancedAssessmentNeededExtraction`` for output validation and typing
Data flow:
transcript (str) -> registry -> Outlines/OpenAI -> validated model object
"""
from typing import cast
from ..registry import run_extraction
from .models import AdvancedAssessmentNeededExtraction