Skip to content

Update middleware.mdx#795

Merged
Lauren Hirata Singh (lnhsingh) merged 1 commit into
langchain-ai:mainfrom
gama2219:patch-1
Oct 9, 2025
Merged

Update middleware.mdx#795
Lauren Hirata Singh (lnhsingh) merged 1 commit into
langchain-ai:mainfrom
gama2219:patch-1

Conversation

@gama2219

Copy link
Copy Markdown
Contributor

Overview

Updated the code example for AnthropicPromptCachingMiddleware and create_agent to use the correct argument for the long system instruction.Use system_prompt instead of prompt in create_agent .

Type of change

Type: Update existing documentation

Checklist

  • I have read the contributing guidelines
  • [ x] I have tested my changes locally using docs dev
  • [ x] 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
  • I have gotten approval from the relevant reviewers
  • (Internal team members only / optional) I have created a preview deployment using the Create Preview Branch workflow

Additional notes

Use `system_prompt` instead of `prompt` in `create_agent` examples
@lnhsingh
Lauren Hirata Singh (lnhsingh) merged commit 421503e into langchain-ai:main Oct 9, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants