Spaces:
Sleeping
Sleeping
File size: 884 Bytes
fdfe81a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | """AuditContext — shared state passed to agent tools via RunContextWrapper."""
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
from rubric.loader import Rubric
from schemas.parsed import ParsedDeck
from services.renderer import RenderResult
@dataclass
class AuditContext:
"""Shared, read-only context passed to every agent tool via RunContextWrapper[AuditContext].
Attributes
----------
parsed_deck:
Fully parsed PPTX data (shapes, text, notes, EMU positions).
render_result:
Output of ``render_deck``; may be ``skipped=True`` if LibreOffice is unavailable.
rubric:
Loaded brand-rules rubric (Pydantic-validated).
out_dir:
Directory where rendered PNGs are stored.
"""
parsed_deck: ParsedDeck
render_result: RenderResult
rubric: Rubric
out_dir: Path
|