FinVoice / state.py
krishhx's picture
Upload 14 files
981c0f7 verified
Raw History Blame Contribute Delete
551 Bytes
from typing import TypedDict, Annotated, Optional
import operator
class AgentState(TypedDict):
# Inputs & Speech
audio_path: str
transcript: str
language: str
confidence: float
# Customer Context
customer_id: str
customer_context: dict
# Conversation State
intent: str
messages: Annotated[list, operator.add]
# Agent Workflow
last_action: str
requires_human: bool
ticket_id: Optional[str]
# Outputs
response_text: str
response_audio_path: str
error: str