fix: improve maintenance and synchronize live conversations

This commit is contained in:
WangShen007 committed 2026-10-29 09:46:21 +08:00
1 parent bb541bd212
commit ef86a5d3af
297 files changed
+2983 -1274

No files matched your search

+1 -2
View File
@@ -19,11 +19,10 @@ from agno.agent import Agent
from agno.models.openai import OpenAIChat
from openai import AsyncOpenAI, OpenAI
from app.core.logger import get_logger
from app.core.config import settings
from app.core.outbound_http import guarded_async_http_client, guarded_http_client
from app.core.outbound_policy import check_outbound_target, public_only
from app.utils.agno_patches import apply_agno_patches
from typing import Dict, Any, Optional, List
from typing import Dict, Any, Optional
from fastapi import HTTPException
logger = get_logger(__name__)
+1 -1
View File
@@ -28,7 +28,7 @@ Every entry point here FAILS OPEN: a guardrail bug must degrade to
"no guardrail", never to "no chat".
"""
from dataclasses import dataclass, field
from dataclasses import dataclass
from typing import List, Optional, Tuple
from app.agents.guardrail_policy import CANARY_STRINGS, looks_like_scope_refusal
+1 -1
View File
@@ -16,7 +16,7 @@ limitations under the License.
import json
import re
from typing import Any, Dict, Optional, Type, Union
from typing import Any, Dict, Type
from app.core.logger import get_logger
from app.models.schemas.chat import ChatResponse