plexus.input_sources.DeepgramInputSource module
- class plexus.input_sources.DeepgramInputSource.DeepgramInputSource(pattern: str = None, **options)
Bases:
TextFileInputSourceLoader-only input source for Deepgram JSON attachments.
Responsibilities: - find the Deepgram attachment - download/parse Deepgram JSON - return baseline transcript text plus raw deepgram metadata
Formatting and slicing are intentionally handled by processors.
- Args:
pattern: Regex pattern to match attachments (used by file-based sources) **options: Additional source-specific options
- extract(item) Score.Input
Find and return Score.Input with text from matching attachment.
- Args:
item: Item with attachedFiles
- Returns:
Score.Input with text content from file
- Raises:
ValueError: If no matching attachment found Exception: If file download or parsing fails