agent-Specialization/config/search.py

18 lines
444 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""搜索相关配置。"""
import os
# 选择 Tavily 使用哪个环境变量中的密钥。
# 默认保持兼容:仍使用 AGENT_TAVILY_API_KEY。
# 你可以改成例如AGENT_TAVILY_API_KEY_2 / AGENT_TAVILY_API_KEY_BACKUP
TAVILY_API_KEY_ENV_NAME = "AGENT_TAVILY_API_KEY"
# 实际生效的 Tavily 密钥
TAVILY_API_KEY = os.environ.get(TAVILY_API_KEY_ENV_NAME, "")
__all__ = [
"TAVILY_API_KEY_ENV_NAME",
"TAVILY_API_KEY",
]