Spaces:
Configuration error
Configuration error
File size: 551 Bytes
981c0f7 | 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 | 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
|