langchain-contentBlocks

Document LangChain message types and content block structures.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/wpsadi/stock-agent --skill langchain-contentblocks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langchain-contentBlocks
Source: https://github.com/wpsadi/stock-agent/tree/main/.agents/skills/langchain-contentBlocks
Command: npx skills add https://github.com/wpsadi/stock-agent --skill langchain-contentblocks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides detailed documentation and examples on how to work with messages in LangChain, enhancing the understanding of the messaging system.

Core Features & Use Cases

  • Message Types: Explains system, human, AI, and tool messages in detail.
  • Usage: Demonstrates the use of text and message prompts.
  • Content Blocks: Details the structure and use of standard content blocks.

Quick Start

Explore the Messages documentation in LangChain to understand different message types and how they are structured in conversations.

Frequently Asked Questions about langchain-contentBlocks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the different message types in LangChain conversations?

LangChain messages use standard content blocks to structure multimodal inputs. These blocks define how text and other data formats are organized and passed to models during interactions.

How do I use text and message prompts in LangChain?

You use text and message prompts in LangChain by structuring inputs into defined message types. This approach manages conversation history and directs model behavior based on the message role.

When should I use tool messages in LangChain model interactions?

Use tool messages in LangChain when integrating function call results into conversations. They structure the output returned by external tools to maintain context for subsequent model responses.

Does LangChain support standard content blocks for messaging?

Yes, LangChain supports standard content blocks for messaging. This structure allows developers to format complex conversation inputs, ensuring models correctly interpret text and other content types.

What is the best way to structure conversation history in LangChain?

The best way to structure conversation history in LangChain is by using the defined message types. Categorizing interactions as system, human, AI, or tool messages maintains clear context for model interactions.