refactor(backend): update API routes and service layer
- Update agent router/service/repository with new endpoints - Update auth routes with phone-based authentication - Update users service with new phone lookup - Update schedule_items with new schemas - Update message schemas with visibility support - Update settings with new automation scheduler config - Update CLI with new commands - Update tests to match new API contracts
This commit is contained in:
@@ -6,7 +6,7 @@ from typing import Any, ClassVar
|
||||
from uuid import UUID
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
from schemas.agent.runtime_models import AgentOutput
|
||||
from schemas.agent.runtime_models import AgentOutput, RouterAgentOutput
|
||||
|
||||
from ..agent import AgentType, ToolAgentOutput
|
||||
|
||||
@@ -24,6 +24,7 @@ class AgentChatMessageMetadata(BaseModel):
|
||||
run_id: str
|
||||
agent_type: AgentType | None = None
|
||||
user_message_attachments: list[UserMessageAttachment] | None = None
|
||||
router_agent_output: RouterAgentOutput | None = None
|
||||
tool_agent_output: ToolAgentOutput | None = None
|
||||
agent_output: AgentOutput | None = None
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ class UserContext(BaseModel):
|
||||
|
||||
id: str
|
||||
username: str
|
||||
email: str | None = None
|
||||
phone: str | None = None
|
||||
avatar_url: str | None = None
|
||||
bio: str | None = None
|
||||
settings: ProfileSettingsUnion | None = None
|
||||
|
||||
Reference in New Issue
Block a user