docs: revert SystemPromptConfig docs [langchain-ai/deepagents#4969] - #5056
Conversation
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
|
Thanks for opening a docs PR, Nishitha M (@imnishitha)! When it's ready for review, please add the relevant reviewers:
|
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
…fig) Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
| Besides a string, the main agent also accepts a @[`SystemMessage`] with structured [content blocks](/oss/langchain/messages#standard-content-blocks); Deep Agents preserve those blocks ([subagent](/oss/deepagents/subagents) dictionary specs remain strings). | ||
| </Note> | ||
|
|
||
| When middleware adds special tools, like the filesystem tools, it appends its own guidance to the system prompt at runtime. |
There was a problem hiding this comment.
yup
There was a problem hiding this comment.
are you sure? it looks like for StateBackend for example FilesystemMiddleware appends nothing to the system prompt https://github.com/langchain-ai/deepagents/blob/f1727c785c44809e7b1b7ed8c5d0b31c560ae3ad/libs/deepagents/deepagents/graph.py#L629-L636
There was a problem hiding this comment.
verified - by default mw appends nothing (no custom system_prompt and no execution support)
|
Mintlify preview branch generated: Site preview: https://langchain-5e9cc07a-preview-opensw-1785262793-1b12552.mintlify.site Important Preview links may take a few minutes to start working while the deployment finishes. Changed documentation pages (preview deep links): |
Description
langchain-ai/deepagents#4969reverted the alphaSystemPromptConfig(prefix/base/suffixdict) feature, sosystem_prompt=is a plainstr | SystemMessageagain. This drops theSystemPromptConfigguidance from the Python-side "System prompt" section entirely and fixes the section intro, which incorrectly claimed a built-in base prompt ships by default. Also resyncs the Python function-signature snippet (staleSystemPromptConfigreference) and drops the now-staleSystemPromptConfiglink-map entry. No changelog changes.langchain-ai/deepagentsjsmirrored the revert (#700, #703), but keptSystemPromptConfigin its type union as a@deprecatedcompatibility shim slated for removal in the next major release. Dropped it from the JS signature snippet to match. Note for reviewers: that snippet is normally auto-generated byscripts/sync_deepagents_signatures.pyfrom the live API reference site, which still lists the deprecated type — don't blindly re-run that script against this one file until deepagentsjs's next major release actually removes the shim, or it'll reintroduceSystemPromptConfig.Test Plan
make check-cross-refsmake lint_prose FILES=...on changed.mdxfilesOpened collaboratively by Nishitha Madhu and open-swe