[PR #3735] docs(deepagents): document SystemMessage for main system_prompt #3761

Open
opened 2026-06-05 18:53:03 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3735
Author: @AdemBoukhris457
Created: 4/25/2026
Status: 🔄 Open

Base: mainHead: docs/deepagents-system-prompt-systemmessage


📝 Commits (2)

  • 4afc873 docs(deepagents): document SystemMessage system_prompt with content blocks
  • ef73e89 docs(deepagents): use langchain.messages for SystemMessage import

📊 Changes

1 file changed (+46 additions, -0 deletions)

View changed files

📝 src/oss/deepagents/customization.mdx (+46 -0)

📄 Description

Add a Customization section for main-agent system_prompt as SystemMessage: preserve content_blocks/contentBlocks, append base prompt, and note that subagent specs stay string-only. Python and TypeScript examples.

Overview

Updates Customize Deep Agents under System prompt: documents that the main agent accepts a @[SystemMessage] with structured blocks (content_blocks / contentBlocks), that Deep Agents keep those blocks in order and append the built-in base prompt as a final text block, and that subagent dictionary system_prompt / systemPrompt fields remain strings. Adds matching Python and TypeScript examples and links to standard content blocks.

Type of change

Type: Update existing documentation

Related issues/PRs

  • GitHub issue: closes #3734
  • Feature PR:
  • Linear issue:
  • Slack thread:

Checklist

  • I have read the contributing guidelines, including the language policy
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed (no change required — same page, no new routes)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/3735 **Author:** [@AdemBoukhris457](https://github.com/AdemBoukhris457) **Created:** 4/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/deepagents-system-prompt-systemmessage` --- ### 📝 Commits (2) - [`4afc873`](https://github.com/langchain-ai/docs/commit/4afc8734969d4760dd7b00ec6fe8d6f61c716ceb) docs(deepagents): document SystemMessage system_prompt with content blocks - [`ef73e89`](https://github.com/langchain-ai/docs/commit/ef73e891766e6b11277772bae56e7b12033bba3b) docs(deepagents): use langchain.messages for SystemMessage import ### 📊 Changes **1 file changed** (+46 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/deepagents/customization.mdx` (+46 -0) </details> ### 📄 Description Add a Customization section for main-agent system_prompt as SystemMessage: preserve content_blocks/contentBlocks, append base prompt, and note that subagent specs stay string-only. Python and TypeScript examples. ## Overview Updates [Customize Deep Agents](/oss/deepagents/customization) under **System prompt**: documents that the main agent accepts a @[`SystemMessage`] with structured blocks (`content_blocks` / `contentBlocks`), that Deep Agents keep those blocks in order and append the built-in base prompt as a final text block, and that [subagent](/oss/deepagents/subagents) dictionary `system_prompt` / `systemPrompt` fields remain strings. Adds matching Python and TypeScript examples and links to [standard content blocks](/oss/langchain/messages#standard-content-blocks). ## Type of change **Type:** Update existing documentation ## Related issues/PRs - GitHub issue: closes #3734 - Feature PR: <!-- For LangChain employees, if applicable: --> - Linear issue: - Slack thread: ## Checklist - [x] I have read the [contributing guidelines](README.md), including the [language policy](https://docs.langchain.com/oss/python/contributing/overview#language-policy) - [x] I have tested my changes locally using `docs dev` - [x] All code examples have been tested and work correctly - [x] I have used **root relative** paths for internal links - [x] I have updated navigation in `src/docs.json` if needed (no change required — same page, no new routes) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:53:03 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3761