Skip to content

Commit a8c5713

Browse files
mcavdarlnhsingh
andauthored
docs: Change context_schema from ContextSchema to Context (#1156)
## Overview Fix: use correct Context dataclass instead of ContextSchema in create_agent ## Type of change **Type:** [Update existing documentation / Fix typo/bug] ## Related issues/PRs <!-- Link to related issues, feature PRs, or discussions (if applicable) To automatically close an issue when this PR is merged, use closing keywords: - "closes #123" or "fixes #123" or "resolves #123" For regular references without auto-closing, just use: - "#123" or "See issue #123" Examples: - closes #456 (will auto-close issue #456 when PR is merged) - See #789 for context (will reference but not auto-close issue #789) --> - GitHub issue: - Feature PR: <!-- For LangChain employees, if applicable: --> - Linear issue: - Slack thread: ## Checklist <!-- Put an 'x' in all boxes that apply --> - [x] I have read the [contributing guidelines](README.md) - [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 - 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](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml) ## Additional notes <!-- Any other information that would be helpful for reviewers --> Co-authored-by: Lauren Hirata Singh <lauren@langchain.dev>
1 parent fc77084 commit a8c5713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oss/python/migrate/langchain-v1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ class Context:
690690
agent = create_agent(
691691
model=model,
692692
tools=tools,
693-
context_schema=ContextSchema # [!code highlight]
693+
context_schema=Context # [!code highlight]
694694
)
695695

696696
result = agent.invoke(

0 commit comments

Comments
 (0)