[PR #3463] langgraph(prebuilt): allow a PromptTemplate in react agent #3298

Closed
opened 2026-02-20 17:48:23 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/3463

State: closed
Merged: Yes


Currently a ChatPromptTemplate cannot be used as a prompt for create_react_agent without complaints from type checkers, although it is supported by model as input.

Add the missing types to remove the warning.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/3463 **State:** closed **Merged:** Yes --- Currently a ChatPromptTemplate cannot be used as a `prompt` for `create_react_agent` without complaints from type checkers, although it is supported by `model` as input. Add the missing types to remove the warning.
yindo added the pull-request label 2026-02-20 17:48:23 -05:00
yindo closed this issue 2026-02-20 17:48:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#3298