Skip to content
Snippets Groups Projects
Unverified Commit 060880ab authored by Wessel's avatar Wessel Committed by GitHub
Browse files

fix: toolretriever for Agent OpenAI broken (#718)

parent 728b35e7
No related branches found
No related tags found
No related merge requests found
......@@ -107,9 +107,9 @@ export class OpenAIAgentWorker
}
this.prefixMessages = prefixMessages || [];
if (Array.isArray(tools) && tools.length > 0 && toolRetriever) {
if (tools.length > 0 && toolRetriever) {
throw new Error("Cannot specify both tools and tool_retriever");
} else if (Array.isArray(tools)) {
} else if (tools.length > 0) {
this._getTools = async () => tools;
} else if (toolRetriever) {
// fixme: this won't work, type mismatch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment