Spaces:
Configuration error
Configuration error
Download state.py from krishhx/FinVoice: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/spaces/krishhx/FinVoice/resolve/main/state.py
- Command line
-
hf download hf://spaces/krishhx/FinVoice/state.py
-
curl -L -o state.py https://huggingface.co/spaces/krishhx/FinVoice/resolve/main/state.py
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 | |