mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
61 lines
1 KiB
Python
61 lines
1 KiB
Python
"""
|
|
API Schemas
|
|
|
|
Pydantic models for request/response validation.
|
|
"""
|
|
|
|
# Agent schemas
|
|
from schemas.agent import (
|
|
AgentBase,
|
|
AgentCreate,
|
|
AgentUpdate,
|
|
AgentDuplicate,
|
|
AgentResponse,
|
|
AgentListQuery,
|
|
GeneratePromptRequest,
|
|
GeneratePromptResponse,
|
|
)
|
|
|
|
# Device schemas
|
|
from schemas.device import (
|
|
DeviceBase,
|
|
DeviceCreate,
|
|
DeviceUpdate,
|
|
DeviceResponse,
|
|
DeviceListQuery,
|
|
)
|
|
|
|
# Binding schemas
|
|
from schemas.binding import (
|
|
BindingCreate,
|
|
BindingUpdate,
|
|
BindingResponse,
|
|
BindingWithDetails,
|
|
BindingListQuery,
|
|
)
|
|
|
|
__all__ = [
|
|
# Agent schemas
|
|
"AgentBase",
|
|
"AgentCreate",
|
|
"AgentUpdate",
|
|
"AgentDuplicate",
|
|
"AgentResponse",
|
|
"AgentListQuery",
|
|
"GeneratePromptRequest",
|
|
"GeneratePromptResponse",
|
|
|
|
# Device schemas
|
|
"DeviceBase",
|
|
"DeviceCreate",
|
|
"DeviceUpdate",
|
|
"DeviceResponse",
|
|
"DeviceListQuery",
|
|
|
|
# Binding schemas
|
|
"BindingCreate",
|
|
"BindingUpdate",
|
|
"BindingResponse",
|
|
"BindingWithDetails",
|
|
"BindingListQuery",
|
|
]
|