stack configure fixes

This commit is contained in:
Ashwin Bharambe 2024-09-17 14:12:22 -07:00
parent 66cbf7b292
commit 95a7f225cf
2 changed files with 24 additions and 8 deletions

View file

@ -69,7 +69,9 @@ class MetaReferenceAgentsImpl(Agents):
elif tool_defn.engine == SearchEngineType.bing:
key = self.config.bing_search_api_key
if not key:
raise ValueError("API key not defined in config")
raise ValueError(
"Search (Brave or Bing) API key not defined in config"
)
tool = SearchTool(tool_defn.engine, key)
elif isinstance(tool_defn, CodeInterpreterToolDefinition):
tool = CodeInterpreterTool()