[BUG] supervisor agent doesn't work with langchain/openai 0.5.16 #297

Closed
opened 2026-02-15 18:15:35 -05:00 by yindo · 2 comments
Owner

Originally created by @anthonym1991 on GitHub (Jun 27, 2025).

When i use the agent supervisor (version 0.0.14) with langchain/openai 0.5.16 i get the error below.

i'm using the AzureOpenAI llm module.

Error processing query with Supervisor: Error: llm [object Object] must define bindTools method.
at getModelRunnable (/usr/src/node_modules/@langchain/langgraph/src/prebuilt/react_agent_executor.ts:573:11)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at async RunnableCallable.callModel [as func] (/usr/src/node_modules/@langchain/langgraph/src/prebuilt/react_agent_executor.ts:655:25) {
pregelTaskId: 'd9fa48f5-9270-5e21-9ac4-8320c20497fc'
}

After downgrading the langchain/openai library to 0.5.10 the issue seems resolved.

Originally created by @anthonym1991 on GitHub (Jun 27, 2025). When i use the agent supervisor (version 0.0.14) with langchain/openai 0.5.16 i get the error below. i'm using the AzureOpenAI llm module. Error processing query with Supervisor: Error: llm [object Object] must define bindTools method. at getModelRunnable (/usr/src/node_modules/@langchain/langgraph/src/prebuilt/react_agent_executor.ts:573:11) at processTicksAndRejections (node:internal/process/task_queues:105:5) at async RunnableCallable.callModel [as func] (/usr/src/node_modules/@langchain/langgraph/src/prebuilt/react_agent_executor.ts:655:25) { pregelTaskId: 'd9fa48f5-9270-5e21-9ac4-8320c20497fc' } After downgrading the langchain/openai library to 0.5.10 the issue seems resolved.
yindo added the bug label 2026-02-15 18:15:35 -05:00
yindo closed this issue 2026-02-15 18:15:35 -05:00
Author
Owner

@g-abani commented on GitHub (Jul 1, 2025):

Will it be fixed in the upcoming release V1? We were exploring LangGraph for a production use case (Supervisor pattern). But with the current state I don't it would be wise to choose LangGraph.

@g-abani commented on GitHub (Jul 1, 2025): Will it be fixed in the upcoming release V1? We were exploring LangGraph for a production use case (Supervisor pattern). But with the current state I don't it would be wise to choose LangGraph.
Author
Owner

@dqbd commented on GitHub (Jul 16, 2025):

Hello! Sorry about the issue. Cut @langchain/langgraph-supervisor@0.0.15 that should fix the issue for @langchain/openai>=0.5.11.

@dqbd commented on GitHub (Jul 16, 2025): Hello! Sorry about the issue. Cut `@langchain/langgraph-supervisor@0.0.15` that should fix the issue for `@langchain/openai>=0.5.11`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#297