"""舆情分析虚拟智能体的上游代理配置。 前端从 ``runtime-config.js`` 读取 AG-UI 地址和 Basic Auth,随每次请求传给 Gateway;本段只保留上游超时,地址以请求体里的 ``apiUrl`` 为准。 """ from __future__ import annotations from pydantic import BaseModel, Field class SentimentAgentConfig(BaseModel): """Gateway 转发舆情分析 AG-UI 流时的超时。""" timeout_seconds: float = Field( default=300, gt=0, description="上游连接与读取超时(秒);流式问答可能持续数分钟", )