From 2565944051052bc97a35946fff577ee1b8d52c41 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 11 Dec 2025 20:20:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20device=20schema=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/live-agent-api/schemas/device.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main/live-agent-api/schemas/device.py b/main/live-agent-api/schemas/device.py index 643e4697c..02809455f 100644 --- a/main/live-agent-api/schemas/device.py +++ b/main/live-agent-api/schemas/device.py @@ -2,6 +2,8 @@ from datetime import datetime from typing import Optional, List from pydantic import BaseModel, Field +from schemas.agent import AgentConfigResponse + # ==================== Request Schemas ==================== @@ -58,3 +60,13 @@ class DeviceBoundAgentsResponse(BaseModel): device_id: str agents: List[AgentBindingResponse] = [] + +class DeviceAgentResolveResponse(BaseModel): + """Response for resolving agent by device and wake_word""" + device_id: str + agent_id: str + owner_id: Optional[str] = None + is_default: bool + match_type: str = Field(..., description="How agent was matched: 'wake_word' or 'default'") + agent_config: AgentConfigResponse +