[GH-ISSUE #389] [feat:] Support for defining the location of middleware prompt #257

Open
opened 2026-06-05 17:21:18 -04:00 by yindo · 1 comment
Owner

Originally created by @liSong5713 on GitHub (Mar 30, 2026).
Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/389

now: System prompt are in the form of appends

systemMessage.concat(todoListPrompt)

target: Supports insertion to a specified position

systemMessage.replace(`{TODOLIST_PROMPT}`,todoListPrompt)
Originally created by @liSong5713 on GitHub (Mar 30, 2026). Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/389 now: System prompt are in the form of appends ```typescript systemMessage.concat(todoListPrompt) ``` target: Supports insertion to a specified position ```typescript systemMessage.replace(`{TODOLIST_PROMPT}`,todoListPrompt) ```
yindo added the needs-response label 2026-06-05 17:21:18 -04:00
Author
Owner

@hntrl commented on GitHub (Jun 2, 2026):

Hey @liSong5713!

Could you give some more clarity on what you mean here? These system prompt admonitions are replaced by each middleware individually

<!-- gh-comment-id:4606674084 --> @hntrl commented on GitHub (Jun 2, 2026): Hey @liSong5713! Could you give some more clarity on what you mean here? These system prompt admonitions are replaced by each middleware individually
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#257