feat:新增投顾agent和nl2sqlagent
This commit is contained in:
@@ -108,6 +108,32 @@ class LLMCfg(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_prefix="LLM_", env_file=_ENV_FILE, extra="ignore")
|
||||
|
||||
|
||||
class AdvisorAgentCfg(BaseSettings):
|
||||
"""投顾工作台调用 Agent 服务的配置。"""
|
||||
|
||||
base_url: str = ""
|
||||
timeout: float = 1.0
|
||||
request_timeout: float = 1.0
|
||||
retry: int = 1
|
||||
llm_timeout: float = 5.0
|
||||
graph_timeout: float = 2.0
|
||||
milvus_timeout: float = 2.0
|
||||
|
||||
model_config = SettingsConfigDict(
|
||||
env_prefix="ADVISOR_AGENT_", env_file=_ENV_FILE, extra="ignore"
|
||||
)
|
||||
|
||||
|
||||
class AdvisorCfg(BaseSettings):
|
||||
"""投顾工作台后台任务开关。"""
|
||||
|
||||
event_consumer_enabled: bool = False
|
||||
event_retry_interval_sec: float = 30.0
|
||||
scheduler_enabled: bool = False
|
||||
|
||||
model_config = SettingsConfigDict(env_prefix="ADVISOR_", env_file=_ENV_FILE, extra="ignore")
|
||||
|
||||
|
||||
class JwtCfg(BaseSettings):
|
||||
"""JWT 鉴权配置(service/auth.py)。"""
|
||||
secret: str # 签名密钥,生产必须换强随机值
|
||||
@@ -136,6 +162,8 @@ class Settings(BaseSettings):
|
||||
neo4j: Neo4jCfg = Neo4jCfg()
|
||||
milvus: MilvusCfg = MilvusCfg()
|
||||
llm: LLMCfg = LLMCfg()
|
||||
advisor_agent: AdvisorAgentCfg = AdvisorAgentCfg()
|
||||
advisor: AdvisorCfg = AdvisorCfg()
|
||||
|
||||
model_config = SettingsConfigDict(env_file=_ENV_FILE, extra="ignore")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user