Skip to content

chore(langchain): add types in agent middleware tests#38188

Merged
Mason Daugherty (mdrxy) merged 6 commits into
langchain-ai:masterfrom
cbornet:langchain_v1-types-test-middleware
Jun 23, 2026
Merged

chore(langchain): add types in agent middleware tests#38188
Mason Daugherty (mdrxy) merged 6 commits into
langchain-ai:masterfrom
cbornet:langchain_v1-types-test-middleware

Conversation

@cbornet

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file (e.g. `pyproject.toml` or `uv.lock`) infra PRs made that include chores, devops, repo meta changes langchain `langchain` package issues & PRs size: M 200-499 LOC labels Jun 16, 2026
@langchain-oss-automated-triage langchain-oss-automated-triage Bot added trusted-contributor >= 5 merged PRs in the `langchain-ai/langchain` repo external labels Jun 16, 2026
custom_field: str

@wrap_model_call(state_schema=CustomState)
@wrap_model_call(state_schema=CustomState) # type: ignore[type-var]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess CustomState not inheriting from AgentState is on purpose ?

@cbornet Christophe Bornet (cbornet) force-pushed the langchain_v1-types-test-middleware branch from 488c393 to 9bdd245 Compare June 16, 2026 09:03
@mdrxy Mason Daugherty (mdrxy) merged commit 64177b6 into langchain-ai:master Jun 23, 2026
56 of 57 checks passed
@cbornet Christophe Bornet (cbornet) deleted the langchain_v1-types-test-middleware branch June 23, 2026 08:55
@codspeed-hq

codspeed-hq Bot commented Jun 23, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 2 untouched benchmarks
⏩ 13 skipped benchmarks1


Comparing cbornet:langchain_v1-types-test-middleware (9c9edda) with master (36be77b)2

Open in CodSpeed

Footnotes

  1. 13 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on master (18fe347) during the generation of this report, so 36be77b was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file (e.g. `pyproject.toml` or `uv.lock`) external infra PRs made that include chores, devops, repo meta changes langchain `langchain` package issues & PRs size: M 200-499 LOC trusted-contributor >= 5 merged PRs in the `langchain-ai/langchain` repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants