Skip to content

The agent engineering platform.

docs: update OpenWiki (#40781)

github-actions[bot]42f04f460d8e
diff --git a/openwiki/.claims/agent-execution.json b/openwiki/.claims/agent-execution.json
index c8d6044724..fff64734e3 100644
--- a/openwiki/.claims/agent-execution.json
+++ b/openwiki/.claims/agent-execution.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:6d2dd5c14c9fd39233694a1e55b4834368b448da97791dd15f15bc0543d0a4ad",
+ "pageVersion": "sha256:c36ed3bfa6acfdaf33179bd7cf4a4811864ccff80181c5c88b46227be3eacc14",
"claims": [
{
"id": "claim_601f8ad960a04f2195c35dab22235db1",
@@ -31,8 +31,8 @@
"statement": "ExtendedModelResponse allows middleware to return a ModelResponse paired with an optional Command for additional state updates. Commands are applied via graph reducers, so messages in commands are added alongside (not replacing) model response messages; non-reducer fields are overwritten by later commands.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L213-L261",
- "version": "repo-lines-v1:sha256:5404ae4a873489da2373636dee137a925338f578fb6fd654106ce9e3fbcc6aae:eyJzZWxlY3RlZExpbmVDb3VudCI6NDksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjM3YzgzN2QxZjhjOGZmMTQ2ZGFkODY5ZTlhZDhkMGNjYzY2YTA0Y2JhNjVkNzBhYTM5ZDUxMDAwNTQzMzFiNGYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlOTY0ZTA5YzA1OGVmOGY5ODA1ZGFjYTU0NmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQ3MjIzMTA2ZmQ4NzQyYjcwZWEyMzNmOWRjMzU5ZjRiMDJiYmIwNjliNzI4M2VlZjc2MjQ5OTUxNmJkN2I5YzgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjQ0ZDAxMGVkNzkyYjIyNTEyNDc4N2ViNzBhZTFlMTQ3ZGNiOGJjMjkxNDgzZTU3ZWRhYWE5M2JkYWJhZmE4ODkifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L222-L278",
+ "version": "repo-lines-v1:sha256:6bb49e7a7e6403834213953a9111549f15c00024566792a43dc06e6452e013b7:eyJzZWxlY3RlZExpbmVDb3VudCI6NTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjM3YzgzN2QxZjhjOGZmMTQ2ZGFkODY5ZTlhZDhkMGNjYzY2YTA0Y2JhNjVkNzBhYTM5ZDUxMDAwNTQzMzFiNGYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImYyNmQ2OGQ5YjUyMjFlYjU5NGVmOGJjN2JmZTNhYzVhNjM2ZjA2MjlmNmU1ZGNmNmE5NWEyMGZmMThhZDdmMzAiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQ3MjIzMTA2ZmQ4NzQyYjcwZWEyMzNmOWRjMzU5ZjRiMDJiYmIwNjliNzI4M2VlZjc2MjQ5OTUxNmJkN2I5YzgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjRiN2UyMTk1NWE5MGNjNjVhNmY1YmQxNTE2ODEyYThmYTQzYmNmZDhiZWJiMzMwNDJiMzg4NDZjMmUzNzYwNzQifQ"
},
{
"resource": "repo://libs/langchain_v1/langchain/agents/middleware/types.py#L290-L313",
@@ -83,8 +83,8 @@
"statement": "_make_tools_to_model_edge decides after tool execution whether to continue the loop or exit. It routes back to the model if no AIMessage exists (for recovery). It exits if all executed client-side tools have return_direct=True or if a structured output tool was executed. Otherwise it loops back to the model via model_destination.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L2004-L2043",
- "version": "repo-lines-v1:sha256:600efbf881448e5cb5250d3ab7f403b67c281cc1963747fb68ba2b03ce762369:eyJzZWxlY3RlZExpbmVDb3VudCI6NDAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImUxY2ZjMmJmMGMwNmFhZmMyOTNjNWE3MTkzYzc2MjFhMmQwYjIyOWZjNGE1MWZjZmRlOGUwYmRiYzUwNjUyMjYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImM0NDc5Y2NlZDY2YWZmYzNjMDk5ODhiNTAzODY1NmNhNTJhOWY5YTQ0NTJjMWE0ZjZlZTQ1ZDVlYzViNDU3YTMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjU4ZTE2NjY1MDcwYTE2MzkwYzYyZjliN2NkNWE2ZWQ5ZmI2ODZhODE2ZGNkNjAwMjBlNTNkMzhmNjAxYzUxYjkiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjEzYTAxMjkzY2I3Njk4NDI1NTk0MzViYzQ2ZGZjNTFhYTBhZmNlMWEzYjA0NzE0ZDNiMTdlMzA2YzdiMjQxZTAifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L2072-L2111",
+ "version": "repo-lines-v1:sha256:7f40311e71b8cf9998ebd15c56929ee7ea8180cb6fe725a7b4b4ebfb917603a1:eyJzZWxlY3RlZExpbmVDb3VudCI6NDAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImUxY2ZjMmJmMGMwNmFhZmMyOTNjNWE3MTkzYzc2MjFhMmQwYjIyOWZjNGE1MWZjZmRlOGUwYmRiYzUwNjUyMjYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImM0NDc5Y2NlZDY2YWZmYzNjMDk5ODhiNTAzODY1NmNhNTJhOWY5YTQ0NTJjMWE0ZjZlZTQ1ZDVlYzViNDU3YTMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjU4ZTE2NjY1MDcwYTE2MzkwYzYyZjliN2NkNWE2ZWQ5ZmI2ODZhODE2ZGNkNjAwMjBlNTNkMzhmNjAxYzUxYjkiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjEzYTAxMjkzY2I3Njk4NDI1NTk0MzViYzQ2ZGZjNTFhYTBhZmNlMWEzYjA0NzE0ZDNiMTdlMzA2YzdiMjQxZTAifQ"
}
]
},
@@ -137,12 +137,12 @@
"statement": "The agent loop terminates when: (1) model does not call tools (tool_calls is empty), (2) middleware sets jump_to='end', (3) a structured output tool is executed and its response is parsed, (4) a tool with return_direct=True is executed, (5) state['structured_response'] is populated after a model invocation, or (6) an unhandled exception occurs.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1923-L1975",
- "version": "repo-lines-v1:sha256:964403b0cff43101e0a6d7fc69ae5b93dc942efb343cfc9f243a36cbe0684356:eyJzZWxlY3RlZExpbmVDb3VudCI6NTMsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjE1MTk5NmZkM2IyMzMzY2I4NjM2ZDA0ODRiZjE5M2FiMTBkM2EzMDIyYTEzNjVjYjUyMWM1OGViZjBlZDU5NWUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlOTY0ZTA5YzA1OGVmOGY5ODA1ZGFjYTU0NmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjhlY2FhN2I3NjczYjkzMmU5YTQ1M2U2ZGJlNWFiN2E2NTQ4ZTkwYzFkMjdiZWQ0NWI2ZDU2NTUwODNmZTg1NmYiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjUxMTJhMDFhZTM4MjIzNGM5YTBiNzQxOGIxNDJjMGI4MWQ2ODMwODhhMDAzYWVjNDgxZTkyNWYzOTk3NjhjNDQifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1991-L2042",
+ "version": "repo-lines-v1:sha256:90f3484e1db603ca91961271ffe2716ec68518de6b784495775f9e91208d9a21:eyJzZWxlY3RlZExpbmVDb3VudCI6NTIsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjE1MTk5NmZkM2IyMzMzY2I4NjM2ZDA0ODRiZjE5M2FiMTBkM2EzMDIyYTEzNjVjYjUyMWM1OGViZjBlZDU5NWUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjM2MGIxYjRhOGUzZDA5NTFjMjljOGQ5ZWIxMDA1YmI4ZjJlNTRlMWQyMmJmNWJjNzkzYzdiNWVkODk0NzJkZmUiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjhlY2FhN2I3NjczYjkzMmU5YTQ1M2U2ZGJlNWFiN2E2NTQ4ZTkwYzFkMjdiZWQ0NWI2ZDU2NTUwODNmZTg1NmYiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6Ijg1YzliZTg2ODgxZmU3ODAyNTYwNGNjZDUxZjUzMTk5OTIwYTc1ODFkZjE4ZDBiMTJkM2JhZTFkYmJlM2ZmMzMifQ"
},
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L2004-L2043",
- "version": "repo-lines-v1:sha256:600efbf881448e5cb5250d3ab7f403b67c281cc1963747fb68ba2b03ce762369:eyJzZWxlY3RlZExpbmVDb3VudCI6NDAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6Im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5ZmI2ODZhODE2ZGNkNjAwMjBlNTNkMzhmNjAxYzUxYjkiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjEzYTAxMjkzY2I3Njk4NDI1NTk0MzViYzQ2ZGZjNTFhYTBhZmNlMWEzYjA0NzE0ZDNiMTdlMzA2YzdiMjQxZTAifQ"
}
]
},
@@ -161,8 +161,8 @@
"statement": "The messages field uses add_messages reducer, so returned Commands with {\"messages\": [msg]} append msg to the list rather than replace it. This preserves conversation history across iterations and ensures each model invocation has access to the full conversation and all tool results.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L237-L243",
- "version": "repo-lines-v1:sha256:90c2906591d5390e6dcbbc5e41b564f6f3d87e9476efdc5127ac996ebd3db382:eyJzZWxlY3RlZExpbmVDb3VudCI6NywiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiN2RmMTA3ZmZiOWMzNzBiZjM1MTdhNzM5NTJiMDBmMmE2OTUyNDdiNmY5ZDNmZWQ0ZjIwYjRjZDkxZmIzMWMwZSIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiMDFiYTQ3MTljODBiNmZlOTExYjA5MWE3YzA1MTI0YjY0ZWVlY2U5NjRlMDljMDU4ZWY4Zjk4MDVkYWNhNTQ2YiIsInByZWNlZGluZ0NvbnRleHRMaW5lQ291bnQiOjMsInByZWNlZGluZ0NvbnRleHRIYXNoIjoiZDNkMzk2YzQ2Yzc1Mjc0NWRkMDRjMzM0MjdjYTE3NTk3MzBhMjcwODg3YWRmZDI0NjM2ZDM1NGI3NTQwNDY2NiIsImZvbGxvd2luZ0NvbnRleHRMaW5lQ291bnQiOjMsImZvbGxvd2luZ0NvbnRleHRIYXNoIjoiZDdmMmM3NjdjZWUyZTMyZDY3N2Y5MWY5ZThkZDY1NTZkODBiNGRkZWZkYTc0MGQ5NjZiNjk1ZTExZDc0NmU2MCJ9"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L222-L278",
+ "version": "repo-lines-v1:sha256:6bb49e7a7e6403834213953a9111549f15c00024566792a43dc06e6452e013b7:eyJzZWxlY3RlZExpbmVDb3VudCI6NTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjM3YzgzN2QxZjhjOGZmMTQ2ZGFkODY5ZTlhZDhkMGNjYzY2YTA0Y2JhNjVkNzBhYTM5ZDUxMDAwNTQzMzFiNGYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImYyNmQ2OGQ5YjUyMjFlYjU5NGVmOGJjN2JmZTNhYzVhNjM2ZjA2MjlmNmU1ZGNmNmE5NWEyMGZmMThhZDdmMzAiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQ3MjIzMTA2ZmQ4NzQyYjcwZWEyMzNmOWRjMzU5ZjRiMDJiYmIwNjliNzI4M2VlZjc2MjQ5OTUxNmJkN2I5YzgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjRiN2UyMTk1NWE5MGNjNjVhNmY1YmQxNTE2ODEyYThmYTQzYmNmZDhiZWJiMzMwNDJiMzg4NDZjMmUzNzYwNzQifQ"
},
{
"resource": "repo://libs/langchain_v1/langchain/agents/middleware/types.py#L349-L355",
@@ -185,8 +185,12 @@
"statement": "The model_node constructs a ModelRequest from current state, invokes wrap_model_call middleware if configured (passing _execute_model_sync as handler), and returns Commands that update messages and structured_response. Async variant amodel_node is provided for async-capable models.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1468-L1543",
- "version": "repo-lines-v1:sha256:54cd45424a6da345b6cdd58f06adae623405b4dd53cb45edf97323f1d2b57833:eyJzZWxlY3RlZExpbmVDb3VudCI6NzYsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxNmM1NDhlYTczZDQ4MDYw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TliZDk4MWQ0OWZhNzMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjZjN2NkODMxNjdmZWQwOWY1MjBlZWE4ZDExY2Q4NGMyY2JiYmYxMmZhZjIwNTIzMThhMGI0Yzg1NTAwZDY2MWQifQ"
+ },
+ {
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1579-L1608",
+ "version": "repo-lines-v1:sha256:e5c058ab7b4b7312b00a24cceecf4e666602e7f43fe164882375f13f8cb7fec6:eyJzZWxlY3RlZExpbmVDb3VudCI6MzAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6Ijk0OTViOTlmMzJhZDc3NzBiMWY2MTAwYTk0NWVkYWJiZmI5M2Y4NTM0MzQyODNiYTA3OWQyMjUyYzBlMGU3YWEiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjU5MDlhNTNhNjE4ZDAyOGUxZDMwMDBjMGE3YWJjZWVjYmU1ZmIzN2Y0ZTUxMWVmZTQ2NjQzZmFkNmU2Njg3MmYiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjU3YWEzMjYzMTc0YzhiNjQ4ZTI4YmIxMWI5MmZkYTQ0MGUyMTlkZDIzNzU5ZjhmMTA4MTliZDk4MWQ0OWZhNzMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjI0MDEyMzVhMzBlZTUwMjYyZjZkN2YxYmNlZWMyYjgzZGE4MDcxNzMyMmMzYjFlMzVkMWQyZmJiMzdmODczYTIifQ"
}
]
},
@@ -247,6 +251,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/agent-factory.json b/openwiki/.claims/agent-factory.json
index 4782addaab..79c53c54fd 100644
--- a/openwiki/.claims/agent-factory.json
+++ b/openwiki/.claims/agent-factory.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:2c73027e4ac35b6bafe1b1e6da66b81ecdbdfdd7c36522eee378830a21a33af5",
+ "pageVersion": "sha256:a04138ae1db4de18f11689760a882c8412eab3e79b77dcabedd87303f75ae572",
"claims": [
{
"id": "claim_0d3a898647bd4d1d9c08eb386919394b",
@@ -17,12 +17,12 @@
"statement": "The agent factory constructs a state machine with nodes: START → entry_node (before_agent or before_model or model) → loop_entry_node (before_model or model) → model → loop_exit_node (after_model or model) → [tools → loop_entry_node loop | exit_node] → END. The model is called, and if it returns tool calls, the tools node executes them and loops back to loop_entry_node unless a tool has return_direct=True, a structured output was produced, or no pending tool calls remain.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1647-L1743",
- "version": "repo-lines-v1:sha256:e5d4752fd45563b2294e6d0e37f5aff8f5ced6fd3f7b62a204f170a82d433a0b:eyJzZWxlY3RlZExpbmVDb3VudCI6OTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImIyYjM1ZjA3NzlhODIwMDkzMTkzZDkzOGEzYWE0OTA1NmVjMjk2ODc2YjViM2E1YWQyZmU1MTA3MDMyMDEzZGQiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjU5MDlhNTNhNjE4ZDAyOGUxZDMwMDBjMGE3YWJjZWVjYmU1ZmIzN2Y0ZTUxMWVmZTQ2NjQzZmFkNmU2Njg3MmYiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQwOWY2YTA3YmVkNjMwN2Q0MjRjNjAxMzRjMzg3ZThiZjc1NDAxNGEzZjY0ZDk0NzQ3ZWFhZWRkZWViZTMxZTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjcxN2UwYTFmMTc1YWZhZGQ2MGViYzMwOGQzMGU4ZDQ3NGExZDVmZGIyMDFlZWZjZWM5NTk0NDRlM2RkZTQ1MDgifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1715-L1741",
+ "version": "repo-lines-v1:sha256:6a9301dce7f8e1d582e51352100d6bc83b057a39077b3c190d491f91a2704806:eyJzZWxlY3RlZExpbmVDb3VudCI6MjcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImIyYjM1ZjA3NzlhODIwMDkzMTkzZDkzOGEzYWE0OTA1NmVjMjk2ODc2YjViM2E1YWQyZmU1MTA3MDMyMDEzZGQiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjFlOTVhNWNlYjRhMjM0N2FjZTFhNGIzZDcxM2IzNGUyZWNkNTBjMjQ1NWI2MTI3ODQyZGU0ZTYyNmYyZjc5OTMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQwOWY2YTA3YmVkNjMwN2Q0MjRjNjAxMzRjMzg3ZThiZjc1NDAxNGEzZjY0ZDk0NzQ3ZWFhZWRkZWViZTMxZTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjNiZTRiOTcwOGEyNTA0OTI5MTNhYjEzODBjZWVkNTQ4NGQ5NzQ0ZTljNjFmMDVmN2RkYzYxNGU5NzEwMzEzZGIifQ"
},
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L2004-L2043",
- "version": "repo-lines-v1:sha256:600efbf881448e5cb5250d3ab7f403b67c281cc1963747fb68ba2b03ce762369:eyJzZWxlY3RlZExpbmVDb3VudCI6NDAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImUxY2ZjMmJmMGMwNmFhZmMyOTNjNWE3MTkzYzc2MjFhMmQwYjIyOWZjNGE1MWZj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NvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6Ijg1YzliZTg2ODgxZmU3ODAyNTYwNGNjZDUxZjUzMTk5OTIwYTc1ODFkZjE4ZDBiMTJkM2JhZTFkYmJlM2ZmMzMifQ"
}
]
},
@@ -115,12 +115,12 @@
"statement": "Tools are registered at agent creation from BaseTool instances, raw callables (auto-wrapped), or dict-based provider tools. The ToolNode batches pending tool calls and executes them. Conditional edges route back to loop_entry_node unless all executed tools have return_direct=True, a structured output tool was called, or no pending tool calls remain.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1077-L1096",
- "version": "repo-lines-v1:sha256:f51ce8995c6e7b5b534cc0b32939c94c0739cfdae2e1bac61c23707201372310:eyJzZWxlY3RlZExpbmVDb3VudCI6MjAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjkxN2EyMDA1ODk0MzI1ODA1MmVlOTkzNDZjZmQwNGI0OTVmOWM4ZGI5NDMyMjMzYTk3ZWMxNWI5ZGM3ZDZhOWMiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjMwYzFmMTg4ZjE0MmVkN2E4MjQ2ODBiMjA3MTcyYzU1MTliYzYxNGE0OGZkYTdjZjE2N2VkYjhkZGY3OTk1NmMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjFiZmE4NzY1YjhjZDgxOWNlZDI4ODVkMzFmMTNkNTUwMGUwYWJiMjdhZGM1M2FlOWM3ZDE5YTJmZTNhNDFkZTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjE4YzM2ZmUxMTg0NTI5MDAyNThmZjEwNWEyY2M2NjNlZWJlOWFhN2YxN2YwYzM0NTI3ZWU5NWM0ODdmYTQ4YWQifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1129-L1157",
+ "version": "repo-lines-v1:sha256:978653217698fe353834f511fb796c0d721f99c88522baeca72a4c53776f20a4:eyJzZWxlY3RlZExpbmVDb3VudCI6MjksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjkxN2EyMDA1ODk0MzI1ODA1MmVlOTkzNDZjZmQwNGI0OTVmOWM4ZGI5NDMyMjMzYTk3ZWMxNWI5ZGM3ZDZhOWMiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjMzNmJkMTA2MmFkMDVkMTIxNmIzOGQ0YTE2YzQyN2IzMGUwMjk0MDNlYmU2NjJiZDc2MWRjM2I5YTExYjFkZjgiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjFiZmE4NzY1YjhjZDgxOWNlZDI4ODVkMzFmMTNkNTUwMGUwYWJiMjdhZGM1M2FlOWM3ZDE5YTJmZTNhNDFkZTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6Ijc2NGI5NGZmNzU2NTg5YWU2ODg4ODNjMjE4YWZhNmQyNmViZDNmOTZhNTk3MDkyM2E5NTkwYWM0ZjU1NjUzZjgifQ"
},
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L2004-L2043",
- "version": "repo-lines-v1:sha256:600efbf881448e5cb5250d3ab7f403b67c281cc1963747fb68ba2b03ce762369:eyJzZWxlY3RlZExpbmVDb3VudCI6NDAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImUxY2ZjMmJmMGMwNmFhZmMyOTNjNWE3MTkzYzc2MjFhMmQwYjIyOWZjNGE1MWZjZmRlOGUwYmRiYzUwNjUyMjYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImM0NDc5Y2NlZDY2YWZmYzNjMDk5ODhiNTAzODY1NmNhNTJhOWY5YTQ0NTJjMWE0ZjZlZTQ1ZDVlYzViNDU3YTMiLCJwcmV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,12 +143,12 @@
"statement": "wrap_model_call handlers can return ExtendedModelResponse with optional Command to inject additional state updates (e.g., synthetic ToolMessages) alongside the model response. Commands are accumulated inner-first across middleware layers and applied via the graph's reducers.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L213-L260",
- "version": "repo-lines-v1:sha256:dd556027d5be455837c96fee074d9d469dc9ff5f16187ca7f30054aedcf185d2:eyJzZWxlY3RlZExpbmVDb3VudCI6NDgsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjM3YzgzN2QxZjhjOGZmMTQ2ZGFkODY5ZTlhZDhkMGNjYzY2YTA0Y2JhNjVkNzBhYTM5ZDUxMDAwNTQzMzFiNGYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImYyNmQ2OGQ5YjUyMjFlYjU5NGVmOGJjN2JmZTNhYzVhNjM2ZjA2MjlmNmU1ZGNmNmE5NWEyMGZmMThhZDdmMzAiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQ3MjIzMTA2ZmQ4NzQyYjcwZWEyMzNmOWRjMzU5ZjRiMDJiYmIwNjliNzI4M2VlZjc2MjQ5OTUxNmJkN2I5YzgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjRiN2UyMTk1NWE5MGNjNjVhNmY1YmQxNTE2ODEyYThmYTQzYmNmZDhiZWJiMzMwNDJiMzg4NDZjMmUzNzYwNzQifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L222-L278",
+ "version": "repo-lines-v1:sha256:6bb49e7a7e6403834213953a9111549f15c00024566792a43dc06e6452e013b7:eyJzZWxlY3RlZExpbmVDb3VudCI6NTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjM3YzgzN2QxZjhjOGZmMTQ2ZGFkODY5ZTlhZDhkMGNjYzY2YTA0Y2Jh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b250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6Ijg5N2YxZTk4NWMxZjZkMGZhOGM2NDhjMzNiMjAxMzVkN2YwOTcwYjBkM2JjOTNmNWU4Y2YzMDFlM2NmZDQ3NTQifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L74-L87",
+ "version": "repo-lines-v1:sha256:48b1c4df678e2be4a9638253dc6765081e5e7b4512586c99766939d0ffa73abe:eyJzZWxlY3RlZExpbmVDb3VudCI6MTQsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImI2ZmJhZTBiOTFkNDRmYzBkNDlmNWRlNjkxZGE2ZmM0MzFmMjYwMTM0YmY3MzFlMGUyMWY3NjQ4MDk0MzM0Y2IiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImU1MzE0N2Q0ODc1NmVmZDE4OWVjMTY4Yzg2MDgxY2ExYWU0NjYxNjJmNTZhMGNiYjA0OGEyOTA2OGRmNzEwMzIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImMxZDlmZTU0Nzg3MTE5ODcxMGUxODVhM2JlZjViYjRkODQ0MjNlZmFmNzBjMjJmMDM3Yzk0ZTI2NjU4NDYwYTkiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjJkZTlhOTVmZjI2NTMxOWVjM2U1ZjdlYzQ1ODFlNjBiYTc3NTA3Y2I3OWY5YWM4M2IzNmNmZjU5M2FjMGRjNWEifQ"
},
{
"resource": "repo://libs/langchain_v1/langchain/agents/middleware/types.py#L290-L312",
@@ -213,11 +213,11 @@
"statement": "The factory creates a RunnableCallable wrapping both sync (model_node) and async (amodel_node) implementations for the model. At runtime, the appropriate variant is invoked based on context. Middleware can implement only sync, only async, or both; mismatches raise NotImplementedError.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1441-L1540",
- "version": "repo-lines-v1:sha256:532e4c0266711b50e0c35f598eeed855abac267da25c4583a95bd685d9ec2b5f:eyJzZWxlY3RlZExpbmVDb3VudCI6MTAwLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiIyM2Y5MDJjMTQyODdhYWM5MGI0YzRkMDgyYzhiNDk4MjIwNzA0NzZjMmM1NDI5YzFkNWZkNTFkNTcwM2FhNjdlIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiI1OTA5YTUzYTYxOGQwMjhlMWQzMDAwYzBhN2FiY2VlY2JlNWZiMzdmNGU1MTFlZmU0NjY0M2ZhZDZlNjY4NzJmIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiIyMGE3OTExMzk4MDg1ZmMxOTc0MjY3MGM1Mjg4NmE2NWY3Y2JmMzQwYTAyM2VjZDM5OTJjNTM0MGE2ZDA4OGZjIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiIyNDAxMjM1YTMwZWU1MDI2MmY2ZDdmMWJjZWVjMmI4M2RhODA3MTczMjJjM2IxZTM1ZDFkMmZiYjM3Zjg3M2EyIn0"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1520-L1608",
+ "version": "repo-lines-v1:sha256:3671052586382011e014a6d60493d804ee6b77d3628034c4ba96e87301ce4b14:eyJzZWxlY3RlZExpbmVDb3VudCI6ODksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxNmM1NDhlYTczZDQ4MDYwYjczZTVkODUwYjE3MWRlNjVjZGZmNWUyYTdhMTg2ZTY0MmEwZWEzMWJmYmNhZTYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjU5MDlhNTNhNjE4ZDAyOGUxZDMwMDBjMGE3YWJjZWVjYmU1ZmIzN2Y0ZTUxMWVmZTQ2NjQzZmFkNmU2Njg3MmYiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjU3YWEzMjYzMTc0YzhiNjQ4ZTI4YmIxMWI5MmZkYTQ0MGUyMTlkZDIzNzU5ZjhmMTA4MTliZDk4MWQ0OWZhNzMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjI0MDEyMzVhMzBlZTUwMjYyZjZkN2YxYmNlZWMyYjgzZGE4MDcxNzMyMmMzYjFlMzVkMWQyZmJiMzdmODczYTIifQ"
},
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1543-L1543",
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1611-L1611",
"version": "repo-lines-v1:sha256:707193ba595307f4fc96a69e6ecc2079fe02c897e4ec8e7524bd3c176e42aab6:eyJzZWxlY3RlZExpbmVDb3VudCI6MSwiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiNzA3MTkzYmE1OTUzMDdmNGZjOTZhNjllNmVjYzIwNzlmZTAyYzg5N2U0ZWM4ZTc1MjRiZDNjMTc2ZTQyYWFiNiIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiNzA3MTkzYmE1OTUzMDdmNGZjOTZhNjllNmVjYzIwNzlmZTAyYzg5N2U0ZWM4ZTc1MjRiZDNjMTc2ZTQyYWFiNiIsInByZWNlZGluZ0NvbnRleHRMaW5lQ291bnQiOjMsInByZWNlZGluZ0NvbnRleHRIYXNoIjoiNGY0NmQ4NTdiNGQ0YzU0YjdlMjc5ZDFhYjJlMDBlNzZkNWNlZjdmNWU2ZGY1NDVjNmU1ODY3N2RhNWMxNmI3OCIsImZvbGxvd2luZ0NvbnRleHRMaW5lQ291bnQiOjMsImZvbGxvd2luZ0NvbnRleHRIYXNoIjoiMTkyNmY0ZTljZmY4MjI2N2ZkODcxMTM3YTc4ODcxNjc1NWZhODllODVhNGRkYWNlMWJlZTRmNjQ0NGFmYmNiZCJ9"
}
]
@@ -225,6 +225,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/architecture.json b/openwiki/.claims/architecture.json
index ea448479e2..e515738cec 100644
--- a/openwiki/.claims/architecture.json
+++ b/openwiki/.claims/architecture.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:4bcc27e623ef816245eaea9630b852b1c8e3d01cfb4d739ba4ec040e531d087a",
+ "pageVersion": "sha256:0ec1a52034f7d7a17bf13aa56da7bcc7d5bb40c9511a485690b6e8ce9ddbe89f",
"claims": [
{
"id": "claim_d872799ce6874d76b63667fe912b7616",
@@ -8,7 +8,7 @@
"evidence": [
{
"resource": "repo://libs/README.md",
- "version": "repo-file-v1:sha256:9fa04aa8e3984518023a2cf3aa48b0bb893c0d91fb3dae26b606f3c0b7099e73"
+ "version": "repo-file-v1:sha256:bf9438a195af2a58f3b89b7190271b32f223f337b11792f64416f34f3d444da3"
},
{
"resource": "repo://libs/core/README.md",
@@ -26,7 +26,7 @@
},
{
"id": "claim_bf4afec1395b4acbbf413fe2928daab6",
- "statement": "langchain-core (v1.6.4) provides the stable base abstractions including Runnable protocol, BaseChatModel, message types, tools, prompts, and callbacks.",
+ "statement": "langchain-core (v1.6.5) provides the stable base abstractions including Runnable protocol, BaseChatModel, message types, tools, prompts, and callbacks.",
"evidence": [
{
"resource": "repo://libs/core/langchain_core/language_models/chat_models.py#L1-L80",
@@ -38,7 +38,7 @@
},
{
"resource": "repo://libs/core/pyproject.toml#L24-L24",
- "version": "repo-lines-v1:sha256:42333aaeacf99b71a78e6fd897dc32d5ccd6942d4e4ceeb50f73af01f068fc2a:eyJzZWxlY3RlZExpbmVDb3VudCI6MSwiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiNDIzMzNhYWVhY2Y5OWI3MWE3OGU2Z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0NvbnRleHRIYXNoIjoiOGEyM2RmNzFkODljMGE5NmUzNWFhZjk1ZTdjZTllYTczYTRiN2FlZjQyNDZjN2Q3YzAzZjhlM2EwMTJiZjliNSJ9"
}
]
},
@@ -48,11 +48,11 @@
"evidence": [
{
"resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1-L50",
- "version": "repo-lines-v1:sha256:37c541026ea7a52554d7ef187d5ebb63de7262e3fbd5ab31e15895e63f83ee0b:eyJzZWxlY3RlZExpbmVDb3VudCI6NTAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImRiODk5ZDMyOGM3OWUzYTI0NzBmNDgxMDRjMGNhMjgyYmMyYTU2ODZlMmU3ZDhmOTdmOGEzMzFmOTQ1MzAxOGIiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjZjMDExN2RlMmQ0N2YyNmMzOWIwNTkzNDEwNzYzYmI4NTBmNjMzMzUyOGQ2MGE3YWFmNDZmN2NmM2RkOWEzMTQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjgyNGRlMmE2YTc3N2ZiNWRjOTk4MmUwNDBlYzY3M2VmNWEwOGVhZmRkMTEyM2JiNWQwMWZiODk4MTZmNzI0MzUifQ"
+ "version": "repo-lines-v1:sha256:56c46149d0c4fa21da291c56322f52788f9eaad273db1eca1be1ab170a994947:eyJzZWxlY3RlZExpbmVDb3VudCI6NTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImRiODk5ZDMyOGM3OWUzYTI0NzBmNDgxMDRjMGNhMjgyYmMyYTU2ODZlMmU3ZDhmOTdmOGEzMzFmOTQ1MzAxOGIiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjZjMDExN2RlMmQ0N2YyNmMzOWIwNTkzNDEwNzYzYmI4NTBmNjMzMzUyOGQ2MGE3YWFmNDZmN2NmM2RkOWEzMTQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjgyNGRlMmE2YTc3N2ZiNWRjOTk4MmUwNDBlYzY3M2VmNWEwOGVhZmRkMTEyM2JiNWQwMWZiODk4MTZmNzI0MzUifQ"
},
{
"resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L1-L100",
- "version": "repo-lines-v1:sha256:177ed818a218b34411626c6dcd0acd177faee055ce3738e360913bf7e3693235:eyJzZWxlY3RlZExpbmVDb3VudCI6MTAwLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJkYmQ1OGIwYTEwODJhNjFmZWU5NGY4MTMyNjYzNTZjOGU2YTllYTJjMjQzMDgyOGNhNjI5NTI2MWY3MWQwYzc0IiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJkYWU4YmVlZGQ0ZDcxZDE5NTAzNjU5N2I0MTU2NDkxYWIwNzE2MjRkMzVhYmFiZWQwYmI3OWMyMmVmZDVlNGRmIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MCwicHJlY2VkaW5nQ29udGV4dEhhc2giOiJlM2IwYzQ0Mjk4ZmMxYzE0OWFmYmY0Yzg5OTZmYjkyNDI3YWU0MWU0NjQ5YjkzNGNhNDk1OTkxYjc4NTJiODU1IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI2ZjdkOTE2NDM3NmM2ZDE4ZGQ2ZDEzYjdlNjE2ZTc3YzE3NjAwY2U0OGFlZTUwNDBiZWUyYzZkYjllMTJjNTc1In0"
+ "version": "repo-lines-v1:sha256:3ef2ee98c28f92d90330d719fbe0d479b211475a8f5bc284c551f7c907ddee0b:eyJzZWxlY3RlZExpbmVDb3VudCI6MTAyLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJkYmQ1OGIwYTEwODJhNjFmZWU5NGY4MTMyNjYzNTZjOGU2YTllYTJjMjQzMDgyOGNhNjI5NTI2MWY3MWQwYzc0IiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJkYWU4YmVlZGQ0ZDcxZDE5NTAzNjU5N2I0MTU2NDkxYWIwNzE2MjRkMzVhYmFiZWQwYmI3OWMyMmVmZDVlNGRmIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MCwicHJlY2VkaW5nQ29udGV4dEhhc2giOiJlM2IwYzQ0Mjk4ZmMxYzE0OWFmYmY0Yzg5OTZmYjkyNDI3YWU0MWU0NjQ5YjkzNGNhNDk1OTkxYjc4NTJiODU1IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI2ZjdkOTE2NDM3NmM2ZDE4ZGQ2ZDEzYjdlNjE2ZTc3YzE3NjAwY2U0OGFlZTUwNDBiZWUyYzZkYjllMTJjNTc1In0"
},
{
"resource": "repo://libs/langchain_v1/pyproject.toml#L24-L30",
@@ -84,7 +84,7 @@
"evidence": [
{
"resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L40-L100",
- "version": "repo-lines-v1:sha256:0df6b02c264382e864de70c5639df298325600f5ae5d73c025c60952ed7ac692:eyJzZWxlY3RlZExpbmVDb3VudCI6NjEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlOT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ZXh0SGFzaCI6IjZmN2Q5MTY0Mzc2YzZkMThkZDZkMTNiN2U2MTZlNzdjMTc2MDBjZTQ4YWVlNTA0MGJlZTJjNmRiOWUxMmM1NzUifQ"
}
]
},
@@ -94,7 +94,7 @@
"evidence": [
{
"resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1-L50",
- "version": "repo-lines-v1:sha256:37c541026ea7a52554d7ef187d5ebb63de7262e3fbd5ab31e15895e63f83ee0b:eyJzZWxlY3RlZExpbmVDb3VudCI6NTAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImRiODk5ZDMyOGM3OWUzYTI0NzBmNDgxMDRjMGNhMjgyYmMyYTU2ODZlMmU3ZDhmOTdmOGEzMzFmOTQ1MzAxOGIiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjZjMDExN2RlMmQ0N2YyNmMzOWIwNTkzNDEwNzYzYmI4NTBmNjMzMzUyOGQ2MGE3YWFmNDZmN2NmM2RkOWEzMTQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjgyNGRlMmE2YTc3N2ZiNWRjOTk4MmUwNDBlYzY3M2VmNWEwOGVhZmRkMTEyM2JiNWQwMWZiODk4MTZmNzI0MzUifQ"
+ "version": "repo-lines-v1:sha256:56c46149d0c4fa21da291c56322f52788f9eaad273db1eca1be1ab170a994947:eyJzZWxlY3RlZExpbmVDb3VudCI6NTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImRiODk5ZDMyOGM3OWUzYTI0NzBmNDgxMDRjMGNhMjgyYmMyYTU2ODZlMmU3ZDhmOTdmOGEzMzFmO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b250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjgyNGRlMmE2YTc3N2ZiNWRjOTk4MmUwNDBlYzY3M2VmNWEwOGVhZmRkMTEyM2JiNWQwMWZiODk4MTZmNzI0MzUifQ"
+ "version": "repo-lines-v1:sha256:56c46149d0c4fa21da291c56322f52788f9eaad273db1eca1be1ab170a994947:eyJzZWxlY3RlZExpbmVDb3VudCI6NTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImRiODk5ZDMyOGM3OWUzYTI0NzBmNDgxMDRjMGNhMjgyYmMyYTU2ODZlMmU3ZDhmOTdmOGEzMzFmOTQ1MzAxOGIiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjZjMDExN2RlMmQ0N2YyNmMzOWIwNTkzNDEwNzYzYmI4NTBmNjMzMzUyOGQ2MGE3YWFmNDZmN2NmM2RkOWEzMTQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjgyNGRlMmE2YTc3N2ZiNWRjOTk4MmUwNDBlYzY3M2VmNWEwOGVhZmRkMTEyM2JiNWQwMWZiODk4MTZmNzI0MzUifQ"
}
]
},
@@ -149,6 +149,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-22T08:27:06.345Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/callbacks.json b/openwiki/.claims/callbacks.json
index 92d61892ba..2175228df5 100644
--- a/openwiki/.claims/callbacks.json
+++ b/openwiki/.claims/callbacks.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:438fb8bb5d1224fb820ab31d6d0c8e16554980cf2e3e713ee995f9925142b53f",
+ "pageVersion": "sha256:08c495ccfb12ed0a79d3e0791c2a12f86cb4b7732c6de698b6b1a8bcc71b7718",
"claims": [
{
"id": "claim_1870ae33ffdb41fa87eaee4125620240",
@@ -189,10 +189,24 @@
"version": "repo-lines-v1:sha256:5c88290ff1791d3a8b6cc5c198f1d77c0310fa88bf696f750dfd59b60cf95ed0:eyJzZWxlY3RlZExpbmVDb3VudCI6NzksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjU2MWYzM2MxMzI1NjlhNzQ5NDZiMmZjZjU0NmNhM2M0NDI1ZGEwY2E1Y2Y2YjY4NmMyNjA5MGZhYTlkMTEyYjQiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlOTY0ZTA5YzA1OGVmOGY5ODA1ZGFjYTU0NmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQ4ZWFhMTI4Nzg4ZGE4ODYwNjExOTAyY2NiZWI1ZGVkYzk0NGNkZmIxNWYzYjQ5ODc2YTc5ZTUyYmRhZGNlZDgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImMwNzExZjJlM2U0MTEyODY3YTQyZDJmZGFkZjNmNWRlNWMyNDgyMjY0ODY2NTA2YTQ0ZDgyY2I3YmI1ZmFmNDUifQ"
}
]
+ },
+ {
+ "id": "claim_e64d88e89f8f4da0926d22b50a919b46",
+ "statement": "Custom handlers are implemented by subclassing BaseCallbackHandler and overriding relevant event methods, with configuration of run_inline, ignore_* properties, and parameter handling via **kwargs for forward compatibility.",
+ "evidence": [
+ {
+ "resource": "repo://libs/core/langchain_core/callbacks/base.py#L496-L546",
+ "version": "repo-lines-v1:sha256:d723f5a7310cbc3ff40d2189bbb0d1ae8f86c18ecf557e1e4c233eb69ec3b81f:eyJzZWxlY3RlZExpbmVDb3VudCI6NTEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjlkYjFmOWJkODZiNzhlYWM3NmI4ZWVmMTk1NWNlNDQ2OGI0NDU4ZWJkNTU0YzAxMjU2M2Q0MWE3YTY2N2JkMjAiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlOTY0ZTA5YzA1OGVmOGY5ODA1ZGFjYTU0NmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjM4MzA2YjE3YTFjM2I3MjA4Mzc2OWI4OGM1YjAwN2I5NmEzNWEwNDJmNzllYWI1ODUzMDY3Y2JlZGQ0MWFjOTMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImMwMDFmM2NjZGQxNjYxNDg3ZjBiZjYxOGQ1ZGU3ZjcwMmI0NTg4MGUxNWY5MzJiOTRmMjRhNjJlNzAwMzdjZDQifQ"
+ },
+ {
+ "resource": "repo://libs/core/langchain_core/callbacks/manager.py#L1377-L1726",
+ "version": "repo-lines-v1:sha256:850cfed4d8ba543380b609a75924081f90cd44992b7d4386d8b97b4c79b21d33:eyJzZWxlY3RlZExpbmVDb3VudCI6MzUwLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJmODNkY2VkNmY2MWI1OGMxODZmMTBmYWE2NDNlZjQyM2E0NDgxZDU4MDFmMjg2NWZkZTA5ZmMxZDhkMGExYjIwIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMWJhNDcxOWM4MGI2ZmU5MTFiMDkxYTdjMDUxMjRiNjRlZWVjZTk2NGUwOWMwNThlZjhmOTgwNWRhY2E1NDZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiJiM2RmMmFjZjA2ZThjM2YwM2M3MTM1YzZlOGFjNWE5Y2E1NDMyYWJlMDZhNzRhY2EwZmRkOWE1M2EwMDhmOTg3IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI1ZWE0ZDc2OTA1NWU4MDMxMjliYmExNGFjNzZkNjA0NGEyOGMxNzM0YTM5YmRhNWQ1OTJhNGFmOGYwYmI2Yzk4In0"
+ }
+ ]
}
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/chat-models.json b/openwiki/.claims/chat-models.json
index d9e8ebcd1b..ea83e671b6 100644
--- a/openwiki/.claims/chat-models.json
+++ b/openwiki/.claims/chat-models.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:5fe640d3b1fec48eebaf85f24ff73909b2f78e628131169dd37d3ea97895e8a2",
+ "pageVersion": "sha256:0cd7a2ec4f34f1d485e9a9337aa08d82714284546d8ce04609d9de1a0f58d76e",
"claims": [
{
"id": "claim_d2cdcf05dd4149bb9ea0a5fb0d1568d8",
@@ -299,10 +299,96 @@
"version": "repo-lines-v1:sha256:24287b0abdaea0feab7ef708f33a5c3586ce8ca68f42123671e789ee6437258d:eyJzZWxlY3RlZExpbmVDb3VudCI6MTIsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImExY2Y5ODYxZjhhMGI5MGJkYjMwOTUzMmI4NGVmMTIwMmM5Y2FlZWM1Y2Y1NzAzYjEzOTk1Y2M1YzUxYTg0ZGIiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjI2MWUzYmZlZjJjZDZhZjhhZTUyYmYxYzNiYjllM2NiYTViYmYwZDI4ZDg1MTBlM2YzYWFjZGI2MWM4ZGJhNWQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImI2MTA1MDc4YTkyMGM3MWQxNzFmYjk5ZWJjYTQ1ZTM1ZWYyZjE2N2QwZWY2MzU0OGNhMTYwMmRiMjViNTczYjgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImI3N2VjOGI3OTAxMWU0ZmM0Yjc5OTQ3ZjYxYmFkOTdhYzBmZGRlYmRjZWVjMjc0ZGE1ZDM2MjMwMGQyYzYxNTIifQ"
}
]
+ },
+ {
+ "id": "claim_d815de1b82bf47ef84063fd75dfc7f9b",
+ "statement": "init_chat_model() is a unified factory function that instantiates chat models from any supported provider by provider name (e.g., 'openai:gpt-4o'). It automatically infers providers from model name patterns, dynamically imports provider packages, handles missing dependencies with helpful error messages, and supports both fixed models and configurable runtime models via the configurable_fields parameter.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L197-L533",
+ "version": "repo-lines-v1:sha256:3df9d252963906fa9c33097443f7ef91c28fc0ef668eda39afaf38ad146ac4b5:eyJzZWxlY3RlZExpbmVDb3VudCI6MzM3LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJjMGJkMGU5MWM5OWQ0OGMwMmRmY2I5YjBmZThmMzBkMmExOTU2NGQ0OGNhZDliYWEzODNjMTI2NTE5NWEyMDhlIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIzMGMxZjE4OGYxNDJlZDdhODI0NjgwYjIwNzE3MmM1NTE5YmM2MTRhNDhmZGE3Y2YxNjdlZGI4ZGRmNzk5NTZjIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiI3OTEzMDlkNzIyOWZhMmUzMzA3NjdhYTk5OGVlMTUwY2U5MjJjOTQzYTA0ZmZiY2FmMTRhY2FmMWRhOGViZDI3IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJhZWFiOTFlMjc4N2Y5NGI3ZjQ1NDgwMWI5YmFhOTEyNWZkMTM0ZDM3NzRhNGZlNTI3OTdjNWQzMzVkYjBjOTQ4In0"
+ },
+ {
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L232-L360",
+ "version": "repo-lines-v1:sha256:14a1694d8dbf0cf5df0c05dc6d5f39b3a7a5b65c9c2591b6be8397385b322ab6:eyJzZWxlY3RlZExpbmVDb3VudCI6MTI5LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJjMGJkMGU5MWM5OWQ0OGMwMmRmY2I5YjBmZThmMzBkMmExOTU2NGQ0OGNhZDliYWEzODNjMTI2NTE5NWEyMDhlIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMWJhNDcxOWM4MGI2ZmU5MTFiMDkxYTdjMDUxMjRiNjRlZWVjZTk2NGUwOWMwNThlZjhmOTgwNWRhY2E1NDZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiJkYmQwZGRjODY4NDU5ZDZiZTdhMDFkZjZmNDg1MDkwZDc4ZWYzZDhjNzM2YjhmNTNiZjE2YWZlMTIyNmU3ODFiIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiIwZWI3ZTdkYjI5NzEyNTc3YTg3MmEzMWFiYjk0YjcwMjgwZDk3ODgzMjg0OTA1MzkzNWE3NTVkMWZhNThhOWM0In0"
+ }
+ ]
+ },
+ {
+ "id": "claim_ff8c0b0bbfe04847b1d6f660f30acc74",
+ "statement": "_BUILTIN_PROVIDERS is a dict mapping provider names to (module_path, class_name, creator_func) tuples. It covers 30+ providers including openai, anthropic, bedrock, google_vertexai, groq, ollama, and others. Each entry specifies the module to import, the model class to instantiate, and an optional custom creator function for non-standard initialization.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L56-L99",
+ "version": "repo-lines-v1:sha256:a0432456fbcc294961073b737c0871eb2e1444b6649f4f39c8fd5af7d29f8834:eyJzZWxlY3RlZExpbmVDb3VudCI6NDQsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ0OWFmODNkYjQ4ODc5YTQyYjVjNTliMmEyYmY3NThiYWY4YjFkMmQwNTJmOGRmN2VlNWNkOTIyMjJkYTM4NzUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQxMmNhMzQ1Y2NmNzViZjljMDgwNmJjZTY5NWJlOGRlODA4Yjc5OTg0MjUxYTdhNTRkMjAyY2Y2MTAxZGQ0NTEiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjJkNzA5NGEwOTBkZDkxYjgwMmJjZWIxYWNkYzMwYWMyNTc5MjU4YTFjNjkxNTk4YWVmNjYyMDAyMWQ1NWMzMDQiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjJhYzk3OTRjOTIxODcwZGVjNjU0YWU5YjU2ZDBiMDk3YWU0NDlhODU4NzE5Y2Q3MjhkZDI5N2ZhNjMyN2VhOTYifQ"
+ }
+ ]
+ },
+ {
+ "id": "claim_98088bfb656441899cb0096c4787d893",
+ "statement": "_attempt_infer_model_provider() infers provider from model name patterns: gpt-*|o1|o3->openai, claude*->anthropic, command*->cohere, accounts/fireworks*->fireworks, mistral*|mixtral*->mistralai, deepseek*->deepseek, grok*->xai, sonar*->perplexity, solar*->upstage, gemini*->google_vertexai, amazon.*|anthropic.*|meta.*->bedrock. Inference is best-effort; explicit provider prefix is preferred to avoid ambiguity.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L547-L620",
+ "version": "repo-lines-v1:sha256:a9fa9d961e85cbbccd7d57b4421babf5fbe5d93a7aa62b3bc0b38d6b368121dc:eyJzZWxlY3RlZExpbmVDb3VudCI6NzQsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6Ijg3NjVhMDM2OTVmYTJkMWU0YmU3OWZhYzhmMDNhOGMzOTU2OTI3OTcwMjY0MTMxNDU5NDUzMDc3ZmU0ZjM1NTYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ4OTYwMGE3M2QyZTAyZjM1MmI5MGZlZjFkOGQ2MzgxMWJhNGE4ZWUwYzFiZWFhN2FlNDY1OGYzNmFhMmUxOTgiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjhlNTMyODkxMmQzMWM2MTZhZWI3NzBhM2M1YmI3ZmIxZTE0OTI3MTRiNjQyNThjOTdhZjJlYmM0MDIxNTdkMmUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjllNDUzZTU0YTQ0ZDU0ZDAyYWNiZDViOWE0YjBlNTIxNTQ4ZGM4MTY0ODFjYTBhZDM2YzBiNmFhMzdhZmNiMDcifQ"
+ }
+ ]
+ },
+ {
+ "id": "claim_b789b5e5cfe44223a71ef1eef836fe46",
+ "statement": "_get_chat_model_creator() validates provider is in _BUILTIN_PROVIDERS, imports the module via _import_module(), retrieves the model class, and returns a cached partial function. _import_module() wraps importlib.import_module() to provide helpful pip install suggestions when imports fail.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L125-L149",
+ "version": "repo-lines-v1:sha256:44a60c38a37dacb69dad7d0b97f20680b0698b814036e129b6aa2ef12da1f10a:eyJzZWxlY3RlZExpbmVDb3VudCI6MjUsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImQxMzM5NzBiMzhhNTU5MDE4NjYxYTA1MT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NzU3YWEzNDAiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6Ijc5MTMwOWQ3MjI5ZmEyZTMzMDc2N2FhOTk4ZWUxNTBjZTkyMmM5NDNhMDRmZmJjYWYxNGFjYWYxZGE4ZWJkMjcifQ"
+ }
+ ]
+ },
+ {
+ "id": "claim_f4ac27779f4d4febad61fd53c93d0990",
+ "statement": "_ConfigurableModel defers model instantiation until invoke time. It queues declarative operations (bind_tools, with_structured_output) and applies them after instantiation. It merges default config with runtime config from config['configurable'] based on config_prefix and configurable_fields constraints. Implements invoke/ainvoke/stream/astream/batch/abatch by calling _model(config) to instantiate the underlying model.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L661-L840",
+ "version": "repo-lines-v1:sha256:8af5bc821d5d2313c3c0be06b817e1f0a657d898613230644da33c4b1f424c38:eyJzZWxlY3RlZExpbmVDb3VudCI6MTgwLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiIzOTMyZWQ4MzA3MDI4YzY5NmQ3NWQ0OGYxYWU0OWIyYjkxODlmNjQwNzUxZWFlOGRmMWUzMjc3OWUyOGQ0Njg4IiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJjNjA0Mjg1ZGI3MDk2MTIzMDE4ZmE1MjY0ZjcxNGU1NmU3YTgzODk3ZWI4OWRjYzhiM2FmZmY4YmYxZjM0YTc3IiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiI1MjUxNGJiZTczOThmOGE2NTFkNWY5NTBjYjhkZDllYTliZjYzY2E4Nzc0ZWY3OGJhOGZlY2ZmYjU5OTE0Yjc1IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI0OTJjZTQyZTMzYmI1ZDU0ZjY1Yjg4ZmE0NzgzYmVhZDk1ODY3ZDQ1ZWM5ZjY2YTQwN2MwMmVkOWFkYzRmZmEzIn0"
+ }
+ ]
+ },
+ {
+ "id": "claim_bcd8cf6759eb474b9056ab9334a99a18",
+ "statement": "init_chat_model() raises ValueError with provider list if provider not in _BUILTIN_PROVIDERS. ImportError is raised if required integration package is not installed, with message format 'Initializing {class} requires {pkg}. Please install it with pip install {pkg}'. Ollama has backwards-compatibility fallback: tries langchain-ollama first, then langchain-community.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L173-L190",
+ "version": "repo-lines-v1:sha256:69c709a79fd9205fe9f29941b39c586627e83fde18c9c7421c69ebeb5608d0ff:eyJzZWxlY3RlZExpbmVDb3VudCI6MTgsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImU4ZGYyNjlkODA2NDdkYmI5ZjQzOGNhMTE3MmU1Zjg4ZmVmZmY4MWExMDkyYTQyNzlmN2IzZDM5YTI2ZTI4OGIiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6Ijk3MDgxYWQwZGZiNDJlOGIyYzUwMTliMDNlMTc4ODQwNDY5ZDQ3ZjdmMjc1MDIzZWU4MWE0MzJlZjNkZmQ0ZWQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjFhYjdmM2U1ZTYzZDlmYjg5YzAyZDAwN2UyYWU1ZGRlMWMzYzE0MDU0NjBkOWE2NjI4ZjU4ZWNlZWI5MTZjZTAiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjJjODZmZDllMDQ2NWM0ZWRiNTRiN2ExNjUyNWU1NGIwYWNmODVkMTU0YjI4ZTM5ZTBjNzBlZWQzYjA2OGNlNGMifQ"
+ },
+ {
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L623-L651",
+ "version": "repo-lines-v1:sha256:0f3986f6ea39cbaccfb49ef380d145f3efc5306c2d8faba7cb4e99ecd6236f53:eyJzZWxlY3RlZExpbmVDb3VudCI6MjksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjA0NzUyNzA5Y2ZhODMyODY3NTc4ZjRiNjU2NWJlZGQ5ZmJiYzJlNTkzNTRmNDU5ZTZmM2RkZDgxZjNjNjAyNjIiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6Ijk4YzU3MmZhNzdjYTc0YTBiNjhlODVkOGMyNWI2OTNlYzNmMjYyMTY4YTg0YjFiZDAyZWI2YjNmNGY2ODRjNjYiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQ3MDE0OWUwNjlhZDY3ZWNjZjQ3MzY0NmZmMWM3NTAwNTBkMzI5ZDExMDAxOGRjNTc2Njg3OGVhZmExZDYwN2QiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjcwN2RlYjgwY2I0N2I0ZTQwNDg1ZTdmMTQ2YTMyODdlYjNkZjFhNTkwZjUzMjNjOTE3MmNkODE2YzJjNzhhNTEifQ"
+ }
+ ]
+ },
+ {
+ "id": "claim_180cd876db8343e1b0241f9fc4a520c7",
+ "statement": "BaseLanguageModel provides get_token_ids(text) and get_num_tokens(text) for token counting. Default implementation uses GPT-2 tokenizer fallback (requires 'transformers' package) and warns once that counts may be inaccurate. Partner implementations override to use native model tokenizers for accuracy. Models can set custom_get_token_ids field for custom tokenization.",
+ "evidence": [
+ {
+ "resource": "repo://libs/core/langchain_core/language_models/base.py#L434-L463",
+ "version": "repo-lines-v1:sha256:46e43299e1393836ea1bf720f9fc722d98aed35fe74e840c5b9354e5d487e5e4:eyJzZWxlY3RlZExpbmVDb3VudCI6MzAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjZmMDE5NDgyZTc1N2EyZjZmYTVlODdlNWUwZTBkYmR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b3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6Ijg4NmMwNzAwZjRlYmRkMjI4NDcwYzMxNWRkMzY2ZDM5MTBkMWExYjk5Njg3YzkzYWJmYTE2ODRjOGVmNDE4MGEifQ"
+ }
+ ]
}
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/ci-workflows.json b/openwiki/.claims/ci-workflows.json
index d7bce26988..cc136c7982 100644
--- a/openwiki/.claims/ci-workflows.json
+++ b/openwiki/.claims/ci-workflows.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:99120eb4274fdb568b343816c5a26e10c7e18e8f7307515fd2c70607b21f5f12",
+ "pageVersion": "sha256:584d7590d927cbab7fd482a36eefe6d6e23c985471086ac9d270b7e2506ebb96",
"claims": [
{
"id": "claim_cb5fe3f72803497eac3f09ebf02d97cd",
@@ -144,7 +144,7 @@
"evidence": [
{
"resource": "repo://.github/workflows/openwiki-update.yml#L1-L77",
- "version": "repo-lines-v1:sha256:757a0464c4bfa6e90bebe84d82e084b32564b2dee926089427ab634568fd0b0f:eyJzZWxlY3RlZExpbmVDb3VudCI6NzcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjA2MDI3ODdhZjZkY2MwODM0ZGUxMjFjYmIxY2I5NWY5NDU5YjcyMWVhYjAzNDlmMTA1MDFiOTk2YzFjNzdmZmYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjM2NzE4ZjA2N2I1ZTVjMWYwOTkxYTZlNzQ3MjZmZTJhMjNkMjY0MzQ1ZTA4ZTRlYWQwNGZhZjczYzI3ZWQ0NDMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjowLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUifQ"
+ "version": "repo-lines-v1:sha256:4ddbb53a299d51b51be2a3f8e2758d1897bf3e01ecc58b79c01d3465e3637023:eyJzZWxlY3RlZExpbmVDb3VudCI6NzYsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjA2MDI3ODdhZjZkY2MwODM0ZGUxMjFjYmIxY2I5NWY5NDU5YjcyMWVhYjAzNDlmMTA1MDFiOTk2YzFjNzdmZmYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjM2NzE4ZjA2N2I1ZTVjMWYwOTkxYTZlNzQ3MjZmZTJhMjNkMjY0MzQ1ZTA4ZTRlYWQwNGZhZjczYzI3ZWQ0NDMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjowLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUifQ"
}
]
},
@@ -247,6 +247,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/composability.json b/openwiki/.claims/composability.json
index 1c7d107e01..000a0fee76 100644
--- a/openwiki/.claims/composability.json
+++ b/openwiki/.claims/composability.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:b1feac445c4494398af24cf9d3767e68ffd5c1d3882b408e3e3c515d1a5f906e",
+ "pageVersion": "sha256:08b16574d155fea41f84c89a32fa0f8c6c34fcf5a6f640ab81d2d0dd5f796884",
"claims": [
{
"id": "claim_51e65b4f126f42d986b2766ee964d991",
@@ -193,12 +193,12 @@
"statement": "RunnableWithFallbacks wraps a runnable and fallbacks, trying the primary runnable first and sequentially attempting each fallback in order if an exception matching exceptions_to_handle occurs; it supports exception_key to pass the exception to fallbacks via the input dict.",
"evidence": [
{
- "resource": "repo://libs/core/langchain_core/runnables/fallbacks.py#L164-L200",
- "version": "repo-lines-v1:sha256:611b9639bec84a186374e367c3baee2de35ee00c89219030dbd95db4606b233b:eyJzZWxlY3RlZExpbmVDb3VudCI6MzcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ0ZGE5MzUwMDE5ZGMxZTY2NzQ1MjY0Mzg3MzE2MTk5NzIyNWU5Y2U2MDEwN2FmN2I2NGY4NDBkZGVjZmRhNGYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjY3NTA0NDQwYWI1OTRhZWY0OTAzYzdlZWZiZTUwOWZhYjJmOGI0ZjY3MWE2OTlmNWJmZmU3ZmVjZDZiMTQ0Y2MiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImNiODAzNzNmZDEyMWZkMzY0MDc4YjdkY2M4ZjRmZThlNWMzYWZjZTI2NTQ5ZTExODUzZmU3NDk2MjE0NWIwNDciLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjE2NWNiNmI1OWViYjcxYjE5NWRkZjBiNDU2NDdhNDhjYmI5MjRhOWFlMWRlMTIzZDU5NzgyMzVhOTc4NTI5YTYifQ"
+ "resource": "repo://libs/core/langchain_core/runnables/fallbacks.py#L164-L212",
+ "version": "repo-lines-v1:sha256:245aae631fd62cf5e3cd37d608514d8ad809bf3054f8da12fb08c429908e25f6:eyJzZWxlY3RlZExpbmVDb3VudCI6NDksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ0ZGE5MzUwMDE5ZGMxZTY2NzQ1MjY0Mzg3MzE2MTk5NzIyNWU5Y2U2MDEwN2FmN2I2NGY4NDBkZGVjZmRhNGYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjFlYjkyNWVhYjkwYzkwNjk5M2EwMzljNGQ2OGY4OGIzZTlhZDI2OGJmMDc1ODA2MDhhN2RiN2MxNTFjN2JiNWQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImNiODAzNzNmZDEyMWZkMzY0MDc4YjdkY2M4ZjRmZThlNWMzYWZjZTI2NTQ5ZTExODUzZmU3NDk2MjE0NWIwNDciLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjU3ZGNlNTdlMDdiMTM0MmRhY2YxNmNiZjNjMTllMzUxMzFmNWM0YTg3MGU2M2EyMGY3MGI2Y2ZkYjVkMjFhYzQifQ"
},
{
"resource": "repo://libs/core/langchain_core/runnables/fallbacks.py#L37-L105",
- "version": "repo-lines-v1:sha256:9a355b343c4f10e10c0c09d470c2a5af5537c95c3099117cc8463831a0c11916:eyJzZWxlY3RlZExpbmVDb3VudCI6NjksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImZjZTk5NmEzNTY1YmNjYTgwNzA3NjA0NjMxZTY5NzhlNjM5ZmQxOTJiMTg3NGYxOWI1YmNjNDFhZmY1NDAwYmUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImE2YTcxNTI1NzJlZTg0ZjEwOTA2Yzc0YjlmMmE5MjQz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-215,6 +215,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/dev-commands.json b/openwiki/.claims/dev-commands.json
index 8d4743aa13..2f9646b409 100644
--- a/openwiki/.claims/dev-commands.json
+++ b/openwiki/.claims/dev-commands.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:e0c1e432eb3a9f97814ec19fdf745a5ea2d49c993a0cd79a67a32490ea2dd9e7",
+ "pageVersion": "sha256:0ec51ab0fa47477f5eb49c0577be6cd4558b283f0a678cd572dc0f65f65db57a",
"claims": [
{
"id": "claim_42b2b3c1ac6e4a938efa7b2651c79b81",
@@ -8,7 +8,7 @@
"evidence": [
{
"resource": "repo://AGENTS.md#L43-L63",
- "version": "repo-lines-v1:sha256:18c23a068133429888d5554c52abc7fad7af4e7cfc99ede025695ab2769177cd:eyJzZWxlY3RlZExpbmVDb3VudCI6MjEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjBlOGYyN2U5YmQ4NzAwYmMxMzlhNWEwOGFjMWRlZTY1MTZjYTE4NDBhMjA1YTZmN2U3MzJhZmVhNzE1ZTk2MTEiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ3YzA2YzU2MWQ1YzMyNzM0MzY4NTI2OGE0NmIzMzkxZjM5OThlZWU4OTBkMmJlNTFmMGQyMWNjNGE1M2FlNmQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjE0ZTBkNjliZDQ4MjFmNTY2NDVmMjAyZTMxMDA5OWI4NmM0ZTVlYjkyOWMzOTQzNDE1M2U1Yjc2Y2M5NjY5MzMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImQ4YWEwOTVmYTY5YmU0NmRmODUyZGRhMjE2NDcxMzFmMmIwMmMyYjIyZTIzOWY4YzdmZGUwZjJkZWJmZmM3OTcifQ"
+ "version": "repo-lines-v1:sha256:912a7926f51b6dd38086d7df73b5eba52922d82f80157b7d41505202a55174fb:eyJzZWxlY3RlZExpbmVDb3VudCI6MjEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjBlOGYyN2U5YmQ4NzAwYmMxMzlhNWEwOGFjMWRlZTY1MTZjYTE4NDBhMjA1YTZmN2U3MzJhZmVhNzE1ZTk2MTEiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ3YzA2YzU2MWQ1YzMyNzM0MzY4NTI2OGE0NmIzMzkxZjM5OThlZWU4OTBkMmJlNTFmMGQyMWNjNGE1M2FlNmQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjE0ZTBkNjliZDQ4MjFmNTY2NDVmMjAyZTMxMDA5OWI4NmM0ZTVlYjkyOWMzOTQzNDE1M2U1Yjc2Y2M5NjY5MzMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImQ4YWEwOTVmYTY5YmU0NmRmODUyZGRhMjE2NDcxMzFmMmIwMmMyYjIyZTIzOWY4YzdmZGUwZjJkZWJmZmM3OTcifQ"
},
{
"resource": "repo://libs/Makefile#L6-L20",
@@ -30,7 +30,7 @@
},
{
"resource": "repo://libs/langchain_v1/Makefile#L40-L129",
- "version": "repo-lines-v1:sha256:f643d0b9181f14cfc810d519edb0af3493517a564f6dea277402be3b3de7f619:eyJzZWxlY3RlZExpbmVDb3VudCI6OTAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImQwMDdiNTExODg0NTFkYjM3OTNhZTI0ZWExNzk0ODU4MzY3MmVjNTUxNDJhZmFiOTVmMzE0MTNkZjExZDViOWYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6Ij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5OTFiNzg1MmI4NTUifQ"
},
{
"resource": "repo://libs/partners/anthropic/Makefile#L16-L81",
@@ -156,7 +156,7 @@
"evidence": [
{
"resource": "repo://AGENTS.md#L43-L63",
- "version": "repo-lines-v1:sha256:18c23a068133429888d5554c52abc7fad7af4e7cfc99ede025695ab2769177cd:eyJzZWxlY3RlZExpbmVDb3VudCI6MjEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjBlOGYyN2U5YmQ4NzAwYmMxMzlhNWEwOGFjMWRlZTY1MTZjYTE4NDBhMjA1YTZmN2U3MzJhZmVhNzE1ZTk2MTEiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ3YzA2YzU2MWQ1YzMyNzM0MzY4NTI2OGE0NmIzMzkxZjM5OThlZWU4OTBkMmJlNTFmMGQyMWNjNGE1M2FlNmQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjE0ZTBkNjliZDQ4MjFmNTY2NDVmMjAyZTMxMDA5OWI4NmM0ZTVlYjkyOWMzOTQzNDE1M2U1Yjc2Y2M5NjY5MzMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImQ4YWEwOTVmYTY5YmU0NmRmODUyZGRhMjE2NDcxMzFmMmIwMmMyYjIyZTIzOWY4YzdmZGUwZjJkZWJmZmM3OTcifQ"
+ "version": "repo-lines-v1:sha256:912a7926f51b6dd38086d7df73b5eba52922d82f80157b7d41505202a55174fb:eyJzZWxlY3RlZExpbmVDb3VudCI6MjEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjBlOGYyN2U5YmQ4NzAwYmMxMzlhNWEwOGFjMWRlZTY1MTZjYTE4NDBhMjA1YTZmN2U3MzJhZmVhNzE1ZTk2MTEiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ3YzA2YzU2MWQ1YzMyNzM0MzY4NTI2OGE0NmIzMzkxZjM5OThlZWU4OTBkMmJlNTFmMGQyMWNjNGE1M2FlNmQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjE0ZTBkNjliZDQ4MjFmNTY2NDVmMjAyZTMxMDA5OWI4NmM0ZTVlYjkyOWMzOTQzNDE1M2U1Yjc2Y2M5NjY5MzMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImQ4YWEwOTVmYTY5YmU0NmRmODUyZGRhMjE2NDcxMzFmMmIwMmMyYjIyZTIzOWY4YzdmZGUwZjJkZWJmZmM3OTcifQ"
},
{
"resource": "repo://libs/langchain_v1/Makefile#L1-L72",
@@ -177,6 +177,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/integration-tests.json b/openwiki/.claims/integration-tests.json
index 2782748a51..d84c2f7114 100644
--- a/openwiki/.claims/integration-tests.json
+++ b/openwiki/.claims/integration-tests.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:0ead306fee0715430d8afdedcbb61944f51e57df48168d9394fc2c03d21f7c45",
+ "pageVersion": "sha256:7a27a082b6fe0666d7a3e17b00aac82017d7095d7cc66a084355eb8c5f47b347",
"claims": [
{
"id": "claim_2b394255185b4645a1dcf0e8c628a197",
@@ -175,10 +175,28 @@
"version": "repo-lines-v1:sha256:0144da3602191e08b1c7c3a3d0ea02abb6d35b5ffbf3a7e28f89554b904f1087:eyJzZWxlY3RlZExpbmVDb3VudCI6MTQsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjYxNzhlNTQ1YjAyMTRlNDM2NDIxYTRiMzBiZDQ0NThjNDgxZGY5OTY5NWRkNjRmZjhkNmM1MDkxMTZjMmE5NTIiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ4OTNmNDBlMzc4MWViODk2YzgyZDA0NmEwODA2N2ExMWUzNWNkZjJmMWRmYWYyNmZlYTkwYjhkYjY2NzY0MTMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQzZDE3MWRlNzU0MzFhMDIxYTBkOTRmYTc2ZmFiZjBkNzEzOWM4OThjMWEwYjQ0YjQzY2E2MDkwM2ZhMWI4NDUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjcyMzc1ZjdjZDVkMWMzYWI1YzFlMjE1N2ViNjFhNjRhMDRlOTZiZDA1YTg1NThkYmY0MWRmZWUxMTE4YjcxMDcifQ"
}
]
+ },
+ {
+ "id": "claim_1abeec5957414ea0bb639040aece4be2",
+ "statement": "LangChain partner packages inherit a standard suite of integration tests via ChatModelIntegrationTests from langchain_tests.integration_tests. Partner test classes override properties (chat_model_class, chat_model_params, supports_* and has_* feature declarations) and may override test methods for provider-specific behavior (audio inputs, reasoning models). Each inherited test method is pre-marked with @pytest.mark.vcr; cassettes are generated automatically and named with test method names, optionally parameterized (test_invoke[model0].yaml.gz). This ensures all partners maintain consistent test coverage and automatically receive new tests when the standard suite is updated.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/tests/integration_tests/chat_models/test_base.py#L38-L57",
+ "version": "repo-lines-v1:sha256:29f7c743ee032f1656d47849d5183e163a725efde87458b21d6b1855bc2d0d11:eyJzZWxlY3RlZExpbmVDb3VudCI6MjAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjA4MTdkNTQyMDczZDBmODlmOTUxM2MyZjU4M2NhM2ZkNDBiYTEyMTk4NzY0YjY3MDA5ZThjYWJiZDQ5YjRjYjkiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImQxMDQyNGJkZTNhZDkxZmY4ZGFlYTgxYTRhYTUwNGIyZmU5ZDM3OTIzZjU5Mzc5MTUyZDU0M2Q3YjRkZWFmNzEiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImRkOWIzMWUwM2E4NzUxNmI2YWExZGIzMWMwYTE5YjM1ZmJlNzg3MjkxMDdmOTdmYjM3NmM4NDczNmRkNzY0YWMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjowLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUifQ"
+ },
+ {
+ "resource": "repo://libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py#L1-L57",
+ "version": "repo-lines-v1:sha256:541fc66a3551dcd38bb83d420afd7d05a0b2f8d8493553bdf35b3f68e800de17:eyJzZWxlY3RlZExpbmVDb3VudCI6NTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImYwODY1MzAzZmE5Njc5ZDM3NWE2YTUxMzY2MjdmYTUwZTVlZjc4Yzg0MTIyYmU2ODNjYzNjNjY5MThmNWM0YTYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlOTY0ZTA5YzA1OGVmOGY5ODA1ZGFjYTU0NmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImY1Y2FmOTM5ZTA1MTZlZGNhYjUxNTYxMGFjYmE3ZTVkNDg0M2M2YTU0YjUwODc3M2Y0MTcwODQ0NzM2YWNlYmMifQ"
+ },
+ {
+ "resource": "repo://libs/standard-tests/langchain_tests/conftest.py#L130-L155",
+ "version": "repo-lines-v1:sha256:e3d0704dff8fca8d0a61d64b2b6b1bd421654204ab5faef64b64dd5b52df2ddf:eyJzZWxlY3RlZExpbmVDb3VudCI6MjYsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjYxNzhlNTQ1YjAyMTRlNDM2NDIxYTRiMzBiZDQ0NThjNDgxZGY5OTY5NWRkNjRmZjhkNmM1MDkxMTZjMmE5NTIiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxY2I2ZmI5YmVjNzJmZjA3ZTY4MDU0N2M3NTAyMzZkYWZmNDMzOWVhZTY5ODBkM2IwOTQwMmRkYmE4YzcwOTMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQzZDE3MWRlNzU0MzFhMDIxYTBkOTRmYTc2ZmFiZjBkNzEzOWM4OThjMWEwYjQ0YjQzY2E2MDkwM2ZhMWI4NDUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjowLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUifQ"
+ }
+ ]
}
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/mcp-integration.json b/openwiki/.claims/mcp-integration.json
index d2b5424c3b..08fb925303 100644
--- a/openwiki/.claims/mcp-integration.json
+++ b/openwiki/.claims/mcp-integration.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:87c4080ea30d8947623f0ded2435da98571f131a134392f5faece5d6fbfcd460",
+ "pageVersion": "sha256:aa9e35da19127c337d9ca84bffab4b5b80d9cc78063469ee9a65827d4867d36c",
"claims": [
{
"id": "claim_a20f2f32ba21436d869cf463fc4e93f6",
@@ -251,6 +251,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/messages.json b/openwiki/.claims/messages.json
index 33ea4e36ed..9143708136 100644
--- a/openwiki/.claims/messages.json
+++ b/openwiki/.claims/messages.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:0a36ceb2f165da2e8002795df9b6130b952184dc8b95bb5a8f79c888e4c3ab73",
+ "pageVersion": "sha256:9a300b45af58ddf5b9c8a669d194b5ea592a85e27837e6b2066229dd7d924556",
"claims": [
{
"id": "claim_cd426b48afb54e54a30a82b280ab266d",
@@ -143,12 +143,24 @@
"statement": "The utils module provides get_buffer_string (for converting messages to strings in prefix or XML format), filter_messages, trim_messages, and merge_message_runs for message manipulation. It also defines the AnyMessage discriminated union type for Pydantic deserialization using the type field.",
"evidence": [
{
- "resource": "repo://libs/core/langchain_core/messages/utils.py#L287-L410",
- "version": "repo-lines-v1:sha256:318f3fd27bc9861f4c8972c4216c4e73c2b39eb78be1b3d529364beb60a5c985:eyJzZWxlY3RlZExpbmVDb3VudCI6MTI0LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiI2MTI4NmQ1ODU1ZjE2OWM4MGU3NWMwYzg0Yjk0MmViOTg3YzkwMTgyYzZmMWI5Nzg3NTViMzQ0YzQzMzJhOGQzIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJiNzU1YzY0OGYzNzdiNTRmODg5NWMxZTBjMDc2NzhiNGEwNWZjNTQ2YWUxNWZiMjY5YWU1NmRkYjc0MjllOWY3IiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiIzNGM0OWEwNzMzOTE4NTk0YjFjMTIxZTBlOWZlNmQ5OTE2ODY1ZGQ5NTIwMjg2MDkxNmQ1MmMwZGYyZDEwMWY1IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJmNzg3MDE1MDBiYWE3Njk5MmUwZWZjNTdkNzE5ZGMzMWVjMzNkYmE4OGE3NjA3MjhmOGUxMjQxYjA3ZDZkYzUzIn0"
+ "resource": "repo://libs/core/langchain_core/messages/utils.py#L1015-L1100",
+ "version": "repo-lines-v1:sha256:8e141a690ed234602daa3c97e28e354eee3d2b0c7ab045eb32c7e357379285dc:eyJzZWxlY3RlZExpbmVDb3VudCI6ODYsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjBkZTg0ZGRkMjMyODgxMWU1NDE0ODJlOGM2ODQ0MmVlOTE4YmEzZDJlOTNhZTc0NjRlMmE5MWZhZDg1YmNlMWMiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjYxZTgyOTliNDA1ZDljYzg4NTcxNDkzZmMzYWU5MjQ0YjJiMTY3OTM0MGVlYWEzNWM4MjFkMjIwNDI2YTI4ZjAiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjRkOTMxZjVmMjcyNjdjNjY2OTcyZjM2OWM4NmExMDc2NDRiNzdkNjZlMTEwYTNkYmVmZTA3ZWNmNzYwMDg5NTYiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImQ1ODViZGY2OWJjMzU1NjkwMWYyNWFmZTEyOGVlNjRkMzJlYjViYTFjMThlZjc3Y2JmMDk0MmNmMWQzYTMyNDkifQ"
+ },
+ {
+ "resource": "repo://libs/core/langchain_core/messages/utils.py#L1146-L1250",
+ "version": "repo-lines-v1:sha256:367535cda0cccbc46bdb9a1276272ec6719758e9217840d76a3fbb104a061071:eyJzZWxlY3RlZExpbmVDb3VudCI6MTA1LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJjNDE2NzZhYjNlY2ZkMmFiMzlmMTFhZmU4Njc4OTllMjIwNjFiMTA4YzVlNmU0NGVjOGZlZmE0YjE5YjZiNWMyIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMWJhNDcxOWM4MGI2ZmU5MTFiMDkxYTdjMDUxMjRiNjRlZWVjZTk2NGUwOWMwNThlZjhmOTgwNWRhY2E1NDZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiI5MGY1OGIyYWU4OWY2MmQyMzJkZmZiMzVmOTgyMDY0YzU4ZjQ2NTVmZTNkZGQ3ZTBkZGQ5Y2Y0ZWNiNWI4ZWVjIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiIyOWQ3MmIxMjc4YjVmMjQyNDYyMGIwYTIyZDI3ZmIzMzFiN2VkYmUyOTFhMDgzYTliOWJiNDQzZDczYjI3ZjljIn0"
+ },
+ {
+ "resource": "repo://libs/core/langchain_core/messages/utils.py#L297-L525",
+ "version": "repo-lines-v1:sha256:cc0607479e11404056fe01d91570b2ca79d89dfc69068e035745916af2e700ab:eyJzZWxlY3RlZExpbmVDb3VudCI6MjI5LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiI2MTI4NmQ1ODU1ZjE2OWM4MGU3NWMwYzg0Yjk0MmViOTg3YzkwMTgyYzZmMWI5Nzg3NTViMzQ0YzQzMzJhOGQzIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJhOWNjOWRmNjI4MTVmMTQ2N2NiODFhNDBjYzhiMWMyMTA5YjdlM2IxZmZhMjYzNTY1OGU3NGI1MjExNzE5YmEyIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiJjZWFkNDc2MThhMzBmNzNhMmU0ZmVhMzg3ZTY1MmMwZmJiNTIzZGU4MzQwMzE2M2FhMWYyNjZiYzg4YzdkYjBmIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiIzYjdiZTk2ZGQ0ZDQzNDMwMGZmNmRhZTU3MTQxNzE2YTQwZjE0Mzk0N2M3OWE4NTdkOGUxOWI0NWQ2YzNlZDc0In0"
},
{
"resource": "repo://libs/core/langchain_core/messages/utils.py#L86-L100",
"version": "repo-lines-v1:sha256:07088aa99c3ae99a9477f43178e329f43357fd6b0e43edcbce9991102a94a595:eyJzZWxlY3RlZExpbmVDb3VudCI6MTUsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjBkY2NmOTIxMmMwZjFkMDFlNmY1MjM5Y2ZhOGMzMmQ2MTQwYTk2OTg1YzhiY2I2ZjA1NzY0NTQ0Zjg1Mzg0ZDgiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImY5NDE2ZTA5Zjc4YmEzMTZjMDMyNTY4MjEzYjg1NWVlNzU2ZTQxNTY1ZDkxOGYwOTUxOWM4MWZkNjIwZjQwNjAiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQ3MjIzMTA2ZmQ4NzQyYjcwZWEyMzNmOWRjMzU5ZjRiMDJiYmIwNjliNzI4M2VlZjc2MjQ5OTUxNmJkN2I5YzgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImUxOGViNDQ5NDI3NmM3ZmUxOWYwMzZkN2I1ZWE0MzRhOWI1ZjQ4NTgyNjEyZjZmZTI0NDA5MjAxMjZlZGYyZTQifQ"
+ },
+ {
+ "resource": "repo://libs/core/langchain_core/messages/utils.py#L870-L950",
+ "version": "repo-lines-v1:sha256:c73abab7fecfb9dcf9392d562de48381dd2d418c61ddb08996dc7dff5035b593:eyJzZWxlY3RlZExpbmVDb3VudCI6ODEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjJkZmIwMDk5MmRhMTIwNDhlYzBiMmFmZmFkNzFiOWY5Zjc0ZmYxMDRjZWM1Y2M0MGQ0NDU5NTNjNjk0ZjIwMTMiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjBiMmUzZjRiMmNkYTJkNjhhZDdmZDFhZGQ5YzU2MzQwNGJmOTM1YzNkODAyMmY3YmZlYTAwMmJkNDhhZGY1MGEiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjRkOTMxZjVmMjcyNjdjNjY2OTcyZjM2OWM4NmExMDc2NDRiNzdkNjZlMTEwYTNkYmVmZTA3ZWNmNzYwMDg5NTYiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImY1NGYzNmE5ZWMxNTQ2NGE5NzcyZmFkNDM2YzMxMzU4ZjUxYjU0MTFkMWEzYWE2Y2Q0NzlmNTc3MDMyZDk3ZDcifQ"
}
]
},
@@ -207,6 +219,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/middleware.json b/openwiki/.claims/middleware.json
index ff3f01e4ec..56ff62d7b2 100644
--- a/openwiki/.claims/middleware.json
+++ b/openwiki/.claims/middleware.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:59f149479aecc8ce5f7e0d000a58fe4d061773c476c8a2f2a0264d6fd5ddf814",
+ "pageVersion": "sha256:292ef3af03c17963611499165f6045b27db7700b522fb3d608fb027272c23f40",
"claims": [
{
"id": "claim_6ce968382a514edb90e74830ccdebef7",
@@ -80,11 +80,11 @@
},
{
"id": "claim_146d4170ba854d6d8f27e3cc012721a2",
- "statement": "ExtendedModelResponse allows middleware to return a Command alongside the model response; commands from multiple middleware are accumulated (inner-to-outer order) and applied sequentially to state after the model node completes; messages in commands are added through reducers, non-reducer fields follow outermost-wins semantics.",
+ "statement": "ExtendedModelResponse allows middleware to return a Command alongside the model response; commands from multiple middleware are accumulated (inner-to-outer order) and applied sequentially to state after the model node completes through LangGraph reducers; messages in commands are added through add_messages reducer, non-reducer fields follow outermost-wins semantics where later (outer) middleware values override earlier (inner) ones.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L284-L300",
- "version": "repo-lines-v1:sha256:9b8b5efb54adc30f9af684ab9d439f7759c4ec88d4f6c69086dcc164df2bef3c:eyJzZWxlY3RlZExpbmVDb3VudCI6MTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImUwZjc4MzAxZThmZjUwYmJiOGNmMjNmZWFlNDhlYWYyYTBjZmUwMDYwYjhkNjMzNjcxYTg4OWViN2VjYjk0NjQiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjIzN2ZjZjdjZjQ0YWUzYzQwMzU3YTA3ODMwZjRiYTBjNDcyYjY4ZGYyY2VmNmQzMDczZTVhNTdjMTMwMTQwZjMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjM0M2E5ZmZkMDUyNTI1MTJhZTA2MDNjMDIwZmZhOTIxYmY1ODFiN2M2MDYwOGJjMjcyZWUyYTk2ZWNhN2FiZDQiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImY0NjdkYTdmMTg2NjUxNDY3NGIzZTQ2Yjk4NTNmMmQ0ODBmYzEyYjQ3MjhhZGI2ODQ3MjU5NTJhYjcwNjA1MDEifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L222-L278",
+ "version": "repo-lines-v1:sha256:6bb49e7a7e6403834213953a9111549f15c00024566792a43dc06e6452e013b7:eyJzZWxlY3RlZExpbmVDb3VudCI6NTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjM3YzgzN2QxZjhjOGZmMTQ2ZGFkODY5ZTlhZDhkMGNjYzY2YTA0Y2JhNjVkNzBhYTM5ZDUxMDAwNTQzMzFiNGYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImYyNmQ2OGQ5YjUyMjFlYjU5NGVmOGJjN2JmZTNhYzVhNjM2ZjA2MjlmNmU1ZGNmNmE5NWEyMGZmMThhZDdmMzAiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImQ3MjIzMTA2ZmQ4NzQyYjcwZWEyMzNmOWRjMzU5ZjRiMDJiYmIwNjliNzI4M2VlZjc2MjQ5OTUxNmJkN2I5YzgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjRiN2UyMTk1NWE5MGNjNjVhNmY1YmQxNTE2ODEyYThmYTQzYmNmZDhiZWJiMzMwNDJiMzg4NDZjMmUzNzYwNzQifQ"
},
{
"resource": "repo://libs/langchain_v1/langchain/agents/middleware/types.py#L290-L312",
@@ -199,6 +199,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/model-initialization.json b/openwiki/.claims/model-initialization.json
index 3bd8b40c1d..6f768d2036 100644
--- a/openwiki/.claims/model-initialization.json
+++ b/openwiki/.claims/model-initialization.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:a2984365361bea3650236ef43c48d193ac444b15257fef3ea6110d04c3580210",
+ "pageVersion": "sha256:bd811dcc6b70cbe1b135d1ae06d5196272d0742d1df5c7491d4adfa89cf21a9a",
"claims": [
{
"id": "claim_189e539212e149fdb6d26bfac3426a8c",
@@ -46,11 +46,11 @@
},
{
"id": "claim_b11a1705a5cd44ea88dd0a9a4565a98d",
- "statement": "_BUILTIN_PROVIDERS is a dictionary mapping provider keys to tuples of (module_path, class_name, creator_func) for 32 built-in providers including openai, anthropic, bedrock, google_vertexai, azure_openai, cohere, groq, mistralai, ollama, and others. The registry includes fallback logic for ollama (tries langchain_community) and special creators for huggingface (from_model_id), ibm (model_id), and langsmith (gateway config).",
+ "statement": "_BUILTIN_PROVIDERS is a dictionary mapping provider keys to tuples of (module_path, class_name, creator_func) for 30 built-in providers including openai, anthropic, bedrock, google_vertexai, azure_openai, cohere, groq, mistralai, ollama, and others. The registry includes fallback logic for ollama (tries langchain_community) and special creators for huggingface (from_model_id), ibm (model_id), and langsmith (gateway config).",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L56-L120",
- "version": "repo-lines-v1:sha256:a714caf3bde31adb33a627fe7c985aa333571e5693027c2ef4131d0168cfc131:eyJzZWxlY3RlZExpbmVDb3VudCI6NjUsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ0OWFmODNkYjQ4ODc5YTQyYjVjNTliMmEyYmY3NThiYWY4YjFkMmQwNTJmOGRmN2VlNWNkOTIyMjJkYTM4NzUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImEzMDNlY2RkNGE0ZDEwZjE5YzczZmQ0MmZkMTI0MzdmZDMzNTRhODI2ODE2MDVkYTUyNTVhOTdhMzkwNjhkYmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjJkNzA5NGEwOTBkZDkxYjgwMmJjZWIxYWNkYzMwYWMyNTc5MjU4YTFjNjkxNTk4YWVmNjYyMDAyMWQ1NWMzMDQiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjgxOTY2MDgyOTFhZjY5NzQ1YzViMmVhZDliM2ZhYjRkMjVkZjQ2MjZkNDNhMzQyYTA3ZjkyMGRiYzhiMmJiYWMifQ"
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L56-L99",
+ "version": "repo-lines-v1:sha256:a0432456fbcc294961073b737c0871eb2e1444b6649f4f39c8fd5af7d29f8834:eyJzZWxlY3RlZExpbmVDb3VudCI6NDQsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ0OWFmODNkYjQ4ODc5YTQyYjVjNTliMmEyYmY3NThiYWY4YjFkMmQwNTJmOGRmN2VlNWNkOTIyMjJkYTM4NzUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQxMmNhMzQ1Y2NmNzViZjljMDgwNmJjZTY5NWJlOGRlODA4Yjc5OTg0MjUxYTdhNTRkMjAyY2Y2MTAxZGQ0NTEiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjJkNzA5NGEwOTBkZDkxYjgwMmJjZWIxYWNkYzMwYWMyNTc5MjU4YTFjNjkxNTk4YWVmNjYyMDAyMWQ1NWMzMDQiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjJhYzk3OTRjOTIxODcwZGVjNjU0YWU5YjU2ZDBiMDk3YWU0NDlhODU4NzE5Y2Q3MjhkZDI5N2ZhNjMyN2VhOTYifQ"
}
]
},
@@ -63,8 +63,12 @@
"version": "repo-lines-v1:sha256:6e5b778f54e6269116c7c108fc0539dcb3d7f95e0e3529de1c59b46699e93250:eyJzZWxlY3RlZExpbmVDb3VudCI6MTIsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImVhMTQ0MTg3N2RmNDEzMmJlOTc1MjBlMDUwMWI2YjAzNTFkMjVkMDNiNmZhZjNmYWQ2NDk0MT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IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjJhYzk3OTRjOTIxODcwZGVjNjU0YWU5YjU2ZDBiMDk3YWU0NDlhODU4NzE5Y2Q3MjhkZDI5N2ZhNjMyN2VhOTYifQ"
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L51-L53",
+ "version": "repo-lines-v1:sha256:7c5514a90a7cb726e689925fc593573aaaac4e7030aa8a674cd28b1c55ee6c61:eyJzZWxlY3RlZExpbmVDb3VudCI6MywiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiZmNkYTJmNDE0NWU1YjdhNmMyM2JmY2VhMTg4NzZjZDNjMDU5ZTI0ZjE3MjY3NWMzMzBhMzNjMTJjYmM4NWM3OCIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiNWMwYTAyNDk0Zjc1NWIxNDhhZGViYzI1YjkzNTdkMDkyMDM1MzdhZjc5NzFkMTQ5MGJlYzc4MWYyMWI0NjViYiIsInByZWNlZGluZ0NvbnRleHRMaW5lQ291bnQiOjMsInByZWNlZGluZ0NvbnRleHRIYXNoIjoiMDU3ZDNkYzRjOTU1NThlNWMxNmU4OTE0ZDMxMmJhZWRhMzE1ZmNmMmUwMTQzMzQwMGQzNTQ3YjgwMTY2OWMzZiIsImZvbGxvd2luZ0NvbnRleHRMaW5lQ291bnQiOjMsImZvbGxvd2luZ0NvbnRleHRIYXNoIjoiM2VkOGZiZDgzMTA5OTI4NGNjNWRhNWIyMjE5NTRjYjhmMjA1OTQ4ZjFkZjIxNTFjZGEyOGEzNjE3ZTlkYTA1YSJ9"
+ },
+ {
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L77-L87",
+ "version": "repo-lines-v1:sha256:e486292ad2b9caccfa014e5f18701eeef37b59be5d93c71d3489debba71af337:eyJzZWxlY3RlZExpbmVDb3VudCI6MTEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjZjYjNkYmFhNGZmOTA4OTczNDRlYzk5ZjAyZjE1Yjk1YWE0OTg2Nzc1N2I4YjRlZGM5ODAzNWE0NDUzN2RjZDUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjczODhkMjg0NWFhMmE2MzhjNjU1ZGQxZjQ1MmYzNTQ4NDUzOTEwNzI2ZjZjNDZlMjg1YmVhNjhjYzM0NGY3ZjEiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImI3N2RlYTg5YTEyNTEzOGFiOGMwYzZmMWU0Y2JlYTVhYTMzMThhN2Q0ZGQxN2Q0MGU5N2UyNzRjNmEwMjk0Y2MiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjMwMDBhZTg2ZmM4YmQ3NzMwYzk3YjQ4ZGY5Y2NiZTg3ODg4MmQxYTQ2NGYzYjIxNWE0MjA1ZjdhNDk3ODY4YTEifQ"
}
]
},
@@ -177,6 +181,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/openai-provider.json b/openwiki/.claims/openai-provider.json
index 79166cce87..86811e208a 100644
--- a/openwiki/.claims/openai-provider.json
+++ b/openwiki/.claims/openai-provider.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:cd334ced3b220f64f277df1025ee057b9e5df7621a6a1e720fb642adc48c8e88",
+ "pageVersion": "sha256:05e90b9de166a5a7213cee462a99c10236b8c8eba605f2b5a856779baad552a6",
"claims": [
{
"id": "claim_347664eb68464142b558791c7a95093f",
@@ -11,8 +11,8 @@
"version": "repo-file-v1:sha256:d08e06dea1f954a477fa8951e2a8387a10396d07b92a3a60fdced307c136a84f"
},
{
- "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L2829-L3750",
- "version": "repo-lines-v1:sha256:d7750e52d840b4379fd892a656237cba6bf7af6d95a997b2485fb55d937139ec:eyJzZWxlY3RlZExpbmVDb3VudCI6OTIyLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJkOTBkYTg3MTNlNzU1ZjU1MmQ1YmIzNWY3YjJmOGUwMGU3YjA0MzY1Yzc2YWI4MmE3NDRmMGU1OTVlMjA2MDYyIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJiOTk3OTkzN2Q3ZGUxOTkyNzZjM2I3YzVkMTJkZWM2ODJhZTBmOTVjNTliZjA2OTlhNGI2OTRhZDg1ZWQxMTVhIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiJiM2RmMmFjZjA2ZThjM2YwM2M3MTM1YzZlOGFjNWE5Y2E1NDMyYWJlMDZhNzRhY2EwZmRkOWE1M2EwMDhmOTg3IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJmZmFjMjQ1YTViMDZkOGVmNGVkYWI3MmY5MjYzOGM3MTA2NGQzMjNlOGYyOTI4ODA1YWZiYTkyMzZlYzE0MWNjIn0"
+ "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L2904-L4266",
+ "version": "repo-lines-v1:sha256:862193457763433b2f6f9542715a9e049a81be74ab7f06720f0a8e903b8d88b8:eyJzZWxlY3RlZExpbmVDb3VudCI6MTM2MywiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiZDkwZGE4NzEzZTc1NWY1NTJkNWJiMzVmN2IyZjhlMDBlN2IwNDM2NWM3NmFiODJhNzQ0ZjBlNTk1ZTIwNjA2MiIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiMDFiYTQ3MTljODBiNmZlOTExYjA5MWE3YzA1MTI0YjY0ZWVlY2U5NjRlMDljMDU4ZWY4Zjk4MDVkYWNhNTQ2YiIsInByZWNlZGluZ0NvbnRleHRMaW5lQ291bnQiOjMsInByZWNlZGluZ0NvbnRleHRIYXNoIjoiYjNkZjJhY2YwNmU4YzNmMDNjNzEzNWM2ZThhYzVhOWNhNTQzMmFiZTA2YTc0YWNhMGZkZDlhNTNhMDA4Zjk4NyIsImZvbGxvd2luZ0NvbnRleHRMaW5lQ291bnQiOjMsImZvbGxvd2luZ0NvbnRleHRIYXNoIjoiMDFiZDhjNmEwMjAwNzc3OTEwNjNiZTUxNTIxZWM4MmI5ZWIwYzIxMWRiZmY1Y2I1ZGNmYTY5ODEyZTVmNzU3MSJ9"
}
]
},
@@ -234,15 +234,15 @@
},
{
"id": "claim_3caff63b9a194d83a4feca3784c64c79",
- "statement": "For multi-modal content, ChatOpenAI formats content blocks per API requirements; Chat Completions API filters certain block types (thinking, tool_use), while Responses API expands support for reasoning, computer use, file search.",
+ "statement": "For multi-modal content, ChatOpenAI formats content blocks per API requirements; Chat Completions API filters certain block types (thinking, tool_use, reasoning_content, and function_call/code_interpreter_call when on Chat Completions API), while Responses API expands support for reasoning, computer use, file search.",
"evidence": [
{
- "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L304-L326",
- "version": "repo-lines-v1:sha256:6cd902fc919094ac7918459a836e31a99d75d17d7ed2346180e909177edbf419:eyJzZWxlY3RlZExpbmVDb3VudCI6MjMsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjUwMzZiYzBjODRjODlmZmMyYmNiZDg3YzA4OTE0YTRmNzJjYTY5YTE0OTYyZTlhMTIxOTExZDIwZmVjY2RhOTYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjRhOGE1ZTU5NzYzOGZiYzZlMGZkMDJlYTZhMTA1OWU4ZGVjNWJiY2FhNzI2ZDJiMzllM2UzMjg2YTcxN2EyYTkiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImFjZjc2NmFmOTQwZjVhNDYwMjMzNDZmY2YzNmEyMWYyOGViYmUyMjUxMWE4MmFhN2MyNzUzYzMyOGU0ZmM1ZGUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImEwNjI4MDJmZTZkNGE3YjQzOWNhNzg5ZDE2MTlhZmMzMjg0ZTI1ZTlhMTQwZGVlNDI3YmM5YjU0ZThlMWI4YjUifQ"
+ "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L381-L469",
+ "version": "repo-lines-v1:sha256:f99dc25c09ce98a63bc71b6e1c28d2927c8cca74aee0f6b8b079f257b443ebd4:eyJzZWxlY3RlZExpbmVDb3VudCI6ODksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImYwNTUwZDY1YWNhYjg5YmE1MWYwMjJlMGQ5MTg3Yjg2ZWI2ZGE1NWY4MGQzMzI4MzJhYWE4ZTYxMjJjZGU4ZTgiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjY2NWM0NDBiMjAxYjQzMGM1Y2VmYjRkNWZlNTRlMjg4YjQ2ZGE5YjE5ZGZlM2YyZjIzMDMzOWRkZTRiZWFhNDciLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjdjZGUxODBiYWZlMDUxZjUyMGMxMGJhZDdmODg1YzIxZjA4MWI5OGU3NjMyYWU0ODEyNWM5OTA4NzNmOTNhMTMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImE1ODE4NGJmZDRhODYxZmNiNDgxNzgyY2VkNTg5OGU3YmFiOTY1Y2Y2NWRkZWJkMTkzYTg3ODViMTgyODgzOWIifQ"
},
{
- "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L329-L350",
- "version": "repo-lines-v1:sha256:8a2daaa3c8c8db699cb10fef0f8f2f525c09602dc0e497d7603c7d6aaaadb468:eyJzZWxlY3RlZExpbmVDb3VudCI6M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NmYzQwYmE5YTFkMWRhNWZhOGIyZTU0ZTU5YWI4YTZjNjFjYzBmYWFjMmE4ZDEyZDVmYTg3MWJhMDAiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6Ijg5NmY1ZWNhZDA4NzFlNzEyNzRjMjliMGIyM2RjZjhhYjI4MWZmYmY0ZGFlYWFjZGRmOWUzYWE5ODg3N2M0YmMifQ"
}
]
},
@@ -259,6 +259,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-22T08:27:06.345Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/partner-pattern.json b/openwiki/.claims/partner-pattern.json
index 3c2af3efc3..a1b2453b6e 100644
--- a/openwiki/.claims/partner-pattern.json
+++ b/openwiki/.claims/partner-pattern.json
@@ -1,18 +1,14 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:0d64f788468e7a30fbec4cc1cb3002a5e5e8af6af663410dcf47647656454d30",
+ "pageVersion": "sha256:b5987885a9e21b5c669db5477471ac853eb2514d5dba1d3d3d716f04037745ff",
"claims": [
{
"id": "claim_7c2a1600fd294471a122d693305b38f8",
"statement": "The _BUILTIN_PROVIDERS dictionary in init_chat_model maps provider names to module paths, class names, and instantiation functions, enabling dynamic import and instantiation of chat model integrations by name. Adding a provider requires registering a tuple of (module_path, class_name, creator_func) for each entry.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L56-L97",
- "version": "repo-lines-v1:sha256:6aabf3356aa6c126fad36c4def6419dad0ea5d211ef70170ae25114005595e3b:eyJzZWxlY3RlZExpbmVDb3VudCI6NDIsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ0OWFmODNkYjQ4ODc5YTQyYjVjNTliMmEyYmY3NThiYWY4YjFkMmQwNTJmOGRmN2VlNWNkOTIyMjJkYTM4NzUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFz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MDgyOTFhZjY5NzQ1YzViMmVhZDliM2ZhYjRkMjVkZjQ2MjZkNDNhMzQyYTA3ZjkyMGRiYzhiMmJiYWMifQ"
+ "resource": "repo://libs/langchain_v1/langchain/chat_models/base.py#L56-L99",
+ "version": "repo-lines-v1:sha256:a0432456fbcc294961073b737c0871eb2e1444b6649f4f39c8fd5af7d29f8834:eyJzZWxlY3RlZExpbmVDb3VudCI6NDQsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ0OWFmODNkYjQ4ODc5YTQyYjVjNTliMmEyYmY3NThiYWY4YjFkMmQwNTJmOGRmN2VlNWNkOTIyMjJkYTM4NzUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQxMmNhMzQ1Y2NmNzViZjljMDgwNmJjZTY5NWJlOGRlODA4Yjc5OTg0MjUxYTdhNTRkMjAyY2Y2MTAxZGQ0NTEiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjJkNzA5NGEwOTBkZDkxYjgwMmJjZWIxYWNkYzMwYWMyNTc5MjU4YTFjNjkxNTk4YWVmNjYyMDAyMWQ1NWMzMDQiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjJhYzk3OTRjOTIxODcwZGVjNjU0YWU5YjU2ZDBiMDk3YWU0NDlhODU4NzE5Y2Q3MjhkZDI5N2ZhNjMyN2VhOTYifQ"
}
]
},
@@ -26,7 +22,7 @@
},
{
"resource": "repo://libs/partners/anthropic/langchain_anthropic/chat_models.py#L1-L150",
- "version": "repo-lines-v1:sha256:3f8c19788b4ef936bce0c585b292426b0a0c97ef07907d81ea0b6adc0a0603c9:eyJzZWxlY3RlZExpbmVDb3VudCI6MTUwLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiIxNTBhNDllZmI2N2JmMzZhNTk4OGExOGYwZTEzMDQ3NDBjMDY3NTRhYW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NzlkYTQ5M2JkZDY3YzczZDUwMGQ2NDBhZDBlYWE2Yjg2OTYxYTAyMWVmYzA5MGJiMWJkYzFlIn0"
}
]
},
@@ -91,20 +87,20 @@
"statement": "Provider packages reside in /libs/partners/provider_name/ with a langchain_provider_name module containing chat_models/base.py (or chat_models.py at module root), data/ with profiles and augmentations, tests/ for unit and integration tests, and standard files: pyproject.toml, Makefile, README, LICENSE, uv.lock. The pyproject.toml specifies langchain-core>=1.6.2,<2.0.0, provider SDK dependencies with pinned versions (e.g., openai>=2.45.0,<4.0.0, anthropic>=0.120.0,<2.0.0), and test dependencies including langchain-tests>=1.1.9,<2.0.0 with version constraints. Local packages are referenced via [tool.uv.sources].",
"evidence": [
{
- "resource": "repo://libs/partners/anthropic/langchain_anthropic/chat_models.py#L1-L100",
- "version": "repo-lines-v1:sha256:338b9bdc04085758983bd4c6a24730d8861f1c2f8cfe48d493e2e165bbc272e2:eyJzZWxlY3RlZExpbmVDb3VudCI6MTAwLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiIxNTBhNDllZmI2N2JmMzZhNTk4OGExOGYwZTEzMDQ3NDBjMDY3NTRhYWIzMzMwNWIxZDE3ZTkxY2NiMWYyODhmIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMWJhNDcxOWM4MGI2ZmU5MTFiMDkxYTdjMDUxMjRiNjRlZWVjZTk2NGUwOWMwNThlZjhmOTgwNWRhY2E1NDZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MCwicHJlY2VkaW5nQ29udGV4dEhhc2giOiJlM2IwYzQ0Mjk4ZmMxYzE0OWFmYmY0Yzg5OTZmYjkyNDI3YWU0MWU0NjQ5YjkzNGNhNDk1OTkxYjc4NTJiODU1IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJiNzQ2NDFjZTZlYWMxZWRjZDI0OWMzYzhlZDk3OTg5YmEwMzM3ODA1MTNiNTAzNGIwODQwM2ViNzU0YjBmZDhlIn0"
+ "resource": "repo://libs/partners/anthropic/langchain_anthropic/chat_models.py#L1-L150",
+ "version": "repo-lines-v1:sha256:029b83ec3b02ad423217217e74b2d81d7fe59f641be07f5c6e78478ab074ca1e:eyJzZWxlY3RlZExpbmVDb3VudCI6MTUwLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiIxNTBhNDllZmI2N2JmMzZhNTk4OGExOGYwZTEzMDQ3NDBjMDY3NTRhYWIzMzMwNWIxZDE3ZTkxY2NiMWYyODhmIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJiYTJmOWYwYjU4YTM5Y2ZjMjcyNzliZDJjYjZkZTlmYzM2M2ViNDUwMTY0NTU4ZjJiMjAzMTkyOGI1MTkzMjdkIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MCwicHJlY2VkaW5nQ29udGV4dEhhc2giOiJlM2IwYzQ0Mjk4ZmMxYzE0OWFmYmY0Yzg5OTZmYjkyNDI3YWU0MWU0NjQ5YjkzNGNhNDk1OTkxYjc4NTJiODU1IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJhYzU3YTBiYmU1N2UyMTY1NjMwNDk4ZjBkYTM3MWI2MGExY2QzMGVkMTcyZGZjNzNiZDI4NzU5MTc5OGUzZTVlIn0"
},
{
- "resource": "repo://libs/partners/anthropic/pyproject.toml#L1-L75",
- "version": "repo-lines-v1:sha256:8e6851fb865851f6cc45a8aa28876785c935a22ab0560b217e017d0ec20a357f:eyJzZWxlY3RlZExpbmVDb3VudCI6NzUsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjA0NTY5OTQ2YWM5YmJlN2NiMmNkZWMzZjhiZWNmMzQzNzUwYzU4YjliMzIxZWMyMTk1YmZiYWFiMmFhOGM0YmEiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwO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2MWEwMTk4MTEyMTZkNWNjOWJjYmE1ZmNjMjcifQ"
},
{
- "resource": "repo://libs/partners/openai/langchain_openai/chat_models/__init__.py#L1-L5",
- "version": "repo-lines-v1:sha256:6e49204d09a688bd514537f77292e5e52a5dead315b87c27cbc707a8ed771945:eyJzZWxlY3RlZExpbmVDb3VudCI6NSwiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiYTQ2YzllZmI2M2QyOWI5ZGViNDA4NDBiMDI0MGUxMmM0N2NlNDNmZWU0NmMwNGYxYWE4N2U1ZWVhODU0ODUwMCIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiMDFiYTQ3MTljODBiNmZlOTExYjA5MWE3YzA1MTI0YjY0ZWVlY2U5NjRlMDljMDU4ZWY4Zjk4MDVkYWNhNTQ2YiIsInByZWNlZGluZ0NvbnRleHRMaW5lQ291bnQiOjAsInByZWNlZGluZ0NvbnRleHRIYXNoIjoiZTNiMGM0NDI5OGZjMWMxNDlhZmJmNGM4OTk2ZmI5MjQyN2FlNDFlNDY0OWI5MzRjYTQ5NTk5MWI3ODUyYjg1NSIsImZvbGxvd2luZ0NvbnRleHRMaW5lQ291bnQiOjEsImZvbGxvd2luZ0NvbnRleHRIYXNoIjoiMjZkMjAyZmFmYmI0ZGEzYWU4OGFhYTkwMzcxNDgwODg5NDZhMzFkZDYzNzhlZjNjZmIzOGVhYWQ0MzE4NGE3MCJ9"
+ "resource": "repo://libs/partners/openai/langchain_openai/chat_models/__init__.py#L1-L6",
+ "version": "repo-lines-v1:sha256:b69d77fd9aa09cdc548568ae5103af5800deaaf4e2742b2ca8516e99e9a3b4bb:eyJzZWxlY3RlZExpbmVDb3VudCI6NiwiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiYTQ2YzllZmI2M2QyOWI5ZGViNDA4NDBiMDI0MGUxMmM0N2NlNDNmZWU0NmMwNGYxYWE4N2U1ZWVhODU0ODUwMCIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiMjZkMjA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iMzVjYTMzYmI5NzA1OTMzMzM0NmZmMjRjODEyNTI0MzU3OTExZTEyZTkwZGM2YmIifQ"
+ "resource": "repo://libs/partners/openai/pyproject.toml#L25-L82",
+ "version": "repo-lines-v1:sha256:85b9044ae1f60a626d0fa52a602b424571f92cc42d6d46237d7590bc73be5ac4:eyJzZWxlY3RlZExpbmVDb3VudCI6NTgsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImFkOTVmNWU5ZWRlMDE4MTYwNDNjMDc5N2FjZThkYTJhYzRlOTlhOGE2YTYxMGZhOTg1NzBlZjM0YjkzNTYxMDkiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImM3ZmUwMjFkZWU4YWRkY2MzZjFmNWUyOTdmM2FlNjhlZjM2MTg0MTg2ZTZkNDA4OTFlMTExZmFhYTMzMzUyMjkiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImI4YTIzZWVmMWY4MDkxZjM0OTE1MjQ3OTliNTVkMmNjZDUyYWU3OTYyZDJkY2MwOGYxM2ExNDk0ZWNkNmMwOTkiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjU3OGYwNmRkZWNjMGE3NzdiODYzNTZmMTE4OTQ1ZjdjMWM4YWM2MWEwMTk4MTEyMTZkNWNjOWJjYmE1ZmNjMjcifQ"
}
]
},
@@ -127,16 +123,16 @@
"version": "repo-lines-v1:sha256:3ebe187dbd9c60e3c578b49557371974d467265f4d41cbf9b9815b27c0892186:eyJzZWxlY3RlZExpbmVDb3VudCI6NjYsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6Ijc1MDk3Yjg4NTEwNzY5NjdiMDQ0Y2VjNGY5MDEzZmNkMzI0YTBjNmJlOWUzYjY3MGJjNWY0ZjY5MzE5MGFmNWQiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImEzMDNlY2RkNGE0ZDEwZjE5YzczZmQ0MmZkMTI0MzdmZDMzNTRhODI2ODE2MDVkYTUyNTVhOTdhMzkwNjhkYmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjU1YjZlODcwNmI0MzA0N2YyYTZkYjY3ZjEzMjYzODU5NTYwNGU2N2YzNjk2Njg3NmNlMDE1OGYwMDUzZTZiZDEifQ"
},
{
- "resource": "repo://libs/partners/openai/langchain_openai/chat_models/_compat.py#L420-L514",
- "version": "repo-lines-v1:sha256:5edbafd2e91e0721eeb67a4ec784e0c9626394f5ef96220b12fb0c8d32b8189f:eyJzZWxlY3RlZExpbmVDb3VudCI6OTUsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjY3ODY2MjIwMzM5N2EzNmQ5YTI0ZDc2NDNiZWJlZDQ1MGQyMjhkYWI3OGU3ZmZiZDZiZTdjYzM3NWY3ODdiMjYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImRiNmI0YjE3YjY4NGVhZjdkOGRmMWM3MmNmMzVjMWFjZmQwYzgzYWY0MmI3MDY4MzFiMzlmODA2OGU0ZDM0NmUiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImU1ZTM2ZjFiMDZiMTA2NWQwMGZlMmZjMTlmMGY2OTNhNmE2OTA5MTg4MWE1MDczMmNkMzlmOWNiZTE0NTRmNDgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjowLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUifQ"
+ "resource": "repo://libs/partners/openai/langchain_openai/chat_models/_compat.py#L431-L515",
+ "version": "repo-lines-v1:sha256:7115d653b463301b7e6db6a9a45d83e03929ae3f8faf80f78d74014d8d2a6ca0:eyJzZWxlY3RlZExpbmVDb3VudCI6ODUsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjY3ODY2MjIwMzM5N2EzNmQ5YTI0ZDc2NDNiZWJlZDQ1MGQyMjhkYWI3OGU3ZmZiZDZiZTdjYzM3NWY3ODdiMjYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjIyN2M5ZGQzNGE5ZmM1YzIyMzQ5NDg1ZTAxZmEyZTE3ZWY5YmE0MzgxMjY4ZjA4NzI3MWY1ZGE2YzE3N2YzOTkiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImU1ZTM2ZjFiMDZiMTA2NWQwMGZlMmZjMTlmMGY2OTNhNmE2OTA5MTg4MWE1MDczMmNkMzlmOWNiZTE0NTRmNDgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImViNTJhZjQ1OTY1OWRmZGQ2YWE1NjliMjRjYzgxZDUzZWE2NDMzOTg0MGY1OTIzYWY4OWM5YjRhZDNjMzkzZTgifQ"
},
{
- "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L1206-L1232",
- "version": "repo-lines-v1:sha256:813e35e0fe826e0dc8ce93bdfacd8e26ae1520c544dc185b5c1b818bbae1d5cb:eyJzZWxlY3RlZExpbmVDb3VudCI6MjcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ5YmQyOTMzNzBkZWUyYzk3NGFiZDM2ZmRjMmUwM2IwNjgxNTIzMWRlZmY1MzE0MWEz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NvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImMwNWE0ZDlhMDQ3M2EwYTA1NTkxY2FmNzcyZmE0MzgxZmExODJlNmU3YjdlODI3ODkwMDMwZjNiYWVhYzRlMTIifQ"
},
{
"resource": "repo://libs/partners/openai/tests/integration_tests/chat_models/test_responses_api.py#L1-L99",
- "version": "repo-lines-v1:sha256:b633abbf79920239cd3ca50463ef74011ad968d44a62026c340fe2b714195e03:eyJzZWxlY3RlZExpbmVDb3VudCI6OTksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjI2MWViYzE4NDM2YzZjY2ZmYmFiYTQyNzg5YWNlY2U4YTMzZWJmOTc1ZDBlNGU2OTkxOThkYTQ2MWY4YjZmYWYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlOTY0ZTA5YzA1OGVmOGY5ODA1ZGFjYTU0NmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImU5YjJmZWNiYTNhOGJkZjBlOGEwZjFiZjM1YTE3M2EzMTU2N2ZlMDJmZmI0MjI1NjY0MGYwZmUwZTYxOTJiZmMifQ"
+ "version": "repo-lines-v1:sha256:1836fb91ceecbdfee262febece0da2ce428c7f944f5dc5448f67a666e6e5a6c9:eyJzZWxlY3RlZExpbmVDb3VudCI6OTksImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjI2MWViYzE4NDM2YzZjY2ZmYmFiYTQyNzg5YWNlY2U4YTMzZWJmOTc1ZDBlNGU2OTkxOThkYTQ2MWY4YjZmYWYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjUzM2NhZmYyMjFkNDZhZGZiNWVhNmExYTk4OWMwNjQ0ZjkyNjUyZjUyYWQ5MjgyZTRkNDFjMmJhNGYxYjkzZmMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImM4OTlkYzllNTk2NGM3ZTQ1YjBiZGU2MzIxMzM2YjZiMmRjMzExNWQ5ZDFhNjRiNmE4YWYyNjcyY2ViNDhiOGMifQ"
},
{
"resource": "repo://libs/partners/openai/tests/unit_tests/chat_models/test_responses_standard.py#L1-L38",
@@ -161,6 +157,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-22T08:27:06.345Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/prompts.json b/openwiki/.claims/prompts.json
index 567c2742ec..92002eef6c 100644
--- a/openwiki/.claims/prompts.json
+++ b/openwiki/.claims/prompts.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:39306f0c76011ccf01aff4ac460b8d8856130f40f1e6fcdbd46b70dbadcc2ea2",
+ "pageVersion": "sha256:479c5428fb5c4d5a6a9cb84f2f11bf8a578e6af0b1f5e1208f47fa98d0f563df",
"claims": [
{
"id": "claim_06ad6af0140b4318b25f43272f89e77f",
@@ -55,8 +55,8 @@
"statement": "FewShotChatMessagePromptTemplate embeds example message pairs within a chat template sequence. Each example is formatted as a conversation exchange (human/ai messages), then injected between prefix and suffix messages to teach models by demonstration.",
"evidence": [
{
- "resource": "repo://libs/core/langchain_core/prompts/few_shot.py#L262-L410",
- "version": "repo-lines-v1:sha256:546d87960f834e65f5e8f714ed573fbc7b284cb4c13040ef4becaf2f1647ea5e:eyJzZWxlY3RlZExpbmVDb3VudCI6MTQ5LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJjMTdmMmNmMmM0YWI0MzYyMTRlNjBlYTUyY2E4MDQ3MjE5MWZhMDE5ZTgxNmI0YjJjOTcyNTRhN2FmNzgwMzdjIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJiYWFlOGEwY2E3NmY5OGY3YjdkYzc5ODQ5NTFkNjNlNTdkYjNjNjQ1NTc5Y2E1MWJhZDZhNTM5ZDYxNGVkYmJlIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiI4YTQ2Mjk5YmRhMDI5NWZmOWNmNWQzYzI4OGM1ZjVkMWI4ZDcwOTNkNzZmYTI1M2JjZTNiYjc3OTlhMTcwZGZiIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI3NWMzMDQ1ZGMyZDYxNjE4OTMxZGExN2I0MjNlNDkwY2RiMjYyYjJiOTUwZGZkNWUwZjY3NzdhNDJiMWE2YjVlIn0"
+ "resource": "repo://libs/core/langchain_core/prompts/few_shot.py#L262-L416",
+ "version": "repo-lines-v1:sha256:fdf87b1554c5d1a9a88cf12de0e7dd7f807add84226ec34c2bbeb8215ac0bdb4:eyJzZWxlY3RlZExpbmVDb3VudCI6MTU1LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJjMTdmMmNmMmM0YWI0MzYyMTRlNjBlYTUyY2E4MDQ3MjE5MWZhMDE5ZTgxNmI0YjJjOTcyNTRhN2FmNzgwMzdjIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJiYWFlOGEwY2E3NmY5OGY3YjdkYzc5ODQ5NTFkNjNlNTdkYjNjNjQ1NTc5Y2E1MWJhZDZhNTM5ZDYxNGVkYmJlIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiI4YTQ2Mjk5YmRhMDI5NWZmOWNmNWQzYzI4OGM1ZjVkMWI4ZDcwOTNkNzZmYTI1M2JjZTNiYjc3OTlhMTcwZGZiIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJkM2E3YzE2NjY3ODRhOTI4ZjllNGU3NWEzZGJjZDRiNTViYzMxZjFiNjcyYWVjMTllN2VjZTVjODY1YzFmNTBjIn0"
}
]
},
@@ -179,6 +179,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/quickstart.json b/openwiki/.claims/quickstart.json
index d8cf456c16..9764308bf1 100644
--- a/openwiki/.claims/quickstart.json
+++ b/openwiki/.claims/quickstart.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:37b10d0b8065a18260ed5cc5af20f81cfbc6872d2057a39aef73c3cda08f81db",
+ "pageVersion": "sha256:a1b4253867586e85c529d4961fc134ccff5dddf2074dfef2da93497018b5fe1f",
"claims": [
{
"id": "claim_7425c73f5e4c4667b8babba66c3663a0",
@@ -60,7 +60,7 @@
"evidence": [
{
"resource": "repo://libs/langchain_v1/langchain/agents/factory.py",
- "version": "repo-file-v1:sha256:ecbb580ed4083a985a40c71735aa0eafb58d3a00ac74d2e511ab14a3aa3d37b1"
+ "version": "repo-file-v1:sha256:cc4a7d9a620224558c4eddd4e13edc988a9ac9e328b7a67deeb71ed2c5ec5174"
},
{
"resource": "repo://libs/langchain_v1/langchain/agents/middleware/__init__.py",
@@ -152,7 +152,7 @@
"evidence": [
{
"resource": "repo://libs/langchain_v1/langchain/agents/factory.py",
- "version": "repo-file-v1:sha256:ecbb580ed4083a985a40c71735aa0eafb58d3a00ac74d2e511ab14a3aa3d37b1"
+ "version": "repo-file-v1:sha256:cc4a7d9a620224558c4eddd4e13edc988a9ac9e328b7a67deeb71ed2c5ec5174"
}
]
},
@@ -183,6 +183,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-22T08:27:06.345Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/runnables.json b/openwiki/.claims/runnables.json
index ee3bfc950b..b1dc714849 100644
--- a/openwiki/.claims/runnables.json
+++ b/openwiki/.claims/runnables.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:43b55d032e5cecd3932f068ab29da7e40eecc0b82ef05698892de9e03d0d0b1a",
+ "pageVersion": "sha256:63c281f9b8fd8ffc2ad68e300601c05fb591f640021b20b792942a4702f0f776",
"claims": [
{
"id": "claim_c00f8ff82e09494a9cdfb9149dda319c",
@@ -47,22 +47,22 @@
"statement": "RunnableBranch selects one branch based on condition evaluation and RunnableRetry adds retry logic with exponential backoff, while RunnableWithFallbacks tries fallback runnables sequentially on failure; these enable error handling and conditional control flow.",
"evidence": [
{
- "resource": "repo://libs/core/langchain_core/runnables/branch.py#L43-L150",
- "version": "repo-lines-v1:sha256:66036b2fd34abb1f90bcb822d35405a1b0ef80672749e09dd8fea59547ddb70f:eyJzZWxlY3RlZExpbmVDb3VudCI6MTA4LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJhMWIxNzY1NTk3Nzk0MDIzYzI1ZGNhOTMzMGQ2MDQ5NTQ3MjkyNzMwY2Q2MGVmZWE4YjVhZDljZTM4ZmY0NDliIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIyMzljMDEzMzhmYzUwNGExMmU4ZjYxZDJjZThjMTk3ZGMyYjI5Yzk5MDI3NWY4NzA1ZTJhYTBkMjY2MjIxOTYwIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiJlOWMwNDUwMTVhMDNhZjc2Mjk2MzRlMDZlOWJlM2Y4OGIyNDI2YWI1YTM3ZmU5MGIyODJiZThmN2YxY2Y3N2RmIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI0NzRhZTY0MjkzNzhlZWM2ZmQ0NTlkMjhjNjA5YjFjNWRjOGQ3NDVmMDhlOGRiODgxMmY3ZTkwMmU1MjQwYTQxIn0"
+ "resource": "repo://libs/core/langchain_core/runnables/branch.py#L43-L290",
+ "version": "repo-lines-v1:sha256:77b53fbabf2bdae2e052b15b90650cf13e0e2d73221231eb5f782f4a5b5445ed:eyJzZWxlY3RlZExpbmVDb3VudCI6MjQ4LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJhMWIxNzY1NTk3Nzk0MDIzYzI1ZGNhOTMzMGQ2MDQ5NTQ3MjkyNzMwY2Q2MGVmZWE4YjVhZDljZTM4ZmY0NDliIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMWJhNDcxOWM4MGI2ZmU5MTFiMDkxYTdjMDUxMjRiNjRlZWVjZTk2NGUwOWMwNThlZjhmOTgwNWRhY2E1NDZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiJlOWMwNDUwMTVhMDNhZjc2Mjk2MzRlMDZlOWJlM2Y4OGIyNDI2YWI1YTM3ZmU5MGIyODJiZThmN2YxY2Y3N2RmIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiIwYzExNTkyYTEzMjczNWJlODI0OTA4OWQ3MWFhMGJlN2VmNmQ2MDQ5MjczNDQ4NDM0YTI4MmJkNGQ1NTBlMDM5In0"
},
{
- "resource": "repo://libs/core/langchain_core/runnables/fallbacks.py#L37-L150",
- "version": "repo-lines-v1:sha256:a4a6c5df3334af9e15252973d89207d490c1b04eafea898dba1b33d0a4c2f2c5:eyJzZWxlY3RlZExpbmVDb3VudCI6MTE0LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJmY2U5OTZhMzU2NWJjY2E4MDcwNzYwNDYzMWU2OTc4ZTYzOWZkMTkyYjE4NzRmMTliNWJjYzQxYWZmNTQwMGJlIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiI5NjEyNDJjNTEwNTVkODk2MGM0ZWNhMDgwMTFmOTM2ODM0NTZlMThjNjYwMTI3Y2JlMzBiMjhkM2M4YWEyMzJlIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiJiZWI5MWQ5NDFlNTA0MjVlYzdhOGUwYTIxZDJhNTJmYzVkOTkzOTFmNzliYjdjZjhlNTdjMjZlZjY5MjRlNzRmIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI4MDQ1ZjE5NzRiZjNjYTU1YmNkYzhiNDFkMmRmYjk4Y2MzZjkwOWZkOWU5ZWQ0OTM4M2JiNzJmMzNiOGNmMmFmIn0"
+ "resource": "repo://libs/core/langchain_core/runnables/fallbacks.py#L37-L590",
+ "version": "repo-lines-v1:sha256:5a9f0c0e55d40ef5e37229535b9d3b42ed1860dee6a6511d13934e69d3f272c2:eyJzZWxlY3RlZExpbmVDb3VudCI6NTU0LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJmY2U5OTZhMzU2NWJjY2E4MDcwNzYwNDYzMWU2OTc4ZTYzOWZkMTkyYjE4NzRmMTliNWJjYzQxYWZmNTQwMGJlIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMzI0ZDkwNTM1YThiN2IwMzBmMzQyMDZmYjY5ODQzODMyY2UyOWY5NGY5Yjg0MDE1NDRlYmZhZWIxMGViODE0IiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiJiZWI5MWQ5NDFlNTA0MjVlYzdhOGUwYTIxZDJhNTJmYzVkOTkzOTFmNzliYjdjZjhlNTdjMjZlZjY5MjRlNzRmIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI1MGE3ODA3YzdjNjVkMDhkOGU3NmE0Y2Y3MTg4MDAyOGQ0NTUyMTM5YTU1NjY3OTRkMmI0ZjdhOGIzZWFmNWNmIn0"
},
{
- "resource": "repo://libs/core/langchain_core/runnables/retry.py#L48-L150",
- "version": "repo-lines-v1:sha256:f73fdde02952b636ccdbb1e4fcca3c715037e2b4c2be288670a407d561309db6:eyJzZWxlY3RlZExpbmVDb3VudCI6MTAzLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJjZGUzZTljM2Y2MWE5NGFhNDczNmNlM2Q5NmY3YzAwMTI0NTc0ZmYxZGNlYWU0OTc1OGFiNTAzZTA5YzE5NDhhIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJlMDNhOWY1ODdjZTQ5ZDczZWQ4YTc0ZDM2YjUwMjg5ZDZlMGFkOWJkYTllZmM5YWI5ZTc4N2M4YjMyZjhmYzZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiI4Njk4NWE0NmYyN2U0YTUzNmVkNzhhY2QyOTgyNjRhM2IyODZhMzUxNTcxMzk3MTQyYWQwMjc1OTNlMWI1MGRhIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJhNjVhMjU5ODEyMTdkZDUyYzE5MTAxMTQwYWZhMjNmYWYzNGYwYzUxY2M4MWFlOWNlM2I3ODM1ZmYxZjdiNzE4In0"
+ "resource": "repo://libs/core/langchain_core/runnables/retry.py#L48-L379",
+ "version": "repo-lines-v1:sha256:1b700122b4e165b35c1cd4ebb40cf1f94cc295b88b3cd0fddce894867cb3a9cd:eyJzZWxlY3RlZExpbmVDb3VudCI6MzMyLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJjZGUzZTljM2Y2MWE5NGFhNDczNmNlM2Q5NmY3YzAwMTI0NTc0ZmYxZGNlYWU0OTc1OGFiNTAzZTA5YzE5NDhhIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwYTU1MzRjMGZhOTgzZDdjYjE5Nzc4ZTFlNmNkZDM1ZGE3NzMwOWVlZjY0Yjc4ZGFlN2ZhODZhNGYyNGE2N2RjIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiI4Njk4NWE0NmYyN2U0YTUzNmVkNzhhY2QyOTgyNjRhM2IyODZhMzUxNTcxMzk3MTQyYWQwMjc1OTNlMWI1MGRhIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MCwiZm9sbG93aW5nQ29udGV4dEhhc2giOiJlM2IwYzQ0Mjk4ZmMxYzE0OWFmYmY0Yzg5OTZmYjkyNDI3YWU0MWU0NjQ5YjkzNGNhNDk1OTkxYjc4NTJiODU1In0"
}
]
}
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/source-map.json b/openwiki/.claims/source-map.json
index 69f06fc3ec..b195103e10 100644
--- a/openwiki/.claims/source-map.json
+++ b/openwiki/.claims/source-map.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:7147252f9ec42f2a3fbb825bf918edec111c30d11e7c9c2e161ba8a4dc68942e",
+ "pageVersion": "sha256:f5b86fe09bd49f31bc1929d54555fd33fa711f407d39ba3e6f9868c0dfb6d2f8",
"claims": [
{
"id": "claim_c71edae5b0f64c8fa79c17ef1aca0f6b",
@@ -8,7 +8,7 @@
"evidence": [
{
"resource": "repo://libs/langchain_v1/langchain/agents/factory.py",
- "version": "repo-file-v1:sha256:ecbb580ed4083a985a40c71735aa0eafb58d3a00ac74d2e511ab14a3aa3d37b1"
+ "version": "repo-file-v1:sha256:cc4a7d9a620224558c4eddd4e13edc988a9ac9e328b7a67deeb71ed2c5ec5174"
}
]
},
@@ -88,7 +88,7 @@
"evidence": [
{
"resource": "repo://libs/langchain_v1/langchain/chat_models/base.py",
- "version": "repo-file-v1:sha256:7cad65a9057208ebc0fc0fe49b0d818ae4a8fd568e3e42d09bbf1d9e12555d94"
+ "version": "repo-file-v1:sha256:757316423a5b1f95b14b1ebaac56e612af026bb50f06c1748e688e65a8a17b67"
}
]
},
@@ -98,7 +98,7 @@
"evidence": [
{
"resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py",
- "version": "repo-file-v1:sha256:b7f271886609e76085c3bd3a0adca0c2a52327b8165c23533a3602b3ba3cdec2"
+ "version": "repo-file-v1:sha256:5d1eeed0593e3bd6c199b08a0a75ad74f2e1ae70eafaf423faf58fe32e7e9ede"
}
]
},
@@ -164,7 +164,7 @@
},
{
"resource": "repo://libs/core/pyproject.toml",
- "version": "repo-file-v1:sha256:55cedb202c33c63643e241be6606fef3c4155b02f7c0b4b6e3fcb0cb37614844"
+ "version": "repo-file-v1:sha256:f2e32a43158f1a189ce6d1941ab80ba4bd2069c2f4e8018f026e9c7ce011634c"
},
{
"resource": "repo://libs/langchain_v1/pyproject.toml",
@@ -174,11 +174,11 @@
},
{
"id": "claim_458d709b604149fa8fb9639025882358",
- "statement": "LangChain uses a three-layer architecture: langchain-core (v1.6.4) for base abstractions, langchain (v1.4.2) for orchestration and agents, and partners for provider-specific implementations, enabling model interoperability and independent release cycles.",
+ "statement": "LangChain uses a three-layer architecture: langchain-core (v1.6.5) for base abstractions, langchain (v1.4.2) for orchestration and agents, and partners for provider-specific implementations, enabling model interoperability and independent release cycles.",
"evidence": [
{
"resource": "repo://libs/core/pyproject.toml",
- "version": "repo-file-v1:sha256:55cedb202c33c63643e241be6606fef3c4155b02f7c0b4b6e3fcb0cb37614844"
+ "version": "repo-file-v1:sha256:f2e32a43158f1a189ce6d1941ab80ba4bd2069c2f4e8018f026e9c7ce011634c"
},
{
"resource": "repo://libs/langchain_v1/pyproject.toml",
@@ -189,6 +189,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-22T08:27:06.345Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/streaming.json b/openwiki/.claims/streaming.json
index 7514c34adc..a14801c226 100644
--- a/openwiki/.claims/streaming.json
+++ b/openwiki/.claims/streaming.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:ec819a268f32b4dad0eea63143f3c3fcc73f653ada7bfcc8e8403918648926a7",
+ "pageVersion": "sha256:48ea385d8432c2a0ff1d100837e0ca311a3ea341fe2963834d7c8eec9590d019",
"claims": [
{
"id": "claim_87d5d462354440a7bccb6dbe992c60d3",
@@ -109,10 +109,98 @@
"version": "repo-lines-v1:sha256:585db4f95df0e78e7e568ef485dc6bf2f5aa659e705be1a76753572e91abb57a:eyJzZWxlY3RlZExpbmVDb3VudCI6MTYsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImMxNWVhMmUwZjNmYzQ0NzAyZTQyYzI5OWZlOTE5N2FkMWZjYTgzMzk2YjdlNjMwY2ZlMmZlYjdiNjU4N2M5YjYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQ3YmNiZjAxZjg5MGY4YzljZDUwMDA0NTlmNWY3MzRiOTFmMmZmNGRjNjVhNzU4ODlmYTFhMDIzMTU1YzZiYjgiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjdkZGI2Y2QwZDM5Zjk4NzEyNDZjMzEyZGUyOWQwMTQwMGYzZTk1NDI0YmVmZWE0NDQwNjEwYWY3OTVjMDI5MzIiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImY4NTE4MTRlMGExODA3MTFkMzYyYmMzYzA0YjdiNTVmMTNlNzQ0ODFjNGQzNTUwZGE1YTA2ZDE0YTc0MWFhZDkifQ"
}
]
+ },
+ {
+ "id": "claim_19041bc7ad72420d8e1a5087d5713bff",
+ "statement": "Message chunk types (AIMessageChunk, HumanMessageChunk, SystemMessageChunk, ToolMessageChunk) represent partial message updates during streaming and all support merging via the + operator. AIMessageChunk specifically includes tool_call_chunks for incomplete tool calls and chunk_position sentinel for stream completion signaling.",
+ "evidence": [
+ {
+ "resource": "repo://libs/core/langchain_core/messages/ai.py#L418-L536",
+ "version": "repo-lines-v1:sha256:c5c0e4e8c4ad9520a3725d13342d059511e117c85a00f583fd69aa75b13b2bb9:eyJzZWxlY3RlZExpbmVDb3VudCI6MTE5LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiI4ZGQ5NTNlNzZlN2IyODEyZTIwNGUwNDU0MTYyYzYzZWZmYzE4MDRkNTI2ZDlhMWM3ZTgxODhkZjkzYjMzOTBiIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiJiMTNjNmQwNzI5ZmQ5YTM5NzhlODZlZmI0ZDA5ZjNjNTE0M2YzOWI3YWI1YjcxMzYxZTljN2E2ZWZlN2UyZjZmIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiIzZTEyNzA5OTRiZmM2NjIxYWExNWMxMmYxMjg3MGE1ZWJiNDBhNmI4ZjUwY2YxOTUxNjBkZDRjYTIwOTc4YjE1IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJjMTc3NDNiZDc2Yzg2OTIzZTczMDc0NTNiYTA3NTJiODY3MGI4M2IwYTA2M2M2NGEwZTc5NmQwYzUxOTg2MWVjIn0"
+ },
+ {
+ "resource": "repo://libs/core/langchain_core/messages/base.py#L450-L472",
+ "version": "repo-lines-v1:sha256:d2c904f674bdc4d335c2829a3ac7f3ebe4a4316ebbd2c37277832e95558bc544:eyJzZWxlY3RlZExpbmVDb3VudCI6MjMsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjZmYmJlNWU4NTlhMWVlOTI1MTk2MmY4MWQ5NGU5NTZmZDJlNTVlZDVjYmY0ZGJkOWMwMDY0YzQ0MTI5ZWQ0ZmUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlOTY0ZTA5YzA1OGVmOGY5ODA1ZGFjYTU0NmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjA0N2M1NTg2N2IxNTgxZTdjYmRlMzYwN2E3YWVkNTVkYjMxNDIzNWZmNzc0ZWM3ZWE3MjRmZGMxOTY2MTVmOGIiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImZiOWMyOGZlMTdkOTQ4MzllZjYwNmRkNzdjN2JhMTVmOTJiMWI1NDNlODIzZTViMzY2ZGJjY2NhYzczYTRmMWQifQ"
+ },
+ {
+ "resource": "repo://libs/core/langchain_core/messages/human.py#L63-L70",
+ "version": "repo-lines-v1:sha256:195fcf1bab59ccd5a97963aac676f9f9131dfbf182df69c765ff5222b8e84009:eyJzZWxlY3RlZExpbmVDb3VudCI6OCwiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiNGNhMWFhMGMzMzdkZWY2YTQyNDJjMWFmMmE1MGZkZmE4MWQyNDkzOTk1ZmY5MzhjOTkxNTZjNWExMDI2MWEzMiIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiMjA5NTZkNWVhOTE4ODVkOTk2ZDc4YTA5MmI3Njk3NzNhMWJhMDVhNjkwYzk1ZmY1ODE2MWU1YzI3N2ZkYzhmZSIsInByZWNlZGluZ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claim_bc0f38340eb849dfb18cbd2b40fc4715",
+ "statement": "The add_ai_message_chunks() function merges multiple AIMessageChunk objects by concatenating content, appending tool call argument strings, summing usage metadata, preserving chunk_position='last' sentinel, and selecting the best message ID by rank (provider-assigned > LC_run_* > LC_*). When merged chunks include chunk_position='last', the init_tool_calls validator finalizes tool_call_chunks into complete tool_calls.",
+ "evidence": [
+ {
+ "resource": "repo://libs/core/langchain_core/messages/ai.py#L508-L568",
+ "version": "repo-lines-v1:sha256:004637120d5e7dd5227e2b491832ad9b05ac3e0e6390cf056d01eb954363ff38:eyJzZWxlY3RlZExpbmVDb3VudCI6NjEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjFlZjFjZGQwZjU3NDMzY2U1MDc3OTA3MjJlMmY1MWQ5NzM1NmNiZmZhN2IyNGRkN2NhMTM0NDgzMmQ0ZTUyNDgiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjIyMGI5YmI4YmU0MWU5OWZmYWU5NWViNjJjZmI4MDk5MWM5N2ZhZjAyNWQ1YTYyMzk2Y2M2YjI0MDgzMjZlYmMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjNjYTVmZTNjOWNhNmY0MmQ1YWE1MWU4NzY2N2FlNTM3MTUzNmYxYmQxODg3ZDAzN2M3Y2FlNzgyOTdmMDUyOGQiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjBkYmUxODg0MDk4ZWJhNmViNzljZWE3YjA2MmI5NDBmY2ZkODgxNzJmNTQ1OTE0OTM2ZDljMGUzZmZjMzlhZjMifQ"
+ },
+ {
+ "resource": "repo://libs/core/langchain_core/messages/ai.py#L652-L732",
+ "version": "repo-lines-v1:sha256:88e832e1ce4784431b83b7b95aa32fa391f7352fd8887a3bb857f9e897d7ae1c:eyJzZWxlY3RlZExpbmVDb3VudCI6ODEsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImQyMWI0MzJhMzNkOGMxYTM3ODMyYjUyZmY4OWMwY2M1MmUyZjE0NTRkMjE2OTQ0YjUzYjUyOWU1M2ZjYzQ3OTAiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjMwYzFmMTg4ZjE0MmVkN2E4MjQ2ODBiMjA3MTcyYzU1MTliYzYxNGE0OGZkYTdjZjE2N2VkYjhkZGY3OTk1NmMiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjgwMDQzNjdjZWJlMDRkMzQxNDNmZGM1OGY0OGU1NWQ3MWM3N2ZiZTU1OWRjNjJiZTE0N2FjODA1MzY5NmRkMGEiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjRiYjFkZmRiNDk3ODJkNzAyNWM3NmY0MmM2YTE5MTBjODkwZmFlZWQzOWRlODM3YzQzYzMwNzQxYzJmYzdjMzUifQ"
+ }
+ ]
+ },
+ {
+ "id": "claim_d2c55602420240ce8c4788a0b0cc9dc2",
+ "statement": "Token-level streaming occurs at granularity finer than complete messages: individual token strings or content block deltas are yielded per chunk, tool call arguments accumulate across chunks with incremental JSON parsing via parse_partial_json(), and callbacks observe partial state at each step. This enables real-time visibility into token generation and tool invocation without waiting for completion.",
+ "evidence": [
+ {
+ "resource": "repo://libs/core/langchain_core/callbacks/base.py#L65-L88",
+ "version": "repo-lines-v1:sha256:e4bed7227dc627f01db18cbf919a34691f2f85f4e0b4ead3a90c7dc43ae5f17e:eyJzZWxlY3RlZExpbmVDb3VudCI6MjQsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImU4MTNjMjlmY2U0NTdjZDgwNGMwZWQ0NjRjZDE5ZThjZjE5MjFkZjMxMGExNmY0MTAzMzc1NWNhZjM1NjM3ZGQiLCJsYXN0U2VsZWN0ZWRMaW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Dc2Yzg2OTIzZTczMDc0NTNiYTA3NTJiODY3MGI4M2IwYTA2M2M2NGEwZTc5NmQwYzUxOTg2MWVjIn0"
+ }
+ ]
+ },
+ {
+ "id": "claim_032b850893174b9a962418ae43d05154",
+ "statement": "Agents created via create_agent() support streaming via stream_events(version='v3'), exposing projections for tool_calls, output_deltas, messages, and subgraphs. Tool output streaming is enabled via runtime.emit_output_delta(), and hierarchical agents expose nested tool calls via subgraph handles. Stream events fire on_stream_event callbacks at event granularity rather than token granularity.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/tests/unit_tests/agents/test_agent_streaming.py#L1-L102",
+ "version": "repo-lines-v1:sha256:25758174bbd08af8beea7576102f76af4a376ed34133ff9f1b19b3e7f7456928:eyJzZWxlY3RlZExpbmVDb3VudCI6MTAyLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiI3YTNhZGZjNTk1YjBmZTRhYWY5ODA4MzMzZTcwNjYxYjNhOWY2NGI3ZTFlZmM1MDg4NDUyNmRlNzcwOGQ3Yjg5IiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMWJhNDcxOWM4MGI2ZmU5MTFiMDkxYTdjMDUxMjRiNjRlZWVjZTk2NGUwOWMwNThlZjhmOTgwNWRhY2E1NDZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MCwicHJlY2VkaW5nQ29udGV4dEhhc2giOiJlM2IwYzQ0Mjk4ZmMxYzE0OWFmYmY0Yzg5OTZmYjkyNDI3YWU0MWU0NjQ5YjkzNGNhNDk1OTkxYjc4NTJiODU1IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJkZWU5NWQ1YjNhYmE3MzdlOTFjZjM1NGI5OTJhZGFiYjExMzNkZTk2NWNmYmQ4YmVkZWFkZTdmMjkwNDFlYjc5In0"
+ }
+ ]
+ },
+ {
+ "id": "claim_ae44c1b200d14618acc3f4b493058651",
+ "statement": "During streaming, the callback lifecycle fires on_chat_model_start at initiation, on_llm_new_token for each chunk (passing token string/content blocks, full chunk object, run_id, parent_run_id, and tags), accumulates chunks in memory, and fires on_llm_end with merged result on success or on_llm_error with partial accumulation on failure. LangSmith automatically captures this lifecycle for token-level observability.",
+ "evidence": [
+ {
+ "resource": "repo://libs/core/langchain_core/callbacks/base.py#L65-L88",
+ "version": "repo-lines-v1:sha256:e4bed7227dc627f01db18cbf919a34691f2f85f4e0b4ead3a90c7dc43ae5f17e:eyJzZWxlY3RlZExpbmVDb3VudCI6MjQsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImU4MTNjMjlmY2U0NTdjZDgwNGMwZWQ0NjRjZDE5ZThjZjE5MjFkZjMxMGExNmY0MTAzMzc1NWNhZjM1NjM3ZGQiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjUwZGUyNTg3MTk2MTQ5MjYwNzFjOGZiMTlmZDg2NjE1MDU1NWYxYjAxMzU0ZjhjZDE2MDNhMTA5YTdkZGFlNDAiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjJmMTA5NTBiNWFmZGI1NGU1NDc1NWM3MzNiYWI5ZTliMjc2N2JkZjBiMWJmNjdlNWY5NzUyMzY3YjVhNDg3ZjMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImU1NGJmYWQyNTY4MDMxOGIwMTEzYzljYWFiZTA1MjczOTc2YmQ2NDMyMGI5ZmVhMTM5ODNjOWJkY2ZkNWZiOWYifQ"
+ },
+ {
+ "resource": "repo://libs/core/langchain_core/language_models/chat_models.py#L727-L856",
+ "version": "repo-lines-v1:sha256:8945f395d5d6b5430e498ed34a1247f6be3a49e373131a158b3edee84db49a81:eyJzZWxlY3RlZExpbmVDb3VudCI6MTMwLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiI2ZDAyZmNjYzVhNWFhZDlkMmZkZjc1NmZjN2ZlNjkzNDBmMWQzNzgwMTc0MDE2NjM4MzI0MGMzZWE2YzFmNDRmIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMWJhNDcxOWM4MGI2ZmU5MTFiMDkxYTdjMDUxMjRiNjRlZWVjZTk2NGUwOWMwNThlZjhmOTgwNWRhY2E1NDZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiIxYWFjOTNhNjQzOWE2NDQxYTAyMTUwYzIyNmQ4MzdmYTI1YTQ2YzI1YTY3NzkzYjQyYjQ2YTVhMjk0ZjhkZTM4IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI2MWRlNTAwZjdhMmRmNzQ1ZGFjN2NjYzYzZDlmMGFhNzNlNTRjY2EwNTc5ZmE1YjRhNzI1MjI4YzQ4MjBlMjBiIn0"
+ }
+ ]
+ },
+ {
+ "id": "claim_f053f61bfe474e17864760dbb4513d25",
+ "statement": "RunnableSequence chains stream end-to-end only if all components implement transform(). Components without transform() act as blocking points where the stream waits for completion before resuming. Multiple blocking components create multiple buffering points. RunnableLambda is a blocking component by default; custom streaming logic requires subclassing Runnable and overriding transform().",
+ "evidence": [
+ {
+ "resource": "repo://libs/core/langchain_core/runnables/base.py#L1194-L1235",
+ "version": "repo-lines-v1:sha256:52f3933957d94c8162dfa849e70cd335d61247108917a8fb081a31fe43b0f570:eyJzZWxlY3RlZExpbmVDb3VudCI6NDIsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjZkMDJmY2NjNWE1YWFkOWQyZmRmNzU2ZmM3ZmU2OTM0MGYxZDM3ODAxNzQwMTY2MzgzMjQwYzNlYTZjMWY0NGYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlO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4YzBjMTA4NDg1ODVlIn0"
+ }
+ ]
}
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/structured-output.json b/openwiki/.claims/structured-output.json
index 4c1fbe7b68..604768197d 100644
--- a/openwiki/.claims/structured-output.json
+++ b/openwiki/.claims/structured-output.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:3fc2f1b0796f339129190c568b93de04bf6a248be8c1b4328a0030d5264642da",
+ "pageVersion": "sha256:f21e3e28f4b0f6a2e1676685bc07733d58f0c614276dc01afd01919fa0c76167",
"claims": [
{
"id": "claim_150a5dc8a9c14fc19c3597a746649ba0",
@@ -168,15 +168,15 @@
},
{
"id": "claim_0fa32e0b43b74b6ea027931573865fc5",
- "statement": "Structured response is stored in agent state's structured_response field alongside messages; field is cleared on error retry to avoid stale checkpointed values; raw schemas are passed to middleware via ModelRequest.response_format.",
+ "statement": "Structured response is stored in agent state's structured_response field alongside messages; field is cleared on error retry and when no structured output is produced to avoid stale checkpointed values; raw schemas are passed to middleware via ModelRequest.response_format.",
"evidence": [
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1219-L1276",
- "version": "repo-lines-v1:sha256:2e1c8d13f173b0360296f6ff989dfdc681e2c292a53ec116d98d9845e6b2b630:eyJzZWxlY3RlZExpbmVDb3VudCI6NTgsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjI3ZjcwYWU2MjNjMmI5NWNjYzNjNTcxYmY4ZWUxYmE1ZWM5NmNmZjQzOTk2OTk2NGRmOGM4MjMwNTY1NzU5ZDkiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjhkYjMzOWMxN2Q0Y2M1NGU3MGM0ZmNmZWNiNjExYmI5ZTdkMzYzZjI1YjE4ZTA5MjNhMWQzMDZjYzk1OTI0ZTUiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjIxMzdjYjlhZDVlNGY3Y2FhZGFkMjU1MTVhZmEwY2QxMWVjYmVhMGZjMmI1YTZjZTE1ODc0M2I4NWFiYzM1Y2MiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjQxNzVlNWQ2YTFlYjM2OTBmYzQ5NTg1MTZmODlmMjJjYTIxNWZlNGEzZjgyYjg2YWZhNTVhNzRiZjE1YWQ0M2IifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L1523-L1532",
+ "version": "repo-lines-v1:sha256:f90faf6cb98bb02a3e43da4f63745152ab8d52abfe10ad15af871c679daa0f7e:eyJzZWxlY3RlZExpbmVDb3VudCI6MTAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6Ijc5MDdjNDljNDkxOTBlNTMxN2ZlNWUyMTBiZmM1N2Q4NDQ2NGExZmE2YjczMWYwNTc4NmE0ODRjMjIyNDEwNWMiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjU5MDlhNTNhNjE4ZDAyOGUxZDMwMDBjMGE3YWJjZWVjYmU1ZmIzN2Y0ZTUxMWVmZTQ2NjQzZmFkNmU2Njg3MmYiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjQxNjk0YmJmZDlkYzZhZGRhNmZkNmZmN2EyYTVjMzE4ZWIyMTQ3YmI0NTdmYjNmZDdhMTU2OGIzYWI0NTM4OGMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjYzOTBiOWYwMDFlZmIyMmMxNWU4MzQ0ZjkxYTQ2MTI0ZDE0NDk4OTdhM2EzODYyNWU0MjE2ZDExZDg1YzJlMmQifQ"
},
{
- "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L226-L242",
- "version": "repo-lines-v1:sha256:606c549102e85beab88d502650be6ab116496d3959d6cff46a7d1b0520fdc7d3:eyJzZWxlY3RlZExpbmVDb3VudCI6MTcsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjY1ZmNmMDEwNDNmMTVhNGRhZGJkNjI5ODdiOWM3OWI4ODg1MjQzNDI2ZWY5ZDBiMzNjMzk0OWVlMzRlYzAyYzUiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImQwMDVmOGU1OGIxNGViNTlkNzMxNTJhNGM1MGI1ZTg2OTBmZmNjNDcxOGQxYmQzZWUyYTU0Y2ZhYjhkNzc1MDIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjYzNjg0OWY2ZTA0YTdiZGI3NTc4MTM2YTJkOWU0N2E2YjBiZjMxYmMxNTczMGFhODM4NmJjOWExNDIwZWFiYjgiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6Ijg5YTdjY2ZmMjEyMmJiZmMxZDEwOTZjZTZkODFlMDY4NDY0NjM0ZDA0MjA2OTBlYzVhZTE5YTFmMGYxOWNkMGIifQ"
+ "resource": "repo://libs/langchain_v1/langchain/agents/factory.py#L226-L260",
+ "version": "repo-lines-v1:sha256:94b8e7fd1684ff07dcc13de3a7d6d302e9a5201ffd0f76f2f228189c0993d08b:eyJzZWxlY3RlZExpbmVDb3VudCI6MzUsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImZiOGE1OWJiOWI1MWQzOTUwNWFhY2U0YzU2ZjliMzM3YTc3ZDMyZjI3OTY5MTlmN2Y0ZjI3MWMyMGY4NGNhNTQiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImQwMDVmOGU1OGIxNGViNTlkNzMxNTJhNGM1MGI1ZTg2OTBmZmNjNDcxOGQxYmQzZWUyYTU0Y2ZhYjhkNzc1MDIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImU0ZmM0M2I4NDk0MzFiYTFjZjk3NmIyZmYwODI3ODI3ZWU4ZGJhNWE1YzE5MjUyZTg3NTljODY4Yjk4N2Y3ZWMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6Ijg5YTdjY2ZmMjEyMmJiZmMxZDEwOTZjZTZkODFlMDY4NDY0NjM0ZDA0MjA2OTBlYzVhZTE5YTFmMGYxOWNkMGIifQ"
}
]
},
@@ -197,6 +197,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/tools.json b/openwiki/.claims/tools.json
index 828ec68ac2..8061dac5d1 100644
--- a/openwiki/.claims/tools.json
+++ b/openwiki/.claims/tools.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:f96ced3ef3413e627abd981c0b444191037c10e2b3ddb823115c03be7ac10618",
+ "pageVersion": "sha256:6d374dc19fc3e275ddb3c6c5f639ddf83e7304cc9f64e70f5096f9a137f28e6e",
"claims": [
{
"id": "claim_72f3312a1c4a494889542dc6efdbf940",
@@ -215,6 +215,6 @@
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.claims/unit-tests.json b/openwiki/.claims/unit-tests.json
index 4504f61edb..8022362281 100644
--- a/openwiki/.claims/unit-tests.json
+++ b/openwiki/.claims/unit-tests.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "pageVersion": "sha256:ec2b85809adb37d687222c6c15a81c5fba81b7c81ad0de26ad5250a61798fbd9",
+ "pageVersion": "sha256:0b30f28f261bdfcaa70879e3939ef3edfa29912261c6ab720c39bd340ea91064",
"claims": [
{
"id": "claim_bdde90f4e5f6413f8214fe7e80b66a9a",
@@ -185,10 +185,74 @@
"version": "repo-file-v1:sha256:c80ecf32bea0b4e7d5a86ae816614622e63f082e45bf2dc665118ddcb8400d87"
}
]
+ },
+ {
+ "id": "claim_b531aedeea8b43a5aeb654bc30862416",
+ "statement": "FakeToolCallingModel in tests.unit_tests.agents.model enables agent testing without API calls by scripting predictable tool calls, supporting tool_style ('openai' or 'anthropic'), structured_response for structured output modes, and an auto-incrementing index for multi-turn test scenarios.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/tests/unit_tests/agents/model.py#L23-L112",
+ "version": "repo-lines-v1:sha256:6fbb1da3298e723f5c3b059b3c9afec1231041b6148b14ff5ee521e57f019940:eyJzZWxlY3RlZExpbmVDb3VudCI6OTAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImY4YTliYTUxMzlmYTEwNzNkNjk0NzQ5OTU1ZThlY2I3ZTRhMDk1ZjY2NjdiYzI1YzQ1NTM4NjFjNDRlYWI1YzMiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImM3ZTllYTZmMThjMmY5ZWEwOTMwNjZjZGI4MGNjMzI5MDI2YTcwZTkzMzY0OTU4NDdhNzY0ZjhlZWYzNGUxMzAiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjZmMzVkNTQxMGU0ZDE1OTEwZTA5OTUzMTRhMmJmZWVjNjcwM2Q3MDQyY2ZhMTRiZDg3ODBmYjNlOTRmNWZhMTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjowLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUifQ"
+ }
+ ]
+ },
+ {
+ "id": "claim_29997145daa84c7fa4ca7d693f3693ba",
+ "statement": "InvalidToolCallingModel simulates models returning malformed tool calls with invalid_tool_calls field; agents produce ToolMessage with status='error' on invalid calls, enabling recovery on next turn; test_invalid_tool_calls.py verifies agent behavior for invalid JSON in tool args, mixed valid/invalid calls, and historical invalid calls already in state.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/tests/unit_tests/agents/test_invalid_tool_calls.py#L19-L209",
+ "version": "repo-lines-v1:sha256:45f5767ee977fd731ad6a82d1fdce0a4e39a68324019d77b467ce0608f508b51:eyJzZWxlY3RlZExpbmVDb3VudCI6MTkxLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiIwMDlkZGVkZTdmNWFiYTI2OGM2OWRmODQxNjQxZGVjMGFhODU5NzQ1NWVlNzQ3YTNiYmJiZGVmYWFmZDEyNmI1IiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMWJhNDcxOWM4MGI2ZmU5MTFiMDkxYTdjMDUxMjRiNjRlZWVjZTk2NGUwOWMwNThlZjhmOTgwNWRhY2E1NDZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiIzMjRjMjEyNzA0NGRmNmRkMTU4NDI1Y2QxMzEzNzc0ZjU0ZTFjNDQ1MDgxZjBkMTY3NGExMGMwNmFlZGFlNjZmIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiJhYzEzM2VlNTI3ODhjM2MzYzQyM2UxZmY1ODI1YzFmZjYzMWUzNDUxZTA2YmFjNWQwMDA1ZjdlNzI1M2RlM2ZhIn0"
+ }
+ ]
+ },
+ {
+ "id": "claim_4d89b3787bfe4c81ad80db947d50ee94",
+ "statement": "Agent conftest.py provides parametrized sync/async checkpointer and store fixtures (memory, sqlite, postgres backends); LANGGRAPH_TEST_FAST controls fast vs comprehensive testing; deterministic_uuids fixture patches uuid.uuid4 for snapshot testing; anyio_backend fixture configures asyncio.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/tests/unit_tests/agents/conftest.py#L1-L194",
+ "version": "repo-lines-v1:sha256:adf0b3740a02889add6c741b22bab2cceca3ec97d01bf84ed75da030f2f84142:eyJzZWxlY3RlZExpbmVDb3VudCI6MTk0LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiIzNzI3YWRmZjUyNGUwNjE2MDIyZWFkZDhmNGFmMjFhMDc3OGIyOWZjNGM3N2JkZmVmZDFhZmNlMmNiZjVlNGI3IiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiI4MzNiMzY3OTY3ZTg3N2ViYTJkYTE2ZjQwZmI5YzA4MGMwMGYzNzJjZjgxNmZlNjdjMTY3MzFjZjMyZTdhYTRmIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MCwicHJlY2VkaW5nQ29udGV4dEhhc2giOiJlM2IwYzQ0Mjk4ZmMxYzE0OWFmYmY0Yzg5OTZmYjkyNDI3YWU0MWU0NjQ5YjkzNGNhNDk1OTkxYjc4NTJiODU1IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MCwiZm9sbG93aW5nQ29udGV4dEhhc2giOiJlM2IwYzQ0Mjk4ZmMxYzE0OWFmYmY0Yzg5OTZmYjkyNDI3YWU0MWU0NjQ5YjkzNGNhNDk1OTkxYjc4NTJiODU1In0"
+ }
+ ]
+ },
+ {
+ "id": "claim_5bdc88ea150f403aa61aa3f236bc1234",
+ "statement": "AnyStr class in tests.unit_tests.agents.any_str matches any string with optional prefix or regex pattern; enables test assertions independent of generated UUIDs; _AnyIdHumanMessage and _AnyIdToolMessage helpers set id field to AnyStr() after message creation.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/tests/unit_tests/agents/any_str.py#L1-L19",
+ "version": "repo-lines-v1:sha256:d536f467021365d28da8807ad8c4ef3398066145a4e749f8e30dab57a844857c:eyJzZWxlY3RlZExpbmVDb3VudCI6MTksImZp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ThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjowLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUifQ"
+ }
+ ]
+ },
+ {
+ "id": "claim_6b3fcc05742d4323be68e139d329b194",
+ "statement": "Agent streaming tests use stream_events(version='v3') to collect tool_calls via ToolCallTransformer projection; built-in transformers are registered by default and user transformers appended after; ToolCallStream exposes tool_name, tool_call_id, completed, error, and output_deltas fields.",
+ "evidence": [
+ {
+ "resource": "repo://libs/langchain_v1/tests/unit_tests/agents/test_agent_streaming.py#L66-L197",
+ "version": "repo-lines-v1:sha256:d39e752c14a876eab054f49d01030de26b9a7d3ff6719c38fd5ee6776163bc12:eyJzZWxlY3RlZExpbmVDb3VudCI6MTMyLCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiI1OTlkZmM2ZGMzYTM1OTJlMTg5YjUwM2FjMzE5MmEyODhlZjhlYmI4ZjExMjBlMzg0OWI4NzVkYWNlNjQzMjQyIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIwMWJhNDcxOWM4MGI2ZmU5MTFiMDkxYTdjMDUxMjRiNjRlZWVjZTk2NGUwOWMwNThlZjhmOTgwNWRhY2E1NDZiIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiI5YTgyZWJlOWVkNDA3YzNhNmJhNGIwMDM0MjkyYmFhNTJjMTFjZTVhZTI4NjEwNzQwMmRlNDc5MmVlZWNhY2ZjIiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI2OGY5OGMyOGM1NThlMzdjN2YxNjU1NGQ4YzUxMGJjM2QwMmZkNDU3ZjA0MjQ1YTIxOTVmNzYwZTYwMzdlZDIwIn0"
+ }
+ ]
+ },
+ {
+ "id": "claim_4678341ecd2b49bf80160f6591117a6d",
+ "statement": "Unit test organization mirrors source code: modules are tested by corresponding test files in parallel tests/unit_tests/ directories; conftest.py files in test directories provide fixtures automatically available to that directory and subdirectories; agents test suite exemplifies specialized domain conftest.py patterns.",
+ "evidence": [
+ {
+ "resource": "repo://libs/core/Makefile#L13-L20",
+ "version": "repo-lines-v1:sha256:ab8103f9ee7c85d9fb1c9d3d0cbe6264d1384aac292f90c74f84c77c06ed5398:eyJzZWxlY3RlZExpbmVDb3VudCI6OCwiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiMDliMzBjZTkzZjhkMmVlNmQ2NDdlYjNhN2RhYjQ0NjRiNWQ5Yjc5ZGExOTI4ZGE2MDY4MDQ3M2QyY2Y0ZTY4MSIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiYTdmYmQ4MDQxMWFjZWNkZDkxOGI4ODk4NDE3MTg3MGY5NWU4ZjE3YTZiNDA0YmU4MDY0YmE3NmJhNjc2NDk3NyIsInByZWNlZGluZ0NvbnRleHRMaW5lQ291bnQiOjMsInByZWNlZGluZ0NvbnRleHRIYXNoIjoiYjQ2M2RlMzg2ZTA3OTFhZGQ1MmUzZjZlM2EwOWYyYmY2NDhmZTQzMTMxOGUxOTE1YjdlNWRlOTlmN2E1ODQ1MyIsImZvbGxvd2luZ0NvbnRleHRMaW5lQ291bnQiOjMsImZvbGxvd2luZ0NvbnRleHRIYXNoIjoiNzgzNzQ1ZTU1YTIzYmI0MzZjYTUxMGFiMTgwNGQyODMwMjhhNTJlNzc5MjE5YmNlNzAyODRkOWY3YjEwMDcxMCJ9"
+ }
+ ]
}
],
"verification": {
"by": "openwiki/0.5.0",
- "at": "2026-09-21T08:30:16.745Z"
+ "at": "2026-09-28T08:35:20.640Z"
}
}
diff --git a/openwiki/.last-update.json b/openwiki/.last-update.json
index 429aa91332..b9a33b8b30 100644
--- a/openwiki/.last-update.json
+++ b/openwiki/.last-update.json
@@ -1,7 +1,7 @@
{
- "updatedAt": "2026-09-22T08:32:58.510Z",
+ "updatedAt": "2026-09-28T09:11:36.955Z",
"command": "update",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
"model": "claude-haiku-4-5",
"status": "complete",
"language": "en"
diff --git a/openwiki/.page-manifest.json b/openwiki/.page-manifest.json
index 5b9783e355..d4a7d1684a 100644
--- a/openwiki/.page-manifest.json
+++ b/openwiki/.page-manifest.json
@@ -2,165 +2,165 @@
"schemaVersion": 1,
"pages": {
"/openwiki/agent-execution.md": {
- "pageVersion": "sha256:6d2dd5c14c9fd39233694a1e55b4834368b448da97791dd15f15bc0543d0a4ad",
+ "pageVersion": "sha256:c36ed3bfa6acfdaf33179bd7cf4a4811864ccff80181c5c88b46227be3eacc14",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/agent-factory.md": {
- "pageVersion": "sha256:2c73027e4ac35b6bafe1b1e6da66b81ecdbdfdd7c36522eee378830a21a33af5",
+ "pageVersion": "sha256:a04138ae1db4de18f11689760a882c8412eab3e79b77dcabedd87303f75ae572",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/architecture.md": {
- "pageVersion": "sha256:4bcc27e623ef816245eaea9630b852b1c8e3d01cfb4d739ba4ec040e531d087a",
+ "pageVersion": "sha256:0ec1a52034f7d7a17bf13aa56da7bcc7d5bb40c9511a485690b6e8ce9ddbe89f",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "42beb1a0-aed2-4fc6-b6b4-a39607bfb92c",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/callbacks.md": {
- "pageVersion": "sha256:438fb8bb5d1224fb820ab31d6d0c8e16554980cf2e3e713ee995f9925142b53f",
+ "pageVersion": "sha256:08c495ccfb12ed0a79d3e0791c2a12f86cb4b7732c6de698b6b1a8bcc71b7718",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/chat-models.md": {
- "pageVersion": "sha256:5fe640d3b1fec48eebaf85f24ff73909b2f78e628131169dd37d3ea97895e8a2",
+ "pageVersion": "sha256:0cd7a2ec4f34f1d485e9a9337aa08d82714284546d8ce04609d9de1a0f58d76e",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/ci-workflows.md": {
- "pageVersion": "sha256:99120eb4274fdb568b343816c5a26e10c7e18e8f7307515fd2c70607b21f5f12",
+ "pageVersion": "sha256:584d7590d927cbab7fd482a36eefe6d6e23c985471086ac9d270b7e2506ebb96",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/composability.md": {
- "pageVersion": "sha256:b1feac445c4494398af24cf9d3767e68ffd5c1d3882b408e3e3c515d1a5f906e",
+ "pageVersion": "sha256:08b16574d155fea41f84c89a32fa0f8c6c34fcf5a6f640ab81d2d0dd5f796884",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/dev-commands.md": {
- "pageVersion": "sha256:32352b68e37cee65505e27ca047f9eae0c2eafb8dac60d1409c4d33b563955f8",
+ "pageVersion": "sha256:0ec51ab0fa47477f5eb49c0577be6cd4558b283f0a678cd572dc0f65f65db57a",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/integration-tests.md": {
- "pageVersion": "sha256:0ead306fee0715430d8afdedcbb61944f51e57df48168d9394fc2c03d21f7c45",
+ "pageVersion": "sha256:7a27a082b6fe0666d7a3e17b00aac82017d7095d7cc66a084355eb8c5f47b347",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/mcp-integration.md": {
- "pageVersion": "sha256:87c4080ea30d8947623f0ded2435da98571f131a134392f5faece5d6fbfcd460",
+ "pageVersion": "sha256:aa9e35da19127c337d9ca84bffab4b5b80d9cc78063469ee9a65827d4867d36c",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/messages.md": {
- "pageVersion": "sha256:0a36ceb2f165da2e8002795df9b6130b952184dc8b95bb5a8f79c888e4c3ab73",
+ "pageVersion": "sha256:9a300b45af58ddf5b9c8a669d194b5ea592a85e27837e6b2066229dd7d924556",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/middleware.md": {
- "pageVersion": "sha256:59f149479aecc8ce5f7e0d000a58fe4d061773c476c8a2f2a0264d6fd5ddf814",
+ "pageVersion": "sha256:292ef3af03c17963611499165f6045b27db7700b522fb3d608fb027272c23f40",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/model-initialization.md": {
- "pageVersion": "sha256:a2984365361bea3650236ef43c48d193ac444b15257fef3ea6110d04c3580210",
+ "pageVersion": "sha256:bd811dcc6b70cbe1b135d1ae06d5196272d0742d1df5c7491d4adfa89cf21a9a",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/openai-provider.md": {
- "pageVersion": "sha256:cd334ced3b220f64f277df1025ee057b9e5df7621a6a1e720fb642adc48c8e88",
+ "pageVersion": "sha256:05e90b9de166a5a7213cee462a99c10236b8c8eba605f2b5a856779baad552a6",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "42beb1a0-aed2-4fc6-b6b4-a39607bfb92c",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/partner-pattern.md": {
- "pageVersion": "sha256:0d64f788468e7a30fbec4cc1cb3002a5e5e8af6af663410dcf47647656454d30",
+ "pageVersion": "sha256:b5987885a9e21b5c669db5477471ac853eb2514d5dba1d3d3d716f04037745ff",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "42beb1a0-aed2-4fc6-b6b4-a39607bfb92c",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/prompts.md": {
- "pageVersion": "sha256:39306f0c76011ccf01aff4ac460b8d8856130f40f1e6fcdbd46b70dbadcc2ea2",
+ "pageVersion": "sha256:479c5428fb5c4d5a6a9cb84f2f11bf8a578e6af0b1f5e1208f47fa98d0f563df",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/quickstart.md": {
- "pageVersion": "sha256:858ad510ec77dd5af950784893376af6f3618fb4bc2c494e1884931e0d0f78c5",
+ "pageVersion": "sha256:a1b4253867586e85c529d4961fc134ccff5dddf2074dfef2da93497018b5fe1f",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "42beb1a0-aed2-4fc6-b6b4-a39607bfb92c",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/runnables.md": {
- "pageVersion": "sha256:43b55d032e5cecd3932f068ab29da7e40eecc0b82ef05698892de9e03d0d0b1a",
+ "pageVersion": "sha256:63c281f9b8fd8ffc2ad68e300601c05fb591f640021b20b792942a4702f0f776",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/source-map.md": {
- "pageVersion": "sha256:7147252f9ec42f2a3fbb825bf918edec111c30d11e7c9c2e161ba8a4dc68942e",
+ "pageVersion": "sha256:f5b86fe09bd49f31bc1929d54555fd33fa711f407d39ba3e6f9868c0dfb6d2f8",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "42beb1a0-aed2-4fc6-b6b4-a39607bfb92c",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/streaming.md": {
- "pageVersion": "sha256:ec819a268f32b4dad0eea63143f3c3fcc73f653ada7bfcc8e8403918648926a7",
+ "pageVersion": "sha256:48ea385d8432c2a0ff1d100837e0ca311a3ea341fe2963834d7c8eec9590d019",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/structured-output.md": {
- "pageVersion": "sha256:3fc2f1b0796f339129190c568b93de04bf6a248be8c1b4328a0030d5264642da",
+ "pageVersion": "sha256:f21e3e28f4b0f6a2e1676685bc07733d58f0c614276dc01afd01919fa0c76167",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/tools.md": {
- "pageVersion": "sha256:f96ced3ef3413e627abd981c0b444191037c10e2b3ddb823115c03be7ac10618",
+ "pageVersion": "sha256:6d374dc19fc3e275ddb3c6c5f639ddf83e7304cc9f64e70f5096f9a137f28e6e",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
},
"/openwiki/unit-tests.md": {
- "pageVersion": "sha256:ec2b85809adb37d687222c6c15a81c5fba81b7c81ad0de26ad5250a61798fbd9",
+ "pageVersion": "sha256:0b30f28f261bdfcaa70879e3939ef3edfa29912261c6ab720c39bd340ea91064",
"completedBy": "openwiki/0.5.0",
- "completedRunId": "b3b076e4-223a-43d1-ac8c-958e47dcce50",
- "gitHead": "9e4ea7a3495992c02a79de6fa5788e028b03df11",
- "sourceFingerprint": "sha256:fcf377c645402ec15df777e711a9634a4c0a1cac2ec0791da74fc9406df78122"
+ "completedRunId": "ba665f2e-3417-4c76-8a2d-52fa91daba8a",
+ "gitHead": "d7508191bcf2af823ad8a168a15772710de5592b",
+ "sourceFingerprint": "sha256:5c48e0b1b0fb8144588738ce379ecb12aaa7798424bbaae823f7d66d6a72452a"
}
}
}
diff --git a/openwiki/agent-execution.md b/openwiki/agent-execution.md
index 5a33721b20..a0fca146cc 100644
--- a/openwiki/agent-execution.md
+++ b/openwiki/agent-execution.md
@@ -5,7 +5,7 @@ description: Traces the runtime lifecycle of an agent from user input through mo
tags: [agent-execution, control-flow, state-machine, loop-control, tool-dispatch, middleware, langchain]
verified:
- by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+ at: 2026-09-28T08:35:20.640Z
sources:
- id: openwiki-source-71e882e1ac9757ea8e959a7c
resource: repo://libs/langchain_v1/langchain/agents/factory.py
diff --git a/openwiki/agent-factory.md b/openwiki/agent-factory.md
index 3604c12dde..a236c388df 100644
--- a/openwiki/agent-factory.md
+++ b/openwiki/agent-factory.md
@@ -3,9 +3,6 @@ type: "Reference"
title: "Agent Factory and create_agent"
description: "The agent factory constructs state machines that orchestrate conversation flow between a language model, tool execution, and middleware layers. The create_agent function handles tool binding, structured output, state schema resolution, and graph compilation."
tags: [agents, factory, state-machine, middleware, langgraph]
-verified:
- - by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
sources:
- id: openwiki-source-71e882e1ac9757ea8e959a7c
resource: repo://libs/langchain_v1/langchain/agents/factory.py
@@ -16,6 +13,9 @@ sources:
- id: openwiki-source-03e8ca0eebe37feda8566793
resource: repo://libs/langchain_v1/langchain/agents/middleware/types.py
generated: { by: "openwiki/0.5.0", at: "2026-09-21T08:30:16.745Z" }
+verified:
+ - by: openwiki/0.5.0
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
diff --git a/openwiki/architecture.md b/openwiki/architecture.md
index 8db7a13f6b..7179a0f4d3 100644
--- a/openwiki/architecture.md
+++ b/openwiki/architecture.md
@@ -34,10 +34,10 @@ sources:
resource: repo://libs/partners/README.md
- id: openwiki-source-7da6afe7fe64c6589cf1fed0
resource: repo://libs/README.md
-generated: { by: "openwiki/0.5.0", at: "2026-09-22T08:27:06.345Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
verified:
- by: openwiki/0.5.0
- at: 2026-09-22T08:27:06.345Z
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
@@ -61,7 +61,7 @@ graph TB
User["User Applications"]
User -->|imports from| LangChain["langchain<br/>(Orchestration & Agents)<br/>v1.4.2"]
- User -->|may use directly| Core["langchain-core<br/>(Base Abstractions)<br/>v1.6.4"]
+ User -->|may use directly| Core["langchain-core<br/>(Base Abstractions)<br/>v1.6.5"]
LangChain -->|depends on| Core
LangChain -->|depends on| LangGraph["LangGraph<br/>(State Graph Engine)"]
@@ -292,9 +292,9 @@ The core layer (langchain-core) is intentionally minimal and stable. Orchestrati
## Versioning and Release Policy
-- **langchain-core** (`v1.6.4`): Stable base abstractions. Major version bumps are rare and announced in advance. Deprecations carry multiple minor versions of notice. This is the "least-moving" part of the ecosystem.
+- **langchain-core** (`v1.6.5`): Stable base abstractions. Major version bumps are rare and announced in advance. Deprecations carry multiple minor versions of notice. This is the "least-moving" part of the ecosystem.
-- **langchain** (`v1.4.2`): Main user-facing package. Minor versions may add new agent patterns, middleware types, or orchestration improvements. Patch versions fix bugs. Requires specific langchain-core version (e.g., `>=1.6.4,<2.0.0`).
+- **langchain** (`v1.4.2`): Main user-facing package. Minor versions may add new agent patterns, middleware types, or orchestration improvements. Patch versions fix bugs. Requires specific langchain-core version (e.g., `>=1.6.3,<2.0.0`).
- **langchain-classic** (`v1.0.8`): Legacy package for backward compatibility. Provides old chains, `langchain-community` re-exports, and deprecated APIs. New projects should use `langchain` instead.
diff --git a/openwiki/callbacks.md b/openwiki/callbacks.md
index ed45c6d5b8..8b19786f28 100644
--- a/openwiki/callbacks.md
+++ b/openwiki/callbacks.md
@@ -5,7 +5,7 @@ description: "Document the callback handler architecture, integration with runna
tags: ["callbacks", "observability", "handlers", "tracing", "streaming", "langsmith"]
verified:
- by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+ at: 2026-09-28T08:35:20.640Z
sources:
- id: openwiki-source-c9313cf42f0120d86b20245f
resource: repo://libs/core/langchain_core/callbacks/base.py
@@ -23,7 +23,7 @@ sources:
resource: repo://libs/core/langchain_core/runnables/config.py
- id: openwiki-source-bfd8b1aa6ad00852a2e99762
resource: repo://libs/core/langchain_core/tracers/context.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-21T08:30:16.745Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
---
@@ -445,6 +445,56 @@ with trace_as_chain_group("data_processing", tags=["batch"]) as manager:
The manager tracks completion state and calls parent's `on_chain_end` or `on_chain_error` when exiting.
+## Custom Handler Implementation
+
+### BaseCallbackHandler Subclass Pattern
+
+Implement custom handlers by subclassing `BaseCallbackHandler` and overriding relevant event methods:
+
+```python
+from langchain_core.callbacks import BaseCallbackHandler
+from typing import Any
+
+class CustomMetricsHandler(BaseCallbackHandler):
+ """Custom handler for collecting application metrics."""
+
+ def __init__(self):
+ self.metrics = {}
+ self.run_inline = True # Execute in caller's context
+
+ @property
+ def ignore_llm(self) -> bool:
+ """Skip LLM events for this handler."""
+ return False
+
+ def on_llm_start(self, serialized: dict[str, Any], prompts: list[str],
+ run_id, tags=None, metadata=None, **kwargs: Any) -> None:
+ """Called when LLM starts."""
+ self.metrics[str(run_id)] = {"start_time": time.time(), "prompt": prompts[0]}
+
+ def on_llm_end(self, response, run_id, **kwargs: Any) -> None:
+ """Called when LLM completes."""
+ if str(run_id) in self.metrics:
+ self.metrics[str(run_id)]["end_time"] = time.time()
+ self.metrics[str(run_id)]["duration"] = (
+ self.metrics[str(run_id)]["end_time"] -
+ self.metrics[str(run_id)]["start_time"]
+ )
+
+ def on_llm_error(self, error: BaseException, run_id, **kwargs: Any) -> None:
+ """Called when LLM errors."""
+ if str(run_id) in self.metrics:
+ self.metrics[str(run_id)]["error"] = str(error)
+```
+
+Key patterns:
+
+1. **Set `run_inline`** to control execution context (sync vs async thread pool)
+2. **Implement `ignore_*` properties** to skip irrelevant event types
+3. **Handle optional parameters** with `**kwargs` for forward compatibility
+4. **Preserve run_id for hierarchy** when aggregating or correlating events
+5. **Use metadata/tags** passed in kwargs for context and filtering
+
## Best Practices
1. **Use context managers for file handlers**: FileCallbackHandler should be used with `with` statement to ensure proper cleanup.
diff --git a/openwiki/chat-models.md b/openwiki/chat-models.md
index 22fd0018f3..6d8ba9fb7a 100644
--- a/openwiki/chat-models.md
+++ b/openwiki/chat-models.md
@@ -1,11 +1,11 @@
---
type: "Architecture"
title: "Chat Model Interface and Lifecycle"
-description: "Document BaseChatModel protocol, input/output handling, streaming, and integration points with callbacks and model profiling."
-tags: [chat-models, llm-integration, streaming, structured-output, model-capabilities]
+description: "Document BaseChatModel protocol, input/output handling, streaming, and integration points with callbacks and model profiling. Covers the init_chat_model() factory, provider registry, and model instantiation."
+tags: [chat-models, llm-integration, streaming, structured-output, model-capabilities, model-initialization]
verified:
- by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+ at: 2026-09-28T08:35:20.640Z
sources:
- id: openwiki-source-132f3183693cd9cf79d029a5
resource: repo://libs/core/langchain_core/language_models/base.py
@@ -15,7 +15,9 @@ sources:
resource: repo://libs/core/langchain_core/language_models/chat_models.py
- id: openwiki-source-a0aef6917b7e1f4a06e6db95
resource: repo://libs/core/langchain_core/language_models/model_profile.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }
+ - id: openwiki-source-c479d4fffee5cf62576699e4
+ resource: repo://libs/langchain_v1/langchain/chat_models/base.py
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
---
## Overview
@@ -24,6 +26,8 @@ The **chat model system** is the core interface for integrating large language m
Chat models convert conversational message history into AI responses, supporting both simple generation (`invoke`) and streaming output (`stream`). The framework unifies sync/async patterns, handles caching transparently, routes to streaming or non-streaming backends based on configuration and attached callbacks, and provides extension points for custom behavior via method overrides.
+The `init_chat_model()` factory provides a unified interface to instantiate any supported chat model by provider name (e.g., `'openai:gpt-4o'`), with automatic provider detection, dependency management, and fallback strategies.
+
## Core Interface: BaseChatModel
**Location**: `repo://libs/core/langchain_core/language_models/chat_models.py#L284-L2400`
@@ -405,6 +409,195 @@ class ModelProfile(TypedDict, total=False):
Partner packages (e.g., `langchain-openai`) override `_resolve_model_profile()` to load model-specific metadata from their own profile data. The base validator `_set_model_profile` (Pydantic mode="after") automatically populates the field if not explicitly set.
+## Model Initialization: init_chat_model()
+
+**Location**: `repo://libs/langchain_v1/langchain/chat_models/base.py#L197-L533`
+
+`init_chat_model()` is a unified factory function that instantiates any supported chat model by provider name, with automatic dependency management, provider inference, and fallback strategies.
+
+### Basic Usage
+
+```python
+from langchain.chat_models import init_chat_model
+
+# Fixed model with explicit provider
+model = init_chat_model("openai:gpt-4o", temperature=0.7)
+
+# Bare model name with inferred provider
+model = init_chat_model("claude-3-sonnet", api_key="...")
+
+# Configurable model (deferred instantiation)
+configurable = init_chat_model(configurable_fields=("model", "model_provider"))
+result = configurable.invoke("Hello", config={"configurable": {"model": "gpt-4o"}})
+```
+
+### Function Signature
+
+```python
+def init_chat_model(
+ model: str | None = None,
+ *,
+ model_provider: str | None = None,
+ configurable_fields: Literal["any"] | list[str] | tuple[str, ...] | None = None,
+ config_prefix: str | None = None,
+ **kwargs: Any,
+) -> BaseChatModel | _ConfigurableModel
+```
+
+**Parameters**:
+
+- **`model`**: Model name string with optional provider prefix (e.g., `'openai:gpt-4o'` or bare `'gpt-4o'`). If `None` and `configurable_fields` is unset, defaults to configurable mode.
+- **`model_provider`**: Provider name if not inferred from `model` prefix. Examples: `'openai'`, `'anthropic'`, `'bedrock'`, `'google_vertexai'`.
+- **`configurable_fields`**: Which parameters are runtime-configurable:
+ - `None`: Fixed model (default if `model` is specified)
+ - `"any"`: All fields configurable (security risk with untrusted configs)
+ - `list[str] | tuple[str, ...]`: Specified fields only (e.g., `["model", "temperature"]`)
+ - Default if `model` is `None`: `("model", "model_provider")`
+- **`config_prefix`**: Prefix for config keys (e.g., `"llm"` → `config["configurable"]["llm_model"]`)
+- **`**kwargs`**: Model-specific parameters (`temperature`, `max_tokens`, `api_key`, `base_url`, etc.)
+
+**Returns**:
+
+- `BaseChatModel`: A ready-to-use chat model if `model` is specified and `configurable_fields` is `None`
+- `_ConfigurableModel`: A deferred-initialization runnable if fields are configurable; calls `_init_chat_model_helper()` at invoke time
+
+### Provider Inference
+
+When `model` is specified without a provider prefix, `_attempt_infer_model_provider()` guesses the provider from model name patterns:
+
+| Pattern | Provider | Example |
+|---------|----------|---------|
+| `gpt-...`, `o1...`, `o3...` | `openai` | `gpt-4o`, `o1-pro` |
+| `claude...` | `anthropic` | `claude-3-sonnet` |
+| `command...` | `cohere` | `command-light` |
+| `accounts/fireworks...` | `fireworks` | `accounts/fireworks/models/mixtral-8x7b` |
+| `mistral...`, `mixtral...` | `mistralai` | `mistral-large` |
+| `deepseek...` | `deepseek` | `deepseek-chat` |
+| `grok...` | `xai` | `grok-2` |
+| `sonar...` | `perplexity` | `sonar-pro` |
+| `solar...` | `upstage` | `solar-1-mini` |
+| `gemini...` | `google_vertexai` (default) | `gemini-2.0-flash` |
+| `amazon...`, `anthropic...`, `meta...` | `bedrock` | `amazon.nova-pro` |
+
+Prefer explicit provider prefix form (e.g., `'openai:gpt-4o'`) when possible to avoid inference ambiguity.
+
+### Built-in Provider Registry
+
+**Location**: `repo://libs/langchain_v1/langchain/chat_models/base.py#L56-L99`
+
+The `_BUILTIN_PROVIDERS` dict maps provider names to their import paths and instantiation functions:
+
+```python
+_BUILTIN_PROVIDERS: dict[str, tuple[str, str, Callable[..., BaseChatModel]]] = {
+ "anthropic": ("langchain_anthropic", "ChatAnthropic", _call),
+ "anthropic_bedrock": ("langchain_aws", "ChatAnthropicBedrock", _call),
+ "azure_ai": ("langchain_azure_ai.chat_models", "AzureAIOpenAIApiChatModel", _call),
+ "azure_openai": ("langchain_openai", "AzureChatOpenAI", _call),
+ "baseten": ("langchain_baseten", "ChatBaseten", _call),
+ "bedrock": ("langchain_aws", "ChatBedrock", _call),
+ "bedrock_converse": ("langchain_aws", "ChatBedrockConverse", _call),
+ "bedrock_mantle_anthropic": ("langchain_aws", "ChatAnthropicMantle", _call),
+ "bedrock_mantle_openai": ("langchain_aws", "ChatOpenAIMantle", _call),
+ "cohere": ("langchain_cohere", "ChatCohere", _call),
+ "deepseek": ("langchain_deepseek", "ChatDeepSeek", _call),
+ "fireworks": ("langchain_fireworks", "ChatFireworks", _call),
+ "google_anthropic_vertex": ("langchain_google_vertexai.model_garden", "ChatAnthropicVertex", _call),
+ "google_genai": ("langchain_google_genai", "ChatGoogleGenerativeAI", _call),
+ "google_vertexai": ("langchain_google_vertexai", "ChatVertexAI", _call),
+ "groq": ("langchain_groq", "ChatGroq", _call),
+ "huggingface": ("langchain_huggingface", "ChatHuggingFace", lambda cls, model, **kwargs: cls.from_model_id(...)),
+ "ibm": ("langchain_ibm", "ChatWatsonx", lambda cls, model, **kwargs: cls(model_id=model, ...)),
+ "langsmith": ("langchain_openai", "ChatOpenAI", _init_langsmith),
+ "litellm": ("langchain_litellm", "ChatLiteLLM", _call),
+ "meta": ("langchain_meta", "ChatMetaModel", _call),
+ "mistralai": ("langchain_mistralai", "ChatMistralAI", _call),
+ "nvidia": ("langchain_nvidia_ai_endpoints", "ChatNVIDIA", _call),
+ "ollama": ("langchain_ollama", "ChatOllama", _call),
+ "openai": ("langchain_openai", "ChatOpenAI", _call),
+ "openrouter": ("langchain_openrouter", "ChatOpenRouter", _call),
+ "perplexity": ("langchain_perplexity", "ChatPerplexity", _call),
+ "together": ("langchain_together", "ChatTogether", _call),
+ "upstage": ("langchain_upstage", "ChatUpstage", _call),
+ "xai": ("langchain_xai", "ChatXAI", _call),
+}
+```
+
+Each entry is a tuple: `(module_path, class_name, creator_func)`:
+- **`module_path`**: Fully qualified Python module (e.g., `'langchain_openai'` or `'langchain_azure_ai.chat_models'`)
+- **`class_name`**: Name of the model class to instantiate
+- **`creator_func`**: Callable that accepts `cls` and model kwargs and returns a `BaseChatModel` instance (usually `_call` or a custom wrapper)
+
+### Dynamic Loading and Error Handling
+
+**`_get_chat_model_creator()`** (`repo://libs/langchain_v1/langchain/chat_models/base.py#L152-L193`) retrieves and caches the creator function:
+
+1. Validates that `provider` is in `_BUILTIN_PROVIDERS`
+2. Imports the module via `_import_module()`
+3. Retrieves the class from the module
+4. Returns a partial function bound to the class
+5. Caches result to avoid repeated imports
+
+**`_import_module()`** wraps `importlib.import_module()` with helpful error messages:
+
+- If import fails: Raises `ImportError` with suggestion to `pip install <package>`
+- Extracts package name from module path (e.g., `'langchain_openai'` → `'langchain-openai'`)
+- Message format: `"Initializing {class} requires the {pkg} package. Please install it with 'pip install {pkg}'"`
+
+**Fallback for backwards compatibility**:
+- `ollama` provider attempts `langchain-ollama` first, then falls back to `langchain-community` for legacy users
+- Other providers raise immediately if their package is not installed
+
+### Configurable Models
+
+When `configurable_fields` is specified, `init_chat_model()` returns a `_ConfigurableModel` instance that defers model instantiation:
+
+```python
+# Fixed model instantiated immediately
+fixed = init_chat_model("gpt-4o", temperature=0.5)
+
+# Configurable model deferred until invoke
+configurable = init_chat_model(
+ "gpt-4o",
+ configurable_fields=("temperature", "max_tokens"),
+ config_prefix="llm"
+)
+
+# Actual instantiation happens here with runtime config
+result = configurable.invoke(
+ "Hello",
+ config={
+ "configurable": {
+ "llm_temperature": 0.7, # Override default
+ "llm_max_tokens": 100,
+ }
+ }
+)
+```
+
+`_ConfigurableModel` implements:
+- **`invoke()`, `ainvoke()`, `stream()`, `astream()`**: Call `_model(config)` to instantiate the underlying model, then delegate
+- **`batch()`, `abatch()`**: Use underlying model's batch if single config, else use Runnable.batch (parallelized)
+- **Declarative methods**: `bind_tools()`, `with_structured_output()` queue operations and apply them after model instantiation
+- **Config merging**: `with_config()` applies per-invocation config and returns a new `_ConfigurableModel` with merged defaults
+
+### Model-Specific Initialization Wrappers
+
+Some providers require custom instantiation:
+
+- **`huggingface`**: Uses `ChatHuggingFace.from_model_id(model_id=model, **kwargs)` instead of `__init__`
+- **`ibm`**: Uses `ChatWatsonx(model_id=model, **kwargs)` (parameter name differs from standard `model`)
+- **`langsmith`**: Uses `_init_langsmith()` wrapper that applies LangSmith gateway config and sets `use_responses_api=True`
+
+### Error Handling and Fallback Strategies
+
+| Scenario | Behavior | Recovery |
+|----------|----------|----------|
+| **Provider not in registry** | Raises `ValueError` with list of supported providers | Pass `model_provider` explicitly if using an unlisted provider |
+| **Module import fails** | Raises `ImportError` with `pip install` suggestion | Install the required integration package |
+| **Class not found in module** | Raises `AttributeError` (implicit) | Verify provider is correctly registered |
+| **Invalid kwargs** | Raises `TypeError` or `ValidationError` from model class | Check model-specific parameter names and types |
+| **Missing API credentials** | Model init succeeds; call fails at invoke time | Set env vars or pass credentials in kwargs |
+
## Configuration and State
### Core Fields
@@ -437,6 +630,33 @@ class BaseChatModel(BaseLanguageModel[AIMessage], ABC):
- **`_llm_type`** (property, abstract): Unique model type identifier (e.g., `"openai"`, `"anthropic"`)
- **`_identifying_params`** (property, optional): Dict of model configuration for tracing (e.g., `{"model": "gpt-4", "temperature": 0.7}`)
+## Token Counting
+
+**Location**: `repo://libs/core/langchain_core/language_models/base.py#L434-L463`
+
+`BaseLanguageModel` provides token counting via `get_token_ids()` and `get_num_tokens()`:
+
+```python
+def get_token_ids(self, text: str) -> list[int]:
+ """Return token IDs for the given text."""
+ if self.custom_get_token_ids is not None:
+ return self.custom_get_token_ids(text)
+ return _get_token_ids_default_method(text) # GPT-2 fallback
+
+def get_num_tokens(self, text: str) -> int:
+ """Return token count for the given text."""
+ return len(self.get_token_ids(text))
+```
+
+**Default behavior**:
+- Uses GPT-2 tokenizer as fallback (requires `transformers` package)
+- Warns once that counts may be inaccurate for non-GPT-2 models
+- Custom implementations can override `custom_get_token_ids` field for model-specific accuracy
+
+**Partner package support**:
+- Implementations (e.g., `ChatOpenAI`) override `get_token_ids()` to use native tokenizers
+- Ensures accurate counts for pricing and context-window management
+
## Implementation Requirements
Subclasses must implement:
@@ -451,18 +671,6 @@ Subclasses must implement:
| `_astream()` | Native async streaming | ✗ | Optional; defaults to running `_stream` in executor |
| `bind_tools()` | Tool binding for structured output | ✗ | Required only if `with_structured_output()` is needed |
-## Model Initialization
-
-**Location**: `repo://libs/langchain_v1/langchain/chat_models/base.py` (v1 compat) and `langchain_core` partner packages
-
-Models are instantiated via:
-
-1. **Direct instantiation**: `ChatOpenAI(model="gpt-4", temperature=0)`
-2. **Factory function `init_chat_model()`**: Auto-detects provider and imports the class dynamically
-3. **Partner package exports**: Each provider (e.g., `langchain-openai`) exports a concrete model class
-
-The `init_chat_model()` function accepts a model name string (e.g., `"gpt-4"`, `"claude-3-sonnet"`) and optional `model_provider` to instantiate the correct class without explicit imports.
-
## Example: Custom Chat Model
```python
@@ -576,6 +784,33 @@ config = {"callbacks": [MyStreamingHandler()]}
model_with_fallback.invoke("Prompt", config=config)
```
+### Using init_chat_model() in Agents
+
+```python
+from langchain.chat_models import init_chat_model
+from langchain.agents import create_tool_calling_agent
+from langchain.agents import AgentExecutor
+
+# Create a configurable model that can be swapped at runtime
+llm = init_chat_model(
+ configurable_fields=("model", "model_provider"),
+ temperature=0.7
+)
+
+# Build agent with the model
+agent = create_tool_calling_agent(llm, tools, prompt)
+executor = AgentExecutor(agent=agent, tools=tools)
+
+# Default with OpenAI
+result = executor.invoke({"input": "What is the weather?"})
+
+# Switch to Anthropic at runtime
+result = executor.invoke(
+ {"input": "What is the weather?"},
+ config={"configurable": {"model": "claude-3-sonnet"}}
+)
+```
+
## Key Invariants and Guarantees
1. **Input normalization**: All input forms (string, message list, PromptValue) are normalized to messages before `_generate`/`_stream` are called.
@@ -593,3 +828,7 @@ model_with_fallback.invoke("Prompt", config=config)
7. **Response metadata**: Each generation accumulates metadata (tokens, finish_reason, etc.) in `message.response_metadata`.
8. **Error handling**: Exceptions during generation trigger `on_llm_error` and propagate to the caller; error metadata is extracted from HTTP responses if available.
+
+9. **Provider isolation**: Each provider integration is independently installed and loaded; missing packages are reported with clear `pip install` instructions.
+
+10. **Configurable deferred binding**: Declarative methods (`bind_tools`, `with_structured_output`) on configurable models queue operations and apply them at instantiation time, ensuring consistent behavior across runtime model swaps.
diff --git a/openwiki/ci-workflows.md b/openwiki/ci-workflows.md
index b45ddd44ad..c20acc150b 100644
--- a/openwiki/ci-workflows.md
+++ b/openwiki/ci-workflows.md
@@ -1,7 +1,11 @@
---
type: "Reference"
title: "CI/CD Workflows: GitHub Actions and Release Process"
-openwiki_generated: true
+description: "LangChain's GitHub Actions-based CI/CD system automating testing, linting, and release management across a monorepo with intelligent change detection, parallel matrix testing, and strict release gates."
+tags: [ci-cd, github-actions, testing, linting, release, pypi, monorepo, automation]
+verified:
+ - by: openwiki/0.5.0
+ at: 2026-09-28T08:35:20.640Z
sources:
- id: openwiki-source-34e57b5a3a0c875639ab72a7
resource: repo://.github/scripts/check_diff.py
@@ -27,13 +31,9 @@ sources:
resource: repo://.github/workflows/pr_labeler.yml
- id: openwiki-source-12805fbf767dc2a3e238645e
resource: repo://.github/workflows/pr_lint.yml
-generated: { by: "openwiki/0.5.0", at: "2026-09-21T08:30:16.745Z" }
-verified:
- - by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
---
-
# CI/CD Workflows: GitHub Actions and Release Process
LangChain employs a sophisticated CI/CD system built on GitHub Actions that automates testing, linting, quality checks, and release management across a monorepo structure. The system emphasizes efficiency through intelligent change detection, parallel matrix testing, and strict release gates.
@@ -60,67 +60,72 @@ The workflow begins with a change detection phase:
4. Generates separate test matrices for linting, unit tests, Pydantic compatibility tests, integration test compilation, VCR cassette tests, and extended test suites
5. Outputs are passed as JSON to downstream jobs via matrix strategy
-This detection ensures only affected packages are tested, optimizing CI runtime.
+This detection ensures only affected packages are tested, optimizing CI runtime. The script skips the `libs/standard-tests` directory in enumeration and treats certain partners (e.g., huggingface) as CI-unstable, removing them from dependent chains while allowing direct edits to be tested.
### Linting Pipeline (`_lint.yml`)
Runs on affected packages with Python 3.11 (configurable):
-- **Ruff analysis**: Code style, import sorting, and rule enforcement with inline GitHub annotations
+- **Ruff analysis**: Code style, import sorting, and rule enforcement with inline GitHub annotations (via `RUFF_OUTPUT_FORMAT: github`)
- **MyPy type checking**: Static type verification
- **Markdown linting**: Documentation quality checks (via `.markdownlint.json`)
-Tools are sourced from dependency groups: `lint` and `typing`. The workflow installs both package code and test code dependencies, running `make lint_package` and `make lint_tests` targets.
+Tools are sourced from dependency groups: `lint` and `typing`. The workflow installs both package code and test code dependencies, running `make lint_package` and `make lint_tests` targets. Partner packages receive separate test dependency installation including integration test dependencies.
### Unit Testing (`_test.yml`)
Runs matrix tests across Python versions with dependency constraint verification:
**Matrix dimensions**:
-- Python 3.10 through 3.14 (per-package configuration)
+- Python 3.10, 3.11, 3.12, 3.13, 3.14 for `libs/core`
+- Python 3.10 and 3.14 for other packages
- Current locked dependencies (from `uv.lock`)
- Minimum supported dependency versions
**Two-phase testing**:
-1. **Current dependencies**: Runs full test suite against versions in `uv.lock`
-2. **Minimum dependencies**: Calculates minimum versions from `pyproject.toml` constraints, downgrades via pip, and reruns tests to ensure compatibility
+1. **Current dependencies**: Runs full test suite against versions in `uv.lock` via `make test PYTEST_EXTRA=-q`
+2. **Minimum dependencies**: Calculates minimum versions from `pyproject.toml` constraints via `get_min_versions.py` script, downgrades via pip, and reruns tests with `make tests PYTEST_EXTRA=-q` to ensure compatibility
-The workflow uses `make test PYTEST_EXTRA=-q` and `make tests PYTEST_EXTRA=-q` targets, and verifies the working directory remains clean (no untracked generated files).
+The workflow verifies the working directory remains clean (no untracked generated files) after testing.
### Pydantic Compatibility Testing (`_test_pydantic.yml`)
-Tests affected packages against multiple Pydantic versions (e.g., v1 and v2 compatibility):
+Tests affected packages against configurable Pydantic versions (e.g., v2.0, v2.1, v2.2):
- Triggered when Pydantic version constraints or dependent code changes
-- Configurable per-package via `pyproject.toml`
-- Runs matrix over specified Pydantic versions
+- Determines test matrix by querying `uv.lock` for max Pydantic version and `pyproject.toml` for min, across both core and target packages
+- Runs `make test` against each Pydantic version
+- Uses Python 3.12 by default with override support
### VCR Cassette Tests (`_test_vcr.yml`)
Validates integration tests backed by recorded HTTP cassettes:
-- Runs in playback-only mode (no API credentials required)
+- Runs in playback-only mode with fake credentials (no real API keys required)
- Detects stale cassettes from test input changes without re-recording
+- Executes `make test_vcr` target
- Enables fast, repeatable integration test feedback
-Only triggered for packages with VCR cassettes (currently `libs/partners/openai`).
+Only triggered for packages with VCR cassettes (currently `libs/partners/openai`), as tracked in the `VCR_PACKAGES` set within `check_diff.py`.
### Integration Test Compilation (`_compile_integration_test.yml`)
Performs shallow integration test validation:
-- Compiles test modules without executing them
+- Compiles test modules without executing them via `pytest -m compile tests/integration_tests`
- Catches import errors and obvious syntax issues
- Provides quick feedback loop without running expensive external API calls
+- Installs both test and integration test dependency groups
### Extended Test Suites
For packages defining `extended_testing_deps.txt`, runs additional tests:
-- Installs extra dependencies beyond standard test group
+- Installs extra dependencies beyond standard test group via the file
- Executes `make extended_tests` target
- Allows performance benchmarks, stress tests, or heavy-weight validations
+- Located in the `extended-tests` job within `check_diffs.yml`
### Release Option Validation
@@ -136,10 +141,10 @@ The release workflow is manually triggered via GitHub Actions UI (or can be call
### Release Modes & Invocation
**Manual dispatch** (`workflow_dispatch`):
-- Dropdown selection of package to release (core, langchain, langchain_v1, text-splitters, standard-tests, model-profiles, or partner packages)
+- Dropdown selection of package to release (core, langchain, langchain_v1, text-splitters, standard-tests, model-profiles, or 17+ partner packages)
- Manual version entry (default `0.1.0`)
- Optional override to full path (e.g., `libs/partners/partner-xyz`)
-- Dangerous flags: `dangerous-nonmaster-release`, `allow-prereleases`, `skip-prior-published-package-checks`
+- Dangerous flags: `dangerous-nonmaster-release` (hotfixes), `allow-prereleases`, `skip-prior-published-package-checks`
**Reusable workflow** (`workflow_call`):
- Accepts `working-directory`, `release-version`, and safety bypass flags
@@ -149,8 +154,8 @@ The release workflow is manually triggered via GitHub Actions UI (or can be call
**Job: `build`** (isolated permissions for security):
-1. **Version verification**: Checks `pyproject.toml` version against input, fails if mismatch
-2. **PyPI availability check**: Queries PyPI to ensure version not already published (PEP 440 normalization applied)
+1. **Version verification**: Extracts version from `pyproject.toml` and compares against input using PEP 440 normalization (treating `0.1.0-rc1` and `0.1.0rc1` as equivalent); fails if mismatch
+2. **PyPI availability check**: Queries `https://pypi.org/pypi/{pkg}/{version}/json` to ensure version not already published; fails closed if PyPI is unreachable or returns unexpected status
3. **Build**: Runs `uv build` to create wheel and sdist distributions
4. **Artifact upload**: Stores `dist/` directory for downstream jobs
@@ -161,20 +166,21 @@ Security rationale: Separates build (no credentials) from publishing (trusted pu
**Job: `release-notes`**:
1. **Tag detection**: Finds previous release tag via git history
- - For pre-releases: Matches base version; falls back to latest release
+ - For pre-releases (contains hyphen): Matches base version; falls back to latest release tag
- For stable releases: Searches for previous patch version; falls back to latest
+ - First release: Uses full commit history from git root
2. **Changelog extraction**: Runs `git log --format="%s" <prev-tag>..HEAD -- <working-dir>` to collect commit messages
-3. **First release handling**: Explicitly marks initial releases, uses full commit history
+3. **Tag validation**: Confirms previous tag exists in git repo before proceeding
### Pre-Release Checks
**Job: `pre-release-checks`** (no caching to catch missing dependencies):
-1. **Direct wheel installation**: Installs built wheel directly (validates metadata)
+1. **Direct wheel installation**: Installs built wheel directly via `uv pip install dist/*.whl` (validates metadata and installability)
2. **Package import test**: Verifies main module imports successfully
3. **Unit tests**: Runs full `make tests` against the wheel
-4. **Minimum version testing**: Recalculates and tests minimum dependencies (skips serdes tests for speed)
-5. **Prerelease dependency detection**: Fails if any dependencies use prerelease constraints (unless release itself is prerelease)
+4. **Minimum version testing**: Recalculates minimum versions, downgrades via pip, and reruns tests with `make tests PYTEST_EXTRA="-q -k 'not test_serdes'"` (skips serialization tests for speed)
+5. **Prerelease dependency detection**: Fails if any dependencies declare prerelease versions (unless release itself is prerelease)
6. **Integration tests**: For partner packages only, runs `make integration_tests` with live API credentials
### PyPI Publishing
@@ -182,7 +188,7 @@ Security rationale: Separates build (no credentials) from publishing (trusted pu
**Job: `test-pypi-publish`** (TestPyPI):
- Uses GitHub OpenID Connect (trusted publishing)
- Publishes to test.pypi.org for staging validation
-- Tolerates duplicate versions (CI safety only)
+- Tolerates duplicate versions via `skip-existing: true` (CI safety only)
**Job: `publish`** (Production PyPI):
- Uses trusted publishing to production PyPI
@@ -193,13 +199,13 @@ Security rationale: Separates build (no credentials) from publishing (trusted pu
**Job: `test-prior-published-packages-against-new-core`**:
- Only runs for `libs/core` releases
-- Tests previously-published partner packages (e.g., langchain-openai, langchain-anthropic) against new core
-- Fetches latest partner tag from git, installs new core wheel, runs tests
-- Can skip per-partner via `skip-prior-published-package-checks` input
+- Tests previously-published partner packages (currently anthropic, openai) against new core
+- Fetches latest non-yanked published partner tag from git, installs new core wheel, runs tests
+- Can skip per-partner via `skip-prior-published-package-checks` input (options: none, anthropic, openai, all)
**Job: `test-dependents`**:
- Only runs for `libs/core` or `libs/langchain_v1` releases
-- Checks external dependent packages (e.g., deepagents)
+- Checks external dependent packages (currently deepagents)
- Tests Python 3.11 and 3.13
- Ensures breaking changes are caught before publish
@@ -225,8 +231,9 @@ Scheduled daily (1 PM UTC) with manual dispatch override capability.
- Authenticates to Google Cloud and AWS
- Runs per-package `make integration_tests` with all live API credentials injected
- Uses concurrency locks per (package, python-version) to serialize same-package runs and prevent credential conflicts
+- Includes special installation logic: overlays local editable core and standard-tests packages atop checked-out partner versions
-**Credentials**: Receives 30+ environment variables covering OpenAI, Anthropic, Google, AWS, Azure, Groq, MistralAI, HuggingFace, and more.
+**Credentials**: Receives 30+ environment variables covering OpenAI, Anthropic, Google, AWS, Azure, Groq, MistralAI, HuggingFace, Mistral, Together, Cohere, and more.
## Auto-Labeling Workflows
@@ -235,9 +242,9 @@ Scheduled daily (1 PM UTC) with manual dispatch override capability.
Fires when issues are opened or edited:
1. Parses issue body for `## Package` section
-2. Maps package name (e.g., "langchain-openai") to label (e.g., "openai")
-3. Adds/removes labels to match selected package(s)
-4. Supports both dropdown (single) and checkbox (multi-select) formats
+2. Supports both dropdown (single select) and checkbox (multi-select) formats
+3. Maps package name (e.g., "langchain-openai") to label via JSON mapping table (e.g., "openai")
+4. Adds/removes labels to match selected package(s)
### PR Title Linting (`pr_lint.yml`)
@@ -245,7 +252,7 @@ Enforces Conventional Commits 1.0.0 format on all pull request titles:
- **Format**: `<type>[optional scope]: <description>` (e.g., `feat(core): add multi-tenant support`)
- **Allowed types**: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert, release, hotfix
-- **Optional scope**: Scopes for specific packages (core, langchain, anthropic, openai, etc.) or cross-cutting concerns (infra, deps)
+- **Optional scope**: Scopes for specific packages (core, langchain, anthropic, openai, etc.) or cross-cutting concerns (infra, deps, partners)
- **Breaking changes**: Append `!` after type/scope (e.g., `feat!: remove deprecated API`)
- **Release commits**: Must be `release(scope): x.y.z` format
- **Validation**: Uses `amannn/action-semantic-pull-request` with empty scope rejection
@@ -259,23 +266,22 @@ Unified PR labeler applying size, file-based, title-based, and contributor class
- File-based labels: Maps changed file paths to package labels
- Size labels: Computes PR size (small, medium, large) from diff statistics
- Title-based labels: Detects certain patterns in PR title
-- Contributor classification: Checks org membership to tag external contributions
-- Uses GitHub App for organization membership verification
-
-Consolidates multiple prior workflows into single sequential run to eliminate race conditions.
+- Contributor classification: Checks org membership to tag external contributions (via GitHub App token)
+- Uses concurrency locks to prevent race conditions
+- Consolidates multiple prior workflows into single sequential run
## OpenWiki Auto-Update (`openwiki-update.yml`)
Runs on schedule (8 AM UTC daily) or manual dispatch:
-1. Checks out full repository history (required for diff-against-HEAD)
-2. Installs Node.js and OpenWiki CLI
+1. Checks out full repository history via `fetch-depth: 0` (required for diff-against-HEAD)
+2. Installs Node.js and OpenWiki CLI (@0.5.0) with optional Mermaid diagram validation
3. Runs `openwiki code --update --print` to regenerate documentation
-4. Removes transient state file
-5. Creates/updates pull request with changes
-6. Preserves partial progress on failure for baseline establishment
+4. Removes transient state file (`.run.json`)
+5. Creates/updates pull request with changes via `peter-evans/[email protected]`
+6. Preserves partial progress on failure: if OpenWiki run fails, the PR intentionally preserves only pages completed before the failure, allowing them to become baseline for the next scheduled run
-Uses LangSmith tracing for observability.
+Uses LangSmith tracing for observability (OPENWIKI_LANGSMITH_API_KEY, LANGSMITH_API_KEY).
## Dependency Pinning & Version Management
diff --git a/openwiki/composability.md b/openwiki/composability.md
index 45ef1ae5db..5c2d851bb3 100644
--- a/openwiki/composability.md
+++ b/openwiki/composability.md
@@ -3,9 +3,6 @@ type: "Concept"
title: "Composability and LCEL Chains"
description: "How Runnable components compose through LCEL operators, creating reusable workflows with automatic async, batch, and streaming support."
tags: ["composability", "LCEL", "runnables", "chaining", "operators"]
-verified:
- - by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
sources:
- id: openwiki-source-a1981e868973f6fd7f71e12e
resource: repo://libs/core/langchain_core/runnables/base.py
@@ -15,7 +12,10 @@ sources:
resource: repo://libs/core/langchain_core/runnables/fallbacks.py
- id: openwiki-source-de6c904bd0171642bd50f6d9
resource: repo://libs/core/langchain_core/runnables/router.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-21T08:30:16.745Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
+verified:
+ - by: openwiki/0.5.0
+ at: 2026-09-28T08:35:20.640Z
---
@@ -301,7 +301,22 @@ Each branch (`result_a`, `result_b`) appears as a separate child run in the call
## Fallback Patterns
-Fallbacks provide resilience by retrying with alternative Runnables when one fails.
+Fallbacks provide resilience by switching to alternative Runnables when one fails, without retrying the same component.
+
+### RunnableWithFallbacks Mechanics
+
+**`RunnableWithFallbacks`** wraps a primary Runnable and a list of fallbacks:
+
+1. Tries the primary Runnable first
+2. On an exception matching `exceptions_to_handle`, attempts each fallback in order
+3. Stops on the first successful execution
+4. If all fail, raises the first exception encountered
+
+Key attributes:
+- **`runnable`**: The primary Runnable to execute
+- **`fallbacks`**: A sequence of fallback Runnables (ordered)
+- **`exceptions_to_handle`**: Tuple of exception types to trigger fallback (default: all exceptions)
+- **`exception_key`**: Optional string key to pass the caught exception to fallbacks in the input dict
### Fallback at Component Level
@@ -320,6 +335,21 @@ output = resilient_llm.invoke("What is composability?")
# Uses primary_llm; falls back to fallback_llm if APIConnectionError occurs
```
+### Multiple Fallbacks with Provider Failover
+
+Fallbacks are tried in order until one succeeds:
+
+```python
+model = ChatOpenAI().with_fallbacks([
+ ChatAnthropic(), # Try second
+ ChatClaude(), # Try third
+ ChatCohere(), # Try fourth
+ RunnableLambda(default_response), # Final fallback
+])
+```
+
+The chain tries each fallback sequentially until one returns successfully or all are exhausted.
+
### Fallback at Chain Level
```python
@@ -336,20 +366,92 @@ output = chain_with_fallback.invoke({"topic": "composability"})
# If the entire chain fails, returns fallback response
```
-### Multiple Fallbacks
+### Exception Passing to Fallbacks
-Fallbacks are tried in order until one succeeds:
+Use `exception_key` to pass the caught exception to fallbacks as part of the input:
```python
-model = ChatOpenAI().with_fallbacks([
- ChatAnthropic(), # Try second
- ChatClaude(), # Try third
- ChatCohere(), # Try fourth
- RunnableLambda(default_response), # Final fallback
-])
+def fallback_with_context(input_dict):
+ error = input_dict.get("error")
+ if isinstance(error, APIConnectionError):
+ return "API is currently unavailable. Please try again later."
+ return "An unexpected error occurred."
+
+chain = (
+ prompt | llm | parser
+).with_fallbacks(
+ [RunnableLambda(fallback_with_context)],
+ exception_key="error", # Pass exception under "error" key
+)
+
+# Input becomes {"topic": "...", "error": <caught exception>}
```
-The chain tries each fallback sequentially until one returns successfully or all are exhausted.
+This requires all Runnables (primary and fallbacks) to accept a dictionary as input.
+
+## Retry Patterns
+
+Retry logic automatically re-invokes a Runnable on failure, with configurable backoff and exception filtering.
+
+### Retry at Component Level
+
+```python
+from langchain_core.runnables import RunnableLambda
+from langchain_core.runnables.retry import ExponentialJitterParams
+
+llm = ChatOpenAI(model="gpt-4")
+
+resilient_llm = llm.with_retry(
+ retry_if_exception_type=(APIConnectionError, TimeoutError),
+ max_attempt_number=3,
+ wait_exponential_jitter=True,
+ exponential_jitter_params={"initial": 1, "max": 10},
+)
+
+output = resilient_llm.invoke("What is composability?")
+# Retries up to 3 times on transient errors with exponential backoff
+```
+
+### RunnableRetry Implementation
+
+**`RunnableRetry`** wraps any Runnable and applies retry logic using `tenacity`:
+
+- **`retry_exception_types`**: Tuple of exception types to retry on (default: all exceptions)
+- **`max_attempt_number`**: Maximum retry attempts (default: 3)
+- **`wait_exponential_jitter`**: Enable exponential backoff with jitter (default: True)
+- **`exponential_jitter_params`**: Customize backoff parameters (`initial`, `max`, `exp_base`, `jitter`)
+
+Retries are tracked in callbacks with tags like `retry:attempt:2` for visibility in traces.
+
+### Retry Strategy: Transient vs. Fatal Errors
+
+Best practice: retry only on transient errors, not fatal ones:
+
+```python
+model = ChatOpenAI().with_retry(
+ retry_if_exception_type=(
+ APIConnectionError, # Transient: network issues
+ TimeoutError, # Transient: slow API
+ RateLimitError, # Transient: quota exceeded
+ ),
+ max_attempt_number=5,
+ exponential_jitter_params={"initial": 0.5, "max": 30},
+)
+
+# Do NOT retry on invalid input or authentication errors—these are fatal
+```
+
+### Retry at Chain Level
+
+```python
+chain = (
+ prompt
+ | llm.with_retry(max_attempt_number=3) # Retry at LLM level
+ | parser
+)
+
+# Better than retrying the whole chain, which wastes time on non-failing steps
+```
## Chaining Patterns
diff --git a/openwiki/dev-commands.md b/openwiki/dev-commands.md
index 3a9ad6b751..25580e6e19 100644
--- a/openwiki/dev-commands.md
+++ b/openwiki/dev-commands.md
@@ -3,9 +3,6 @@ type: "Developer Tools & Commands"
title: "Development Commands and Local Setup"
description: "Quick reference for uv, make, lint, test, and type-checking commands in the LangChain monorepo, including environment setup, pre-commit hooks, and testing workflows."
tags: [development, build, testing, linting, typing, uv, make, pre-commit, local-setup]
-verified:
- - by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
sources:
- id: openwiki-source-4d1645cb6317345817452838
resource: repo://.pre-commit-config.yaml
@@ -24,6 +21,9 @@ sources:
- id: openwiki-source-a6e669bb11f217c6fbd06670
resource: repo://libs/partners/anthropic/Makefile
generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }
+verified:
+ - by: openwiki/0.5.0
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
diff --git a/openwiki/index.md b/openwiki/index.md
index f4df55c0a1..2354a7e3a9 100644
--- a/openwiki/index.md
+++ b/openwiki/index.md
@@ -8,14 +8,14 @@ okf_version: "0.2"
- [Agent Factory and create_agent](agent-factory.md) - The agent factory constructs state machines that orchestrate conversation flow between a language model, tool execution, and middleware layers. The create_agent function handles tool binding, structured output, state schema resolution, and graph compilation.
- [LangChain System Architecture](architecture.md) - High-level decomposition of the LangChain framework into three layers: langchain-core (abstractions), langchain (orchestration and agents), and partners (provider integrations), showing dependencies, component responsibilities, and extension boundaries.
- [Callback System and Handler Integration](callbacks.md) - Document the callback handler architecture, integration with runnables and chat models, and patterns for tracking execution events, streaming, and instrumentation.
-- [Chat Model Interface and Lifecycle](chat-models.md) - Document BaseChatModel protocol, input/output handling, streaming, and integration points with callbacks and model profiling.
-- [CI/CD Workflows: GitHub Actions and Release Process](ci-workflows.md)
+- [Chat Model Interface and Lifecycle](chat-models.md) - Document BaseChatModel protocol, input/output handling, streaming, and integration points with callbacks and model profiling. Covers the init_chat_model() factory, provider registry, and model instantiation.
+- [CI/CD Workflows: GitHub Actions and Release Process](ci-workflows.md) - LangChain's GitHub Actions-based CI/CD system automating testing, linting, and release management across a monorepo with intelligent change detection, parallel matrix testing, and strict release gates.
- [Composability and LCEL Chains](composability.md) - How Runnable components compose through LCEL operators, creating reusable workflows with automatic async, batch, and streaming support.
- [Development Commands and Local Setup](dev-commands.md) - Quick reference for uv, make, lint, test, and type-checking commands in the LangChain monorepo, including environment setup, pre-commit hooks, and testing workflows.
- [Integration Testing: Live API Tests and VCR Cassettes](integration-tests.md) - How to write integration tests that call real model APIs with VCR cassette recording for CI compatibility, including environment setup, cassette management, and parameterization patterns.
-- [Bearer token](mcp-integration.md)
+- [MCP (Model Context Protocol) Integration](mcp-integration.md) - MCPAdapter bridges MCP servers to LangChain agents, discovering tools, handling protocol negotiation via FastMCP, managing multiple transports, and supporting mid-call user input via LangGraph interrupts.
- [Message Types and Content Representation](messages.md) - Document the message abstraction, standardized content blocks for multimodal LLM I/O, message hierarchy, and provider-specific block translators.
-- [Agent Middleware: Composable Request/Response Processing](middleware.md) - Document the middleware system for agents, including lifecycle hooks, HITL approval, error handling, retry logic, and middleware composition patterns for intercepting and modifying agent behavior.
+- [Agent Middleware: Composable Request/Response Processing](middleware.md) - Comprehensive guide to the middleware composition system: hook types, typing, payload transformations, and practical examples for hooking into model calls, tool calls, and agent lifecycle.
- [Chat Model Initialization with init_chat_model](model-initialization.md) - Factory function for instantiating chat models from provider strings with unified configuration and runtime model switching.
- [OpenAI Integration: ChatOpenAI and Azure Support](openai-provider.md) - ChatOpenAI integration for OpenAI's Chat Completions and Responses APIs, with support for tool calling, structured output, vision, streaming, and Azure deployment.
- [Adding a New Chat Model Provider](partner-pattern.md) - Step-by-step guide to integrate a new LLM provider into LangChain's monorepo, including package structure, ChatModel implementation, streaming, function calling, structured output, and standard tests. Covers message conversion, error handling, model profiles, and optional advanced API modes like Responses API.
@@ -24,6 +24,6 @@ okf_version: "0.2"
- [Runnable: Core Composition Layer](runnables.md) - Explain the Runnable protocol and how it enables composable chaining of LLM components through the LangChain Expression Language (LCEL).
- [Source Map: Repository File Organization](source-map.md) - Quick reference for locating code by topic, mapping LangChain concepts to their implementation paths across the monorepo including core abstractions, agents, middleware, partners, and configuration files.
- [Streaming: Token-by-Token Output](streaming.md) - How streaming works across LLM components and chains, token-by-token delivery via AIMessageChunk, callback integration, and memory/latency tradeoffs.
-- [AutoStrategy (recommended)](structured-output.md)
+- [Structured Output and Response Formatting](structured-output.md) - Document the structured output system: response format specification, strategy selection (auto, provider, tool-based), parsing, validation, and middleware integration.
- [Tools and Tool Binding](tools.md) - LangChain's tool system enables agents and language models to execute structured actions through schema-aware components with automatic validation, error handling, and callback integration.
-- [Unit Testing: Strategies and Patterns](unit-tests.md) - How to write unit tests for langchain-core and langchain components using pytest, fixtures, mocking, and standard test classes from langchain-tests.
+- [Unit Testing and Mocking](unit-tests.md) - Guide to writing unit tests: test structure, mocking chat models, fixtures, assertions, and test coverage for agents and components.
diff --git a/openwiki/integration-tests.md b/openwiki/integration-tests.md
index 055a8bab20..08f071d04d 100644
--- a/openwiki/integration-tests.md
+++ b/openwiki/integration-tests.md
@@ -5,8 +5,10 @@ description: "How to write integration tests that call real model APIs with VCR
tags: [integration-tests, vcr, cassettes, api-testing, pytest, ci-cd, model-testing]
verified:
- by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+ at: 2026-09-28T08:35:20.640Z
sources:
+ - id: openwiki-source-ff76574b014ac8b5c67560a6
+ resource: repo://libs/langchain_v1/tests/integration_tests/chat_models/test_base.py
- id: openwiki-source-bcf7be66f36f862f639f3c7a
resource: repo://libs/langchain_v1/tests/integration_tests/conftest.py
- id: openwiki-source-bae620f3bb8d2668c69ac079
@@ -27,7 +29,7 @@ sources:
resource: repo://libs/partners/openai/tests/integration_tests/embeddings/test_base.py
- id: openwiki-source-db02c1dda8563ab005cd9d62
resource: repo://libs/standard-tests/langchain_tests/conftest.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
---
## Overview
@@ -665,6 +667,60 @@ def vcr_config() -> dict:
return config
```
+## Standard Test Suite Inheritance
+
+LangChain partner packages inherit a standard suite of integration tests via `ChatModelIntegrationTests` from `langchain_tests.integration_tests`. This allows all chat model providers to run a common set of tests without duplicating test code.
+
+### How It Works
+
+Each partner package defines a test class that inherits from `ChatModelIntegrationTests`:
+
+```python
+# libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py
+from langchain_tests.integration_tests import ChatModelIntegrationTests
+from langchain_openai import ChatOpenAI
+
+class TestOpenAIStandard(ChatModelIntegrationTests):
+ @property
+ def chat_model_class(self) -> type[BaseChatModel]:
+ return ChatOpenAI
+
+ @property
+ def chat_model_params(self) -> dict:
+ return {"model": "gpt-4o-mini"}
+
+ @property
+ def supports_image_inputs(self) -> bool:
+ return True
+
+ @property
+ def has_tool_calling(self) -> bool:
+ return True
+```
+
+The base class (`ChatModelIntegrationTests`) implements dozens of test methods that exercise standard chat model capabilities: `invoke`, `ainvoke`, `stream`, `astream`, tool calling, structured output, image inputs, and more. Each test method is automatically marked with `@pytest.mark.vcr` so cassettes are recorded and replayed.
+
+### Customization Points
+
+Partner implementations override properties to declare:
+
+- **`chat_model_class`**: The model class to instantiate
+- **`chat_model_params`**: Default parameters (model name, API key, etc.)
+- **`supports_*` properties**: Declare which features the model supports (images, tools, JSON mode, etc.)
+- **`has_*` properties**: Declare model capabilities (tool calling, structured output, etc.)
+- **Custom methods**: Override test methods to provide provider-specific behavior (e.g., handling audio inputs, reasoning models)
+
+### VCR Integration with Standard Tests
+
+Standard test methods inherit VCR integration:
+
+1. Each test method is pre-marked with `@pytest.mark.vcr`
+2. Cassettes are generated automatically with names like `test_invoke.yaml.gz`, `test_invoke[model0].yaml.gz` (for parameterized variants)
+3. Tests run in CI via `make test_vcr --record-mode=none` to validate cassettes are up-to-date
+4. When a partner updates a test (e.g., adds a new model to test), new cassettes are recorded with `--record-mode=new_episodes`
+
+This approach ensures that all LangChain partners maintain consistent test coverage and that changes to the standard test suite (new test methods, new capabilities) are automatically picked up by all partners.
+
## Best Practices
1. **Always scrub cassettes**: Use `before_record_request` and `before_record_response` to redact all sensitive data. Inspect cassettes before committing.
diff --git a/openwiki/mcp-integration.md b/openwiki/mcp-integration.md
index d28d8ad9c2..0cf0c84053 100644
--- a/openwiki/mcp-integration.md
+++ b/openwiki/mcp-integration.md
@@ -1,7 +1,11 @@
---
type: "Reference"
-title: "Bearer token"
-openwiki_generated: true
+title: "MCP (Model Context Protocol) Integration"
+description: "MCPAdapter bridges MCP servers to LangChain agents, discovering tools, handling protocol negotiation via FastMCP, managing multiple transports, and supporting mid-call user input via LangGraph interrupts."
+tags: [mcp, protocol, tools, adapter, integration, langgraph]
+verified:
+ - by: openwiki/0.5.0
+ at: 2026-09-28T08:35:20.640Z
sources:
- id: openwiki-source-6d1e3478d5b63988ee177552
resource: repo://libs/langchain_v1/examples/mcp/auth_bearer.py
@@ -27,31 +31,34 @@ sources:
resource: repo://libs/langchain_v1/langchain/mcp/elicitation.py
- id: openwiki-source-4715c337e9b93b9d00846133
resource: repo://libs/langchain_v1/langchain/mcp/tools.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }
-verified:
- - by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
---
-
## Overview
-The Model Context Protocol (MCP) is a standard for LLM applications to discover and call tools from external servers. `langchain.mcp` provides the `MCPAdapter` class, which discovers MCP tools and converts them to LangChain `BaseTool` objects suitable for use with `create_agent`. The adapter handles protocol negotiation via FastMCP, manages multiple transports (stdio, HTTP, in-memory), supports mid-call user input via LangGraph interrupts, and surfaces tool errors to the model for recovery and retry.
+The Model Context Protocol (MCP) is a standard for LLM applications to discover and invoke tools exposed by external servers. `langchain.mcp` provides the `MCPAdapter` class, which discovers MCP tools and converts them to LangChain `BaseTool` objects suitable for use with agents. The adapter handles:
+
+- **Protocol negotiation** via FastMCP (client session management, version handshake)
+- **Multiple transports** (in-process, stdio subprocess, HTTP streaming)
+- **Multi-server routing** via `ClientGroup` with automatic tool name prefixing
+- **Mid-call user input** via LangGraph interrupts (elicitation)
+- **Error recovery** by surfacing tool-reported errors to the model for retry
## MCP Concept
MCP is a request–response protocol where:
-- **Clients** (like LangChain agents) discover tools available on a server and invoke them with arguments
-- **Servers** expose tools, describe their schemas, and handle calls
-- **Tools** are named, documented functions with typed arguments; a server may expose many tools
-- **Content** returned by a tool (text, images, files, structured data) is represented as content blocks
+- **Clients** (like LangChain agents) discover and invoke tools on a server
+- **Servers** expose tool catalogs, define tool schemas, and execute calls
+- **Tools** are named, documented functions with typed arguments
+- **Content** returned by a tool is represented as content blocks (text, images, files, structured data)
+- **Protocol versions** evolve over time (e.g., 2025-11-25 uses `initialize` handshake; 2026-07-28 uses `server/discover`)
-MCP evolved between protocol eras: the 2025-11-25 era negotiates capability via an `initialize` handshake; the 2026-07-28 era uses a `server/discover` handshake. Both eras can coexist in an agent when separate adapters are used per server.
+Servers from different protocol eras can coexist in one agent when separate adapters are used per server.
## Architecture: MCPAdapter and FastMCP
-`MCPAdapter` is the user-facing entry point. It wraps one or more FastMCP clients and exposes their tools as LangChain tools:
+`MCPAdapter` is the main user-facing entry point. It wraps one or more FastMCP clients and exposes their discovered tools as LangChain tools:
```python
async with MCPAdapter(target) as adapter:
@@ -59,71 +66,158 @@ async with MCPAdapter(target) as adapter:
agent = create_agent("anthropic:claude-sonnet-5", tools)
```
-**Target types** (inferred by FastMCP):
-
-- `str` (http/https URL only) — reached over streamable HTTP
-- `Path` — launched as a subprocess over stdio, e.g. `Path("server.py")`
-- `FastMCP` — in-process server with no network or subprocess
-- `Client` or `ClientGroup` — pre-built FastMCP client(s)
-- `MCPConfig` (dict) — multiple servers, each with independent transport and auth
-- `ClientTransport` — explicit transport (HTTP, stdio, or custom)
-
-String targets must be http(s) URLs to prevent silent local execution of existing `.py` or `.js` files. Local servers are accessed through `Path`, a transport, or `MCPConfig`.
+### Target Types and Transport Inference
+
+FastMCP infers the transport from the target. `MCPAdapter` accepts:
+
+- **`str` (HTTP/HTTPS URL only)** — reached over streamable HTTP. String validation rejects non-URL strings (e.g., local file paths) to prevent silent local execution.
+ ```python
+ async with MCPAdapter("https://api.example.com/mcp") as adapter:
+ tools = await adapter.list_tools()
+ ```
+
+- **`Path`** — launched as a subprocess over stdio. The script must exist.
+ ```python
+ async with MCPAdapter(Path("server.py")) as adapter:
+ tools = await adapter.list_tools()
+ ```
+
+- **`FastMCP` instance** — in-process server with no network or subprocess. Ideal for tests and embedded deployments.
+ ```python
+ server = FastMCP("weather")
+ @server.tool
+ def forecast(city: str) -> str:
+ return f"{city}: sunny"
+
+ async with MCPAdapter(server) as adapter:
+ tools = await adapter.list_tools()
+ ```
+
+- **`Client` or `ClientGroup`** — pre-built FastMCP client(s). Allows custom configuration (auth, cache, transport).
+ ```python
+ client = Client("https://api.example.com/mcp", auth="bearer-token")
+ async with MCPAdapter(client) as adapter:
+ tools = await adapter.list_tools()
+ ```
+
+- **`MCPConfig` (dict)** — multiple servers, each with independent transport and auth. FastMCP prefixes tools by config key to avoid collisions.
+ ```python
+ config = {
+ "mcpServers": {
+ "weather": {"command": "python", "args": ["weather_server.py"]},
+ "calc": {"url": "https://api.example.com/mcp"},
+ }
+ }
+ async with MCPAdapter(config) as adapter:
+ tools = await adapter.list_tools() # ["weather_forecast", "calc_add", ...]
+ ```
+
+- **`ClientTransport`** — explicit transport (HTTP, stdio, or custom) for fine-grained control.
## Tool Discovery and Conversion
`adapter.list_tools()` calls `fastmcp.Client.list_tools()` to fetch remote tools, then converts each via `as_langchain_tool()`:
-- **Discovery** uses the client's response cache (configurable via `cache_mode`)
-- **Conversion** reads the MCP tool's schema (from `tool.input_schema`) and creates a `StructuredTool` with:
- - `name`, `description`, and typed `args_schema` from the MCP definition
- - `coroutine` that calls the tool asynchronously
- - `response_format="content_and_artifact"` to return both model-visible content blocks and structured data
- - `metadata["mcp"]` carrying tool annotations, server identity, and destructive hints
- - `handle_tool_error` handler to surface MCP-reported errors (not transport failures) to the model
+### Discovery Pipeline
+
+1. **Connection**: Enters the adapter context (connects underlying client(s))
+2. **Fetch**: Calls `client.list_tools(cache_mode=...)` to fetch tool definitions
+3. **Conversion**: For each MCP tool, calls `as_langchain_tool(tool, client)` to produce a LangChain tool
+
+### Conversion Details
+
+Each MCP tool becomes a `StructuredTool` with:
+
+- **name, description, args_schema** — from the MCP tool definition
+- **coroutine** — async function that calls the MCP tool through the client
+- **response_format="content_and_artifact"** — returns both model-visible content blocks and structured data
+- **metadata["mcp"]** — carries tool annotations, server identity, and destructive hints
+- **handle_tool_error=_handle_mcp_tool_error** — handler to surface MCP tool errors to the model
+
+### Multi-Server Tool Prefixing
+
+When using `ClientGroup` or `MCPConfig`, tool names are prefixed by server key (e.g., `weather_forecast` = `weather` + `forecast`). This prevents collisions and makes tool provenance visible. The adapter's internal router ensures each call reaches the correct server:
+
+```python
+adapter = MCPAdapter(group)
+tools = await adapter.list_tools() # Tool names are prefixed
+# e.g., ["weather_forecast", "weather_current_conditions", "calc_add"]
+
+# When a tool is called, the router resolves it to the correct server member
+for tool in tools:
+ if tool.name == "weather_forecast":
+ # Routed to the "weather" client by resolve_tool()
+ result = await tool.ainvoke({"city": "Oslo"})
+```
+
+### Schema Normalization
-For multi-server setups (via `ClientGroup` or `MCPConfig`), tool names are prefixed per server (e.g., `weather_forecast`, `calc_add`) to disambiguate tools with the same name on different servers. The adapter's internal routing ensures each call reaches the correct server.
+`_normalize_mcp_schema()` keeps open object arguments open during provider schema conversion, adding `additionalProperties: True` to object properties without explicit property definitions. This allows models to pass arbitrary keys when the schema does not constrain them.
## Tool Invocation and Result Conversion
When a tool is called:
-1. **Elicitation detection**: The adapter checks whether the underlying client is armed to drive LangGraph interrupts (see [Elicitation](#elicitation-input-mid-call) below)
-2. **Tool call**: If interrupts are enabled, calls `_call_tool_with_interrupts()` to answer requests via `interrupt()`; otherwise calls `fastmcp.Client.call_tool()` directly
-3. **Result conversion**: Converts MCP content blocks (text, images, files, resources) to LangChain content blocks
+1. **Elicitation detection**: The adapter checks whether the underlying client is armed to drive LangGraph interrupts
+2. **Tool call routing**:
+ - For `ClientGroup`, calls `resolve_tool(name)` to find the member client and upstream name
+ - Calls `_call_tool_with_interrupts()` if client is interrupt-armed and server is modern (2026-07-28+)
+ - Otherwise calls `fastmcp.Client.call_tool()` directly
+3. **Result conversion**: Converts MCP content blocks to LangChain content blocks
4. **Error handling**: If the server reports `isError=True`, raises `_MCPToolExecutionError` (a `ToolException`), which becomes a `ToolMessage` with `status="error"` so the model can see and retry
-5. **Artifacts**: Extracts `structured_content` (JSON, tables, etc.) into a separate artifact field so the model receives both rendered content and structured data
+5. **Artifacts**: Extracts `structured_content` (JSON, tables, etc.) into a separate artifact field
-Content blocks support:
-- **Text** — plain string
-- **Image** — base64 or URL-referenced
-- **File** — base64 or URL-referenced
-- **Resource** — embedded binary or text, or URL link
+### Content Block Conversion
-Audio is not yet supported.
+Supported content types:
-## Elicitation: Input Mid-Call
+- **Text** — plain string → `TextContentBlock`
+- **Image** — base64 (`ImageContent`) or URL-referenced (`ResourceLink`) → `ImageContentBlock`
+- **File** — base64 or URL-referenced → `FileContentBlock`
+- **Resource** — embedded binary/text (`EmbeddedResource`) or URL link (`ResourceLink`) → `ImageContentBlock` (if MIME type is image/*) or `FileContentBlock`
+- **Audio** — not yet supported (raises `NotImplementedError`)
-Some MCP tools cannot complete without asking the user a question mid-call. Instead of hanging or erroring, the server returns an `InputRequiredResult` describing what it needs. The adapter converts this to a LangGraph `interrupt()`, so a human can answer and the run resumes seamlessly.
+## Elicitation: Mid-Call User Input
-**How it works:**
+Some MCP tools cannot complete without asking the user a question mid-call (e.g., "Approve this action?"). Instead of hanging or erroring, the server returns an `InputRequiredResult` describing what it needs. The adapter converts this to a LangGraph `interrupt()`, so a human can answer and the run resumes seamlessly.
-1. **Arming**: On construction, `MCPAdapter` calls `_arm_for_interrupts()` on each underlying client, setting an elicitation callback. This advertises the `elicitation` capability to the server. A pre-built client that already has its own handler is cloned first, so the caller's object is never mutated.
+### Elicitation Flow
-2. **Interrupt loop**: When `as_langchain_tool()` calls the tool, if the client was armed, it calls `_call_tool_with_interrupts()` instead of plain `call_tool()`. This loop:
- - Issues the tool call with `allow_input_required=True`
- - If the result is `InputRequiredResult`, extracts elicitation requests (form or URL)
- - Raises `interrupt()` with the request, pausing the run
- - On resume, receives answers keyed by request ID, builds response payloads, and retries the call
- - Repeats until the tool returns a terminal result
+**Arming for Interrupts:**
-3. **Protocol era compatibility**: The interrupt loop only runs on modern servers (2026-07-28 and later) that return `InputRequiredResult`. Legacy servers never trigger it, so they work unchanged. A client armored with a pre-built handler uses that handler instead.
+1. On construction, `MCPAdapter` calls `_arm_for_interrupts()` on each underlying client
+2. This sets `_declare_elicitation_capability` as the elicitation callback and marks the client with `_ARMED_MARKER`
+3. FastMCP advertises the `elicitation` capability to the server (modern servers only)
+4. Pre-built clients that already have their own handler are cloned first, so the caller's object is never mutated
-**Request types:**
+**Interrupt Loop:**
-- **Form** — server asks for structured data (JSON matching a schema); human must provide it
-- **URL** — server asks the human to visit a URL (e.g., for approval or authentication); no data needed
-- **Deny or cancel** — human can refuse a specific request (tool continues) or abort the call entirely
+1. `as_langchain_tool()` checks if the client is armed (`_drives_interrupts()`) and server is modern (protocol version ≥ 2026-07-28)
+2. If yes, calls `_call_tool_with_interrupts()` instead of plain `call_tool()`
+3. The loop:
+ - Issues tool call with `allow_input_required=True`
+ - If result is `InputRequiredResult`, extracts elicitation requests
+ - Narrows requests to `ElicitRequest` only (rejects sampling, roots, continuation requests)
+ - Raises `interrupt(payload)` with the request payload, pausing the run
+ - On resume, receives answers keyed by request ID in the `responses` dict
+ - Builds response payloads via `_build_responses()`, validating each answer
+ - Retries the call with `input_responses=...` and `request_state=...` (opaque, echoed back)
+ - Repeats until the tool returns a terminal result (not `InputRequiredResult`)
+
+**Request Types:**
+
+- **Form** — server asks for structured data (JSON matching a schema)
+- **URL** — server asks the human to visit a URL (e.g., for approval or authentication)
+
+**Response Actions:**
+
+- **Accept** — answer the question (form: provide `content` matching schema; URL: none needed)
+- **Decline** — refuse this request only (tool continues with other requests)
+- **Cancel** — refuse entirely (abandon the tool call)
+
+### Protocol Compatibility
+
+The interrupt loop only runs on modern servers (2026-07-28 and later) that return `InputRequiredResult`. Legacy servers (2025-11-25) never trigger it, so they work unchanged. A pre-built client that already has a handler uses that handler instead, allowing custom elicitation strategies.
## Transport Types
@@ -135,6 +229,7 @@ A `FastMCP` server instance runs in the same process with no subprocess or netwo
```python
from langchain.mcp import MCPAdapter
+from fastmcp import FastMCP
server = FastMCP("weather")
@server.tool
@@ -145,7 +240,7 @@ async with MCPAdapter(server) as adapter:
tools = await adapter.list_tools()
```
-**Ideal for**: tests, development, and single-app deployments with full control.
+**Ideal for**: tests, development, single-app deployments with full control.
### Stdio
@@ -160,7 +255,7 @@ async with MCPAdapter(script_path) as adapter:
tools = await adapter.list_tools()
```
-**Ideal for**: local development, private tools, and sandboxing. Each adapter instance spawns one subprocess.
+**Ideal for**: local development, private tools, sandboxing. Each adapter instance spawns one subprocess.
### HTTP (Streamable)
@@ -174,28 +269,7 @@ async with MCPAdapter(url) as adapter: # no auth
tools = await adapter.list_tools()
```
-**Ideal for**: public MCP servers (e.g., DeepWiki), cloud services, and third-party integrations.
-
-## Multi-Server Setup: Tool Prefixing
-
-To connect multiple MCP servers and expose all their tools to a single agent:
-
-```python
-from langchain.mcp import MCPAdapter
-
-config = {
- "mcpServers": {
- "weather": {"command": "python", "args": ["weather_server.py"]},
- "calc": {"command": "python", "args": ["calc_server.py"]},
- }
-}
-
-async with MCPAdapter(config) as adapter:
- tools = await adapter.list_tools() # ["weather_forecast", "calc_add", ...]
- agent = create_agent("anthropic:claude-sonnet-5", tools)
-```
-
-FastMCP automatically prefixes tools by config key (`weather_` + `forecast` = `weather_forecast`). This prevents collisions and makes tool provenance visible. The adapter's internal router ensures each call reaches the correct server. Servers can mix transports within one config: some stdio, some HTTP, some in-process.
+**Ideal for**: public MCP servers, cloud services, third-party integrations.
## Authentication
@@ -235,6 +309,9 @@ config = {
},
}
}
+
+async with MCPAdapter(config) as adapter:
+ tools = await adapter.list_tools()
```
## Metadata and Tool Annotations
@@ -242,6 +319,11 @@ config = {
MCP tools can carry annotations (e.g., `destructiveHint=True` for deletion operations). These are surfaced on the LangChain tool as `metadata["mcp"]["tool"]["annotations"]`:
```python
+from mcp.server.mcpserver import MCPServer
+from mcp.types import ToolAnnotations
+
+server = MCPServer("example")
+
@server.tool(annotations=ToolAnnotations(destructiveHint=True))
def delete_file(path: str) -> str:
return f"Deleted {path}"
@@ -258,21 +340,90 @@ destructive_tools = [tool.name for tool in tools if _is_destructive(tool)]
# Pass to HumanInTheLoopMiddleware or similar approval gate
```
+Tool metadata also includes `mcp.server` with server identity (name, version), allowing clients to distinguish tools by their origin.
+
## Error Handling and Recovery
-**MCP tool errors** (when a server reports `isError=True`):
+### MCP Tool Errors
+
+When a server reports `isError=True`:
- Converted to `ToolMessage` with `status="error"` and the server's message
- Visible to the model, which can correct inputs and retry
- Example: division by zero, file not found, network timeout at the remote server
-**Transport errors** (network, subprocess failure, malformed response):
+### Transport Errors
+
+Network, subprocess failure, or malformed response:
- Raised as exceptions; the run fails
- Models cannot act on these, so they should be retried at the orchestration level
- Example: unreachable URL, subprocess crashed, invalid JSON from server
-## Long-Lived Adapters: Graph Factory Pattern
+## Multi-Server Setup and Configuration
+
+### MCPConfig Fleet
+
+To connect multiple MCP servers and expose all their tools to a single agent:
+
+```python
+from langchain.mcp import MCPAdapter
+
+config = {
+ "mcpServers": {
+ "weather": {"command": "python", "args": ["weather_server.py"]},
+ "calc": {"command": "python", "args": ["calc_server.py"]},
+ }
+}
+
+async with MCPAdapter(config) as adapter:
+ tools = await adapter.list_tools() # ["weather_forecast", "calc_add", ...]
+ agent = create_agent("anthropic:claude-sonnet-5", tools)
+```
+
+FastMCP automatically prefixes tools by config key (`weather_` + `forecast` = `weather_forecast`). This prevents collisions and makes tool provenance visible. The adapter's internal router ensures each call reaches the correct server. Servers can mix transports within one config: some stdio, some HTTP, some in-process.
+
+### ClientGroup
+
+For programmatic multi-server setup (e.g., per-request auth):
+
+```python
+from fastmcp import Client
+from fastmcp.client.group import ClientGroup
+from langchain.mcp import MCPAdapter
+
+group = ClientGroup({
+ "weather": Client("https://api1.example.com/mcp", auth="token-1"),
+ "calc": Client("https://api2.example.com/mcp", auth="token-2"),
+})
+
+async with MCPAdapter(group) as adapter:
+ tools = await adapter.list_tools()
+```
+
+## Protocol Eras and Version Negotiation
+
+Two MCP protocol eras can coexist in one agent by using separate adapters per era:
+
+```python
+from fastmcp import Client
+from langchain.mcp import MCPAdapter
+
+# Legacy era server (2025-11-25, `initialize` handshake)
+legacy_client = Client(legacy_server(), mode="legacy")
+
+# Modern era server (2026-07-28, `server/discover` handshake)
+modern_client = Client(modern_server(), mode="auto")
+
+async with MCPAdapter(legacy_client) as legacy_adapter, \
+ MCPAdapter(modern_client) as modern_adapter:
+ tools = await legacy_adapter.list_tools() + await modern_adapter.list_tools()
+ agent = create_agent("anthropic:claude-sonnet-5", tools)
+```
+
+A single `MCPConfig` fleet negotiates one era across all its members: if one member only speaks the legacy era, the whole fleet drops to it. Separate adapters ensure each server keeps the best era its connection supports.
+
+## Graph Factory Pattern for Per-Request Setup
For per-request server setup (e.g., per-user credentials), create tools inside a graph factory:
@@ -286,11 +437,20 @@ async def make_graph(runtime):
})
tools = await MCPAdapter(group).list_tools()
return create_agent("anthropic:claude-sonnet-5", tools)
+
+# Use with langgraph dev or persistent deployments
+agent = CompiledStateGraph(make_graph)
```
-For cross-run state (shared HTTP connection pool, response cache), instantiate outside the factory:
+For cross-run state (shared HTTP connection pool, response cache partitioned per user), instantiate outside the factory:
```python
+import httpx2
+from langchain.mcp import MCPAdapter
+from fastmcp import Client
+from fastmcp.client.group import ClientGroup
+from mcp.client.caching import InMemoryResponseCacheStore, CacheConfig
+
_pool = httpx2.AsyncHTTPTransport()
_cache = InMemoryResponseCacheStore()
@@ -298,7 +458,8 @@ async def make_graph(runtime):
user = runtime.user.identity
group = ClientGroup({
name: Client(
- StreamableHttpTransport(url, httpx_client_factory=_client_factory),
+ url,
+ httpx_client_factory=lambda: httpx2.AsyncClient(transport=_pool),
cache=CacheConfig(store=_cache, partition=user),
)
for name, url in SERVERS.items()
@@ -307,41 +468,36 @@ async def make_graph(runtime):
return create_agent("anthropic:claude-sonnet-5", tools)
```
-## Protocol Eras
+## Response Cache and Cache Modes
-Two MCP protocol eras can coexist in one agent by using separate adapters per era:
+FastMCP caches tool lists server-side and supports per-principal isolation. The adapter's `cache_mode` parameter controls cache use:
-```python
-# Legacy era server (2025-11-25, handshake-based)
-legacy_client = Client(legacy_server(), mode="legacy")
-
-# Modern era server (2026-07-28, discovery-based)
-modern_client = Client(modern_server(), mode="auto")
+- **`"use"`** (default) — serve from cache if fresh (within server's TTL hint)
+- **`"refresh"`** — refresh from server, repopulate cache
+- **`"bypass"`** — skip cache entirely
-async with MCPAdapter(legacy_client) as legacy_adapter, \
- MCPAdapter(modern_client) as modern_adapter:
- tools = await legacy_adapter.list_tools() + await modern_adapter.list_tools()
- agent = create_agent("anthropic:claude-sonnet-5", tools)
+```python
+tools = await adapter.list_tools(cache_mode="refresh")
```
-A single `MCPConfig` fleet negotiates one era across all its members: if one member only speaks the legacy era, the whole fleet drops to it. Separate adapters ensure each server keeps the best era its connection supports.
+The cache and its per-principal isolation are configured on the client itself (`Client(cache=...)`); this parameter only selects how discovery reads it. Configured caches are honored — note that a bare `ClientGroup.list_tools()` defaults to `refresh`, while `MCPAdapter.list_tools()` defaults to `use`.
## Examples
LangChain ships runnable examples in `examples/mcp/`:
-| Example | Shows | Notes |
-|---------|-------|-------|
-| `transports.py` | in-memory, stdio, and HTTP transports | one adapter, three targets |
-| `remote_server.py` | public MCP server (DeepWiki) | agent researches a GitHub repo |
-| `multi_server.py` | `MCPConfig` fleet with tool prefixing | two stdio servers |
-| `graph_factory.py` | per-user credentials in a `langgraph dev` graph | long-lived adapter, shared pool |
-| `protocol_eras.py` | legacy and modern era servers together | separate adapters per era |
-| `tool_errors.py` | tool failure and model recovery | agent retries on error |
-| `elicitation.py` | server requesting user input mid-call | form elicitation and resume |
-| `destructive_interrupt.py` | gating destructive tools | using `destructiveHint` metadata |
-| `auth_bearer.py` | static bearer token | simple auth example |
-| `auth_oauth.py` | OAuth 2.1 with dynamic client registration | full flow, browser redirect |
+| Example | Shows | Model | Network |
+|---------|-------|:-----:|:-------:|
+| `transports.py` | in-memory, stdio, HTTP transports | | |
+| `remote_server.py` | public MCP server (DeepWiki) | ✅ | ✅ |
+| `multi_server.py` | `MCPConfig` fleet with tool prefixing | ✅ | |
+| `graph_factory.py` | per-user credentials in a graph factory | | |
+| `protocol_eras.py` | legacy and modern era servers together | ✅ | |
+| `tool_errors.py` | tool failure and model recovery | ✅ | |
+| `elicitation.py` | server requesting user input mid-call | ✅ | |
+| `destructive_interrupt.py` | gating destructive tools via metadata | ✅ | |
+| `auth_bearer.py` | static bearer token | | |
+| `auth_oauth.py` | OAuth 2.1 with dynamic client registration | | |
Run examples with:
@@ -357,78 +513,84 @@ uv run examples/mcp/transports.py
Tools from `MCPAdapter.list_tools()` pass directly to `create_agent()`, which routes tool calls through the agent's model and executor. Tools remain callable after the adapter context exits because they hold a reference to the underlying client.
-### LangGraph Checkpointer
+```python
+async with MCPAdapter(target) as adapter:
+ tools = await adapter.list_tools()
+ agent = create_agent("anthropic:claude-sonnet-5", tools)
+
+# Tools are still callable after adapter context exits
+result = await agent.ainvoke({"messages": [...]})
+```
+
+### LangGraph Interrupts and Checkpointer
Elicitation-driven interrupts require a checkpointer so the run can pause and resume:
```python
from langgraph.checkpoint.memory import InMemorySaver
+from langchain.mcp.elicitation import ELICITATION_INTERRUPT_TYPE
agent = create_agent(
"anthropic:claude-sonnet-5",
tools,
checkpointer=InMemorySaver(),
)
+
config = {"configurable": {"thread_id": "user-1"}}
-paused = await agent.ainvoke({"messages": [...]}, config)
-# Human answers interrupt; resume with command
-resumed = await agent.ainvoke(Command(resume={...}), config)
+
+# First invocation pauses on elicitation interrupt
+paused = await agent.ainvoke(
+ {"messages": [{"role": "user", "content": "Approve deletion of file X"}]},
+ config,
+)
+
+# Check for interrupt
+if paused.values.get("interrupt"):
+ interrupt_data = paused.values["interrupt"]
+ # Handle based on interrupt_data["type"] == ELICITATION_INTERRUPT_TYPE
+ # ...
+
+ # Resume with answers
+ resumed = await agent.ainvoke(
+ {"interrupt_answers": {...}}, # Depends on your graph's schema
+ config,
+ )
```
-### Tool Middleware
+### Tool Metadata and Middleware
Agents can apply middleware to gate or log tool calls. MCP tool metadata (e.g., `destructiveHint`) integrates with `HumanInTheLoopMiddleware`:
```python
from langchain.agents.middleware import HumanInTheLoopMiddleware
+def _is_destructive(tool):
+ annotations = (tool.metadata or {}).get("mcp", {}).get("tool", {}).get("annotations", {})
+ return annotations.get("destructive_hint", False)
+
interrupt_on = {
tool.name: InterruptOnConfig(...)
for tool in tools
if _is_destructive(tool)
}
-agent = create_agent(..., middleware=[HumanInTheLoopMiddleware(interrupt_on=interrupt_on)])
-```
-
-## Configuration and Operations
-
-### Response Cache
-
-FastMCP caches tool lists and supports per-principal isolation. The adapter's `cache_mode` parameter controls cache use:
-
-- `"use"` (default) — serve from cache if fresh
-- `"refresh"` — refresh from server, repopulate cache
-- `"bypass"` — skip cache entirely
-```python
-tools = await adapter.list_tools(cache_mode="refresh")
-```
-
-For long-lived adapters, configure the cache on the client to persist across runs:
-
-```python
-cache = CacheConfig(
- store=InMemoryResponseCacheStore(),
- target_id="user-id",
- partition="user-partition"
-)
-client = Client(url, cache=cache)
-tools = await MCPAdapter(client).list_tools(cache_mode="use")
+agent = create_agent(..., middleware=[HumanInTheLoopMiddleware(interrupt_on=interrupt_on)])
```
-### Logging and Observability
+## Logging and Observability
-`MCPAdapter` and `as_langchain_tool()` are transparent to LangChain's logging and observability hooks. Tool calls are logged as `ToolMessage` events in the agent's message history. Elicitation interrupts and responses are visible in the run's state transitions.
+`MCPAdapter` and `as_langchain_tool()` are transparent to LangChain's logging and observability hooks. Tool calls are logged as `ToolMessage` events in the agent's message history. Elicitation interrupts and responses are visible in the run's state transitions via LangGraph's built-in tracing.
## Invariants and Failure Semantics
- **Tool availability**: Once `list_tools()` completes, tools remain callable even after the adapter context exits (they hold the client)
-- **Elicitation re-run**: When a tool is resumed with an answer, it is called again from the start. A server that works first and asks after repeats that work once per round
-- **Error propagation**: Transport errors propagate as exceptions; MCP tool errors (isError=True) become model-visible `ToolMessage` errors
+- **Elicitation re-run**: When a tool is resumed with an answer, the entire call is re-executed from the start. A server that performs work before asking repeats that work once per elicitation round
+- **Error propagation**: Transport errors propagate as exceptions; MCP tool errors (`isError=True`) become model-visible `ToolMessage` errors
- **Client reuse**: Clients are reentrant; a tool can open its client even if a connection is already held elsewhere
- **Pre-built client cloning**: If a caller passes a client with an existing elicitation handler, it is cloned so the caller's object is never mutated
-- **Group naming**: Tools from a `ClientGroup` are prefixed by config key; the router resolves each call to the correct member
+- **Group routing**: Tools from a `ClientGroup` are prefixed by config key; the router resolves each call to the correct member via `resolve_tool()`
- **No concurrent elicitation**: Elicitation answers are driven sequentially, one `interrupt()` per round, so LangGraph can match resume values by order
+- **String target validation**: A bare string target must be an http/https URL to prevent silent local file execution
## Extension Points
@@ -436,9 +598,9 @@ tools = await MCPAdapter(client).list_tools(cache_mode="use")
- **Custom auth**: Implement `httpx2.Auth` for authentication schemes beyond bearer token and OAuth
- **Custom metadata handler**: Subclass `StructuredTool` to customize how MCP metadata is exposed on the LangChain tool
- **Custom error handler**: Override `_handle_mcp_tool_error()` or provide your own `handle_tool_error` to the tool
-- **Custom interruption**: Provide a pre-built client with your own `elicitation_handler` to override the interrupt-driven default
+- **Custom elicitation**: Provide a pre-built client with your own `elicitation_handler` to override the interrupt-driven default
## Related Pages
-- **[tools.md](/openwiki/tools.md)** — LangChain tool abstractions, `BaseTool`, `StructuredTool`
-- **[agent-execution.md](/openwiki/agent-execution.md)** — agent orchestration, `create_agent`, tool routing
+- **[tools.md](/openwiki/tools.md)** — LangChain tool abstractions, `BaseTool`, `StructuredTool`, metadata
+- **[agent-factory.md](/openwiki/agent-factory.md)** — agent orchestration, `create_agent`, tool routing, middleware
diff --git a/openwiki/messages.md b/openwiki/messages.md
index f8c6db6da8..f4f01fdb15 100644
--- a/openwiki/messages.md
+++ b/openwiki/messages.md
@@ -3,9 +3,6 @@ type: "Architecture"
title: "Message Types and Content Representation"
description: "Document the message abstraction, standardized content blocks for multimodal LLM I/O, message hierarchy, and provider-specific block translators."
tags: [messages, content-blocks, chat-models, streaming, multimodal, provider-adapters]
-verified:
- - by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
sources:
- id: openwiki-source-77dc1fb726463969f9d53658
resource: repo://libs/core/langchain_core/messages/ai.py
@@ -30,6 +27,9 @@ sources:
- id: openwiki-source-498a9586e021b126ab8a8b42
resource: repo://libs/core/langchain_core/messages/utils.py
generated: { by: "openwiki/0.5.0", at: "2026-09-08T08:27:09.597Z" }
+verified:
+ - by: openwiki/0.5.0
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
diff --git a/openwiki/middleware.md b/openwiki/middleware.md
index a30f51de89..0c0a4d816c 100644
--- a/openwiki/middleware.md
+++ b/openwiki/middleware.md
@@ -1,8 +1,8 @@
---
type: "Reference"
title: "Agent Middleware: Composable Request/Response Processing"
-description: "Document the middleware system for agents, including lifecycle hooks, HITL approval, error handling, retry logic, and middleware composition patterns for intercepting and modifying agent behavior."
-tags: [agent-middleware, request-interception, composition, error-handling, human-in-the-loop]
+description: "Comprehensive guide to the middleware composition system: hook types, typing, payload transformations, and practical examples for hooking into model calls, tool calls, and agent lifecycle."
+tags: [agent-middleware, request-interception, composition, error-handling, human-in-the-loop, lifecycle-hooks]
sources:
- id: openwiki-source-71e882e1ac9757ea8e959a7c
resource: repo://libs/langchain_v1/langchain/agents/factory.py
@@ -14,10 +14,10 @@ sources:
resource: repo://libs/langchain_v1/langchain/agents/middleware/tool_error.py
- id: openwiki-source-03e8ca0eebe37feda8566793
resource: repo://libs/langchain_v1/langchain/agents/middleware/types.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-08T08:27:09.597Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
verified:
- by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
@@ -284,7 +284,7 @@ class ExtendedModelResponse(Generic[ResponseT]):
command: Command[Any] | None = None
```
-Middleware can return `ExtendedModelResponse` to apply a command that modifies state after the model node completes. Commands are applied through state reducers, so messages in commands are **added** to existing messages (not replaced).
+Middleware can return `ExtendedModelResponse` to apply a command that modifies state after the model node completes. Commands are applied through state reducers, so messages in commands are **added** to existing messages (not replaced). Non-reducer state fields in commands follow outermost-wins semantics: when multiple middleware return commands, the outermost middleware's values for non-reducer fields override inner ones, but `messages` fields accumulate.
### ToolCallRequest
@@ -301,6 +301,29 @@ class ToolCallRequest:
## Composition and Execution Order
+```mermaid
+sequenceDiagram
+ participant Agent
+ participant M1 as Middleware1
+ participant M2 as Middleware2
+ participant M3 as Middleware3
+ participant Model
+
+ Agent->>M1: wrap_model_call(request, handler)
+ M1->>M2: call handler (delegates to M2)
+ M2->>M3: call handler (delegates to M3)
+ M3->>Model: call handler (executes model)
+ Model->>M3: ModelResponse or ExtendedModelResponse
+ M3->>M3: Transform/collect commands (inner)
+ M3->>M2: Return result
+ M2->>M2: Transform/collect commands
+ M2->>M1: Return result
+ M1->>M1: Transform/collect commands (outer)
+ M1->>Agent: _ComposedExtendedModelResponse with all commands
+```
+
+This diagram shows hook execution order and how commands accumulate through the stack.
+
### Middleware Stack Execution
When middleware is registered as `[M1, M2, M3]`:
@@ -320,9 +343,13 @@ When middleware is registered as `[M1, M2, M3]`:
State updates from hooks are merged using LangGraph reducers. For the `messages` field (which uses `add_messages` reducer), updates accumulate rather than replace.
-**Command Accumulation**: When middleware returns `ExtendedModelResponse` with `Command`, multiple commands are accumulated in a list (inner-to-outer order). The agent applies them sequentially after the model node completes.
+**Command Accumulation**: When middleware returns `ExtendedModelResponse` with `Command`, multiple commands are accumulated in a list (inner-to-outer order). The agent applies them sequentially after the model node completes through the LangGraph state reducer system.
-**Reducer Semantics**: Non-reducer fields in later commands override earlier ones (outermost middleware wins). The `messages` field is special: reducer-based fields like `messages` accumulate through `add_messages`.
+**Reducer Semantics**:
+- **Messages field**: Uses `add_messages` reducer, so messages in commands are **added** to the existing message list rather than replacing it.
+- **Non-reducer fields**: Later commands overwrite earlier ones (outermost middleware wins). This means if multiple middleware return commands with state updates to the same field (other than `messages`), the outermost middleware's value takes precedence.
+
+Example: If M1 and M3 both return commands with `{"status": "value"}`, M1's value (outermost) is used.
## Writing Custom Middleware
@@ -417,6 +444,24 @@ class ConditionalToolMiddleware(AgentMiddleware):
return handler(request)
```
+### Returning Commands from Middleware
+
+```python
+from langchain.agents.middleware import AgentMiddleware, ExtendedModelResponse
+from langgraph.types import Command
+
+class CommandReturningMiddleware(AgentMiddleware):
+ def wrap_model_call(self, request, handler):
+ response = handler(request)
+
+ # Middleware can return ExtendedModelResponse with a Command
+ # This command will be applied after the model node completes
+ return ExtendedModelResponse(
+ model_response=response,
+ command=Command(update={"custom_field": "custom_value"})
+ )
+```
+
## Async and Sync Implementations
Middleware can provide sync-only, async-only, or both implementations. The agent will:
@@ -446,7 +491,7 @@ agent = create_agent(
)
```
-**Composition Rule**: First in the list = outermost (highest priority for interception and response transformation). The factory collects middleware with wrap_model_call and awrap_model_call hooks, composes them into a single middleware stack via internal composition functions, establishing an order where the first middleware becomes the outermost layer.
+**Composition Rule**: First in the list = outermost (highest priority for interception and response transformation). The factory collects middleware with wrap_model_call and awrap_model_call hooks, composes them into a single middleware stack via internal composition functions, establishing an order where the first middleware becomes the outermost layer. Commands from each layer are accumulated in inner-to-outer order and applied sequentially after model execution through LangGraph's reducer-based state system.
## Tracing and Observability
@@ -475,6 +520,7 @@ Middleware hooks are automatically named in trace spans as `{middleware_name}.{h
3. **State-Driven Decisions**: Use `request.state` and `runtime` to make decisions; avoid global state.
4. **Clear Composition Order**: Document which middleware should run first, especially when order matters (e.g., retry before error handling).
5. **Fallback Behavior**: Implement sync and async versions to support both execution paths.
+6. **Command Ordering**: When returning Commands, consider that multiple middleware commands stack—outermost middleware's non-reducer fields win.
### ❌ Anti-Patterns
@@ -483,13 +529,14 @@ Middleware hooks are automatically named in trace spans as `{middleware_name}.{h
3. **Hard-Coded Assumptions**: Don't assume specific tool names or message formats without validation.
4. **Blocking Async**: Never use `asyncio.run()` or sync I/O in async middleware implementations.
5. **Over-Composition**: Don't add more middleware than necessary; each layer adds latency.
+6. **Ignoring Command Semantics**: Don't assume Command fields will accumulate like messages; remember that non-reducer fields follow outermost-wins semantics.
## Key Invariants and Lifecycle
- **Immutability**: `ModelRequest` and `ToolCallRequest` follow an immutable pattern; use override/replace methods.
- **Execution Order**: Middleware runs in registration order (first = outermost). Multiple calls within a middleware (retries) do not reorder subsequent middleware.
-- **State Reducer Semantics**: State updates via dict returns merge using reducer semantics. Messages accumulate; non-reducer fields are overwritten by the most recent update.
-- **Command Flow**: `ExtendedModelResponse` commands are collected (inner-to-outer) and applied after the model node completes.
+- **State Reducer Semantics**: State updates via dict returns merge using reducer semantics. Messages accumulate via `add_messages`; non-reducer fields are overwritten by the most recent update.
+- **Command Flow**: `ExtendedModelResponse` commands are collected (inner-to-outer) and applied after the model node completes through LangGraph reducers.
- **Sync/Async Consistency**: Choosing execution path (sync or async) is determined at agent invocation time; middleware cannot switch contexts mid-execution.
- **Exception Propagation**: Exceptions that are not explicitly handled propagate to the caller, unless a middleware converts them to a message or command.
diff --git a/openwiki/model-initialization.md b/openwiki/model-initialization.md
index 8030e731fb..b45e224c00 100644
--- a/openwiki/model-initialization.md
+++ b/openwiki/model-initialization.md
@@ -3,13 +3,13 @@ type: Factory
title: Chat Model Initialization with init_chat_model
description: Factory function for instantiating chat models from provider strings with unified configuration and runtime model switching.
tags: [chat-models, factory-pattern, initialization, model-parameters, configuration, provider-registry]
-verified:
- - by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
sources:
- id: openwiki-source-c479d4fffee5cf62576699e4
resource: repo://libs/langchain_v1/langchain/chat_models/base.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-21T08:30:16.745Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
+verified:
+ - by: openwiki/0.5.0
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
@@ -124,7 +124,7 @@ If inference fails and `model_provider` is not provided, a `ValueError` lists su
The `_BUILTIN_PROVIDERS` dictionary maps provider names to module paths, class names, and instantiation functions. Each entry is a tuple: `(module_path, class_name, creator_func)`.
-**All 32 Built-in Providers** (repo://libs/langchain_v1/langchain/chat_models/base.py#L56-L97):
+**All 30 Built-in Providers** (repo://libs/langchain_v1/langchain/chat_models/base.py#L56-L99):
| Provider | Package | Class | Module | Notes |
|---|---|---|---|---|
@@ -138,6 +138,8 @@ The `_BUILTIN_PROVIDERS` dictionary maps provider names to module paths, class n
| `anthropic_bedrock` | `langchain-aws` | `ChatAnthropicBedrock` | `langchain_aws` | Bedrock-hosted Anthropic |
| `bedrock` | `langchain-aws` | `ChatBedrock` | `langchain_aws` | Generic Bedrock models |
| `bedrock_converse` | `langchain-aws` | `ChatBedrockConverse` | `langchain_aws` | Bedrock Converse API |
+| `bedrock_mantle_anthropic` | `langchain-aws` | `ChatAnthropicMantle` | `langchain_aws` | Bedrock Mantle (Anthropic) |
+| `bedrock_mantle_openai` | `langchain-aws` | `ChatOpenAIMantle` | `langchain_aws` | Bedrock Mantle (OpenAI) |
| `cohere` | `langchain-cohere` | `ChatCohere` | `langchain_cohere` | |
| `deepseek` | `langchain-deepseek` | `ChatDeepSeek` | `langchain_deepseek` | |
| `fireworks` | `langchain-fireworks` | `ChatFireworks` | `langchain_fireworks` | |
diff --git a/openwiki/openai-provider.md b/openwiki/openai-provider.md
index 1a463f549d..a04cb1e4b1 100644
--- a/openwiki/openai-provider.md
+++ b/openwiki/openai-provider.md
@@ -12,10 +12,10 @@ sources:
resource: repo://libs/partners/openai/langchain_openai/chat_models/base.py
- id: openwiki-source-74e5bef080f1af7da12371cf
resource: repo://libs/partners/openai/langchain_openai/data/_profiles.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-21T08:30:16.745Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
verified:
- by: openwiki/0.5.0
- at: 2026-09-22T08:27:06.345Z
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
@@ -36,7 +36,7 @@ The OpenAI integration (`langchain-openai`) provides production-ready chat model
**Package**: `repo://libs/partners/openai/langchain_openai/`
-**Main Class**: `repo://libs/partners/openai/langchain_openai/chat_models/base.py#L2829-L3750`
+**Main Class**: `repo://libs/partners/openai/langchain_openai/chat_models/base.py#L2904-L4266`
**Exports**: `repo://libs/partners/openai/langchain_openai/__init__.py`
@@ -1152,3 +1152,5 @@ model = ChatOpenAI(
- `/openwiki/model-initialization.md`: Factory function `init_chat_model()` for provider-agnostic model selection
- `/openwiki/chat-models.md`: Core `BaseChatModel` interface and lifecycle
- `/openwiki/messages.md`: Message types and content blocks (text, images, tool calls)
+- `/openwiki/partner-pattern.md`: Partner package patterns and extension points
+- `/openwiki/structured-output.md`: Structured output patterns and schema validation
diff --git a/openwiki/partner-pattern.md b/openwiki/partner-pattern.md
index b4b817652f..f5c17a1c85 100644
--- a/openwiki/partner-pattern.md
+++ b/openwiki/partner-pattern.md
@@ -39,7 +39,7 @@ sources:
generated: { by: "openwiki/0.5.0", at: "2026-09-22T08:27:06.345Z" }
verified:
- by: openwiki/0.5.0
- at: 2026-09-22T08:27:06.345Z
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
diff --git a/openwiki/prompts.md b/openwiki/prompts.md
index 46175b5655..8361c5eb5d 100644
--- a/openwiki/prompts.md
+++ b/openwiki/prompts.md
@@ -3,9 +3,6 @@ type: "Concept"
title: "Prompt Templates and Few-Shot Learning"
description: "Prompt templates define message sequences and variable substitution patterns for chat models. Few-shot learning selects examples dynamically to teach models by example."
tags: [prompt, template, few-shot, example-selection, variable-substitution, structured-output]
-verified:
- - by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
sources:
- id: openwiki-source-1f4e0a5b877db4f050f2a34c
resource: repo://libs/core/langchain_core/example_selectors/base.py
@@ -26,6 +23,9 @@ sources:
- id: openwiki-source-204b5e61a019044332bd2dd4
resource: repo://libs/core/langchain_core/prompts/structured.py
generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }
+verified:
+ - by: openwiki/0.5.0
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
diff --git a/openwiki/quickstart.md b/openwiki/quickstart.md
index 5b4214f1e4..f758b31003 100644
--- a/openwiki/quickstart.md
+++ b/openwiki/quickstart.md
@@ -43,7 +43,7 @@ sources:
generated: { by: "openwiki/0.5.0", at: "2026-09-21T08:30:16.745Z" }
verified:
- by: openwiki/0.5.0
- at: 2026-09-22T08:27:06.345Z
+ at: 2026-09-28T08:35:20.640Z
---
## Welcome to LangChain Development
diff --git a/openwiki/runnables.md b/openwiki/runnables.md
index 2c40cbd701..249d51d4c9 100644
--- a/openwiki/runnables.md
+++ b/openwiki/runnables.md
@@ -3,9 +3,6 @@ type: "Concept"
title: "Runnable: Core Composition Layer"
description: "Explain the Runnable protocol and how it enables composable chaining of LLM components through the LangChain Expression Language (LCEL)."
tags: [runnable, lcel, composition, invoke, stream, batch, async, chaining]
-verified:
- - by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
sources:
- id: openwiki-source-a1981e868973f6fd7f71e12e
resource: repo://libs/core/langchain_core/runnables/base.py
@@ -18,6 +15,9 @@ sources:
- id: openwiki-source-ebe3f825462d0b4a14ee3717
resource: repo://libs/core/langchain_core/runnables/retry.py
generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }
+verified:
+ - by: openwiki/0.5.0
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
diff --git a/openwiki/source-map.md b/openwiki/source-map.md
index 1c4ec853e7..02b6b9b532 100644
--- a/openwiki/source-map.md
+++ b/openwiki/source-map.md
@@ -44,10 +44,10 @@ sources:
resource: repo://libs/partners/openai/langchain_openai/chat_models/base.py
- id: openwiki-source-bd29e79613d5f366a00068f5
resource: repo://libs/standard-tests/langchain_tests/base.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-22T08:27:06.345Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
verified:
- by: openwiki/0.5.0
- at: 2026-09-22T08:27:06.345Z
+ at: 2026-09-28T08:35:20.640Z
---
## Overview
@@ -89,7 +89,7 @@ This page provides a quick reference for locating code by topic in the LangChain
```
/libs/
-├── core/ # langchain-core: Base abstractions (v1.6.4)
+├── core/ # langchain-core: Base abstractions (v1.6.5)
│ ├── langchain_core/
│ │ ├── language_models/ # BaseChatModel and language model abstractions
│ │ ├── messages/ # Message types and content blocks
@@ -267,7 +267,7 @@ The `BaseTool` in `repo://libs/core/langchain_core/tools/base.py` provides:
```
User Applications
├─→ langchain (v1.4.2)
- │ ├─→ langchain-core (v1.6.4)
+ │ ├─→ langchain-core (v1.6.5)
│ └─→ LangGraph (state machines)
│
├─→ langchain-core (direct use)
diff --git a/openwiki/streaming.md b/openwiki/streaming.md
index ba4ce18fd9..0fc3e17357 100644
--- a/openwiki/streaming.md
+++ b/openwiki/streaming.md
@@ -5,7 +5,7 @@ description: "How streaming works across LLM components and chains, token-by-tok
tags: [streaming, token-streaming, llm-output, chat-models, callbacks, astream, real-time-feedback]
verified:
- by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+ at: 2026-09-28T08:35:20.640Z
sources:
- id: openwiki-source-c9313cf42f0120d86b20245f
resource: repo://libs/core/langchain_core/callbacks/base.py
@@ -17,9 +17,17 @@ sources:
resource: repo://libs/core/langchain_core/language_models/chat_models.py
- id: openwiki-source-77dc1fb726463969f9d53658
resource: repo://libs/core/langchain_core/messages/ai.py
+ - id: openwiki-source-b32b84365d17276620c41ebc
+ resource: repo://libs/core/langchain_core/messages/base.py
+ - id: openwiki-source-8bb392f5dbc1fe7faaf52430
+ resource: repo://libs/core/langchain_core/messages/human.py
+ - id: openwiki-source-dad8cfeb38a829e03e165986
+ resource: repo://libs/core/langchain_core/messages/system.py
- id: openwiki-source-a1981e868973f6fd7f71e12e
resource: repo://libs/core/langchain_core/runnables/base.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-21T08:30:16.745Z" }
+ - id: openwiki-source-ff9b926753e6cc6fe87acfe7
+ resource: repo://libs/langchain_v1/tests/unit_tests/agents/test_agent_streaming.py
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
---
## Overview
@@ -97,20 +105,41 @@ async for chunk in model.astream(messages):
final_message = sum(chunks) # Merge via + operator
```
-## AIMessageChunk: Incremental Content
+## Message Chunks: Types and Composition
**Location**: `repo://libs/core/langchain_core/messages/ai.py#L418-L536`
-`AIMessageChunk` is the message type yielded during streaming. Unlike `AIMessage`, it represents a **partial, incremental update** to a conversation message and supports merging via the `+` operator.
+During streaming, models emit **chunk variants** of standard message types. All chunk types inherit from `BaseMessageChunk` and are designed to be **mergeable** via the `+` operator, enabling efficient aggregation of streaming output.
+
+### Message Chunk Types
+
+Each core message type has a corresponding chunk variant:
+
+- **`AIMessageChunk`**: Emitted by chat models during streaming. Contains:
+ - `content`: String or list of content blocks (delta for that step).
+ - `tool_call_chunks`: List of `ToolCallChunk` objects (incomplete tool calls being streamed).
+ - `chunk_position`: Optional `"last"` sentinel signaling stream completion.
+ - `response_metadata`: Model metadata (latency, provider, usage counts, etc.).
+
+- **`HumanMessageChunk`**: Represents incremental user input. Used in streaming scenarios where user messages arrive in chunks (e.g., real-time voice transcription or chunked uploads).
+
+- **`SystemMessageChunk`**: Represents incremental system prompt updates. Less common than AIMessageChunk but available for consistency.
-### Structure
+- **`ToolMessageChunk`**: Represents incremental tool results. Supports streaming tool outputs that arrive in chunks (e.g., file downloads, streaming API responses).
+All chunk types support the `+` operator for merging, making them composable at any level of a streaming pipeline.
+
+### AIMessageChunk Structure
+
+`AIMessageChunk` is the message type yielded during streaming. Unlike `AIMessage`, it represents a **partial, incremental update** to a conversation message and supports merging via the `+` operator.
+
+**Fields**:
- **content**: String or list of content blocks (when `output_version="v1"`). During streaming, each chunk contains only the new token(s) or delta for that step. Content accumulates across chunks: text chunks concatenate, JSON chunks may append partial objects or arrays.
- **tool_call_chunks**: List of `ToolCallChunk` objects (incomplete tool calls being streamed). These are progressively updated as the model produces call ID, function name, and argument JSON. Arguments are accumulated and parsed incrementally via `parse_partial_json()`.
- **chunk_position**: Optional sentinel; when set to `"last"`, indicates the final chunk in the stream, triggering finalization of tool calls and reasoning blocks. When this chunk is aggregated, `tool_call_chunks` are parsed into complete `tool_calls` and `invalid_tool_calls` via the `init_tool_calls()` validator.
- **response_metadata**: Model-specific metadata (latency, model_provider, usage counters, finish reason, etc.) attached by the streaming handler. Metadata is merged across chunks, with usage counts summed.
-### Merging and Aggregation
+### Merging Chunks via the + Operator
Streaming chunks accumulate via the `+` operator (implemented in `add_ai_message_chunks()`), which:
@@ -138,13 +167,108 @@ for tool_call in final_message.tool_calls:
print(tool_call["name"], tool_call["args"])
```
+### Chunk Composition Flow
+
+The following diagram shows how chunks flow through a streaming pipeline and merge into complete messages:
+
+```mermaid
+sequenceDiagram
+ participant Model
+ participant StreamIterator as stream()<br/> Iterator
+ participant Callback as on_llm_new_token<br/> Callback
+ participant Aggregator as Chunk<br/> Accumulator
+ participant Merger as Chunk<br/> Merge (+ op)
+ participant Complete as Final<br/> AIMessage
+
+ Model->>StreamIterator: yield AIMessageChunk<br/> content="Hello"
+ StreamIterator->>Callback: fire on_llm_new_token<br/> token="Hello"
+ StreamIterator->>Aggregator: buffer chunk
+ StreamIterator-->>Model: pull next
+
+ Model->>StreamIterator: yield AIMessageChunk<br/> content=" world"
+ StreamIterator->>Callback: fire on_llm_new_token<br/> token=" world"
+ StreamIterator->>Aggregator: buffer chunk
+ StreamIterator-->>Model: pull next
+
+ Model->>StreamIterator: yield AIMessageChunk<br/> chunk_position="last"
+ StreamIterator->>Callback: fire on_llm_new_token<br/> token=""
+ StreamIterator->>Aggregator: buffer chunk
+
+ Note over Aggregator: All chunks buffered
+ Aggregator->>Merger: merge chunks:<br/> chunk1 + chunk2 + chunk_last
+ Merger->>Complete: single AIMessage<br/> with finalized tool_calls
+ Callback->>Callback: fire on_llm_end<br/> with merged result
+```
+
+The diagram shows how token-by-token chunks are yielded immediately, callbacks are fired for real-time observation, and final aggregation occurs only at the end.
+
+## Token-Level Streaming in Action
+
+Streaming operates at the **token level**, not the message level. Here's how tokens flow through a typical streaming sequence:
+
+### Text Token Streaming
+
+```python
+# Model generates: "The capital of France is Paris"
+
+from langchain_core.callbacks import StreamingStdOutCallbackHandler
+
+messages = [HumanMessage("What is the capital of France?")]
+callback = StreamingStdOutCallbackHandler()
+
+for chunk in model.stream(messages, config=RunnableConfig(callbacks=[callback])):
+ # Each iteration receives one chunk
+ # Chunks might be: "The", " capital", " of", " France", " is", " Paris"
+ # callback.on_llm_new_token fires for each, writing to stdout immediately
+
+ # chunk.content is the token string
+ # chunk.tool_call_chunks is empty (no tools called)
+ # chunk.response_metadata has model latency, provider, etc.
+ pass
+```
+
+The `StreamingStdOutCallbackHandler` writes each token to stdout immediately, producing real-time text output without waiting for the full response.
+
+### Tool Call Streaming
+
+Tool call arguments stream across multiple chunks:
+
+```python
+# Model generates a tool call with JSON args:
+# get_weather(city="Paris", unit="celsius")
+
+chunks = []
+async for chunk in model.astream(messages):
+ chunks.append(chunk)
+
+ # Each chunk might contain partial tool call data:
+ # Chunk 1: tool_call_chunks=[{"id": "tc1", "name": "get_weather", "args": ""}]
+ # Chunk 2: tool_call_chunks=[{"id": "tc1", "name": "get_weather", "args": "{\"ci"}]
+ # Chunk 3: tool_call_chunks=[{"id": "tc1", "name": "get_weather", "args": "...ty\":\"Paris\",\"unit\":"}]
+ # Chunk 4: tool_call_chunks=[{"id": "tc1", "name": "get_weather", "args": "...\"celsius\"}"]
+ # Chunk 5 (last): chunk_position="last" triggers finalization
+
+ if chunk.tool_call_chunks:
+ for tc in chunk.tool_call_chunks:
+ # parse_partial_json handles incomplete JSON gracefully
+ args = parse_partial_json(tc.get("args", ""))
+ print(f"Tool: {tc['name']}, partial args: {args}")
+
+# Merge to get final message with complete tool_calls
+final_message = sum(chunks[1:], chunks[0])
+for tool_call in final_message.tool_calls:
+ print(f"Final: {tool_call['name']}({tool_call['args']})")
+```
+
+At each step, callbacks and custom handlers can observe partial tool call construction, enabling real-time visibility into tool invocation even before arguments are complete.
+
## Callback Integration: on_llm_new_token
**Location**: `repo://libs/core/langchain_core/callbacks/base.py#L65-L88`
The `on_llm_new_token` callback fires for each token or chunk during streaming, enabling real-time observation and logging.
-### Signature
+### Callback Signature
```python
def on_llm_new_token(
@@ -165,7 +289,7 @@ def on_llm_new_token(
- **parent_run_id**: ID of the parent run (chain or agent) that invoked this model.
- **tags**: Inheritable tags from the calling context, useful for filtering or routing callbacks.
-### Example: Stream to stdout
+### Built-in: StreamingStdOutCallbackHandler
```python
from langchain_core.callbacks import StreamingStdOutCallbackHandler
@@ -188,13 +312,33 @@ Create custom callbacks by subclassing `BaseCallbackHandler`:
```python
from langchain_core.callbacks import BaseCallbackHandler
+from typing import Any
class MyStreamingCallback(BaseCallbackHandler):
def on_llm_new_token(self, token: str, **kwargs: Any) -> None:
# Send token to WebSocket, log to database, etc.
websocket.send_json({"token": token})
+
+ def on_llm_end(self, response, **kwargs: Any) -> None:
+ # Final response complete
+ websocket.send_json({"status": "complete"})
+
+ def on_llm_error(self, error: Exception, **kwargs: Any) -> None:
+ # Error occurred during streaming
+ websocket.send_json({"error": str(error)})
```
+### LangSmith Integration
+
+LangSmith automatically captures streaming via callbacks. When you use `stream()` with LangSmith callbacks attached:
+
+1. **run_id** from `on_llm_new_token` is used to trace the streaming operation.
+2. Each token fires `on_llm_new_token`, allowing LangSmith to record token-level granularity.
+3. `on_llm_end` provides the final merged result, allowing LangSmith to record total latency and token counts.
+4. If streaming fails, `on_llm_error` records the failure with partial results.
+
+LangSmith projects these traces in the UI as token-by-token progress, enabling real-time observability of model streaming behavior.
+
## Streaming Through Chains
Streaming flows through chains composed of runnables (prompts, models, parsers). The streaming protocol is implemented at each stage via the `stream()` and `transform()` methods on `Runnable`.
@@ -290,6 +434,104 @@ for text_delta in stream.text: # Only text events
print(text_delta)
```
+## Streaming in Agent Execution
+
+**Location**: `repo://libs/langchain_v1/tests/unit_tests/agents/test_agent_streaming.py`
+
+Agents created via `create_agent()` support streaming execution via `stream_events(version="v3")` on the returned agent graph. This enables real-time visibility into:
+
+### Agent-Level Streaming
+
+- **Tool calls**: Each tool call is tracked as it's generated, with its ID, name, and arguments accumulating incrementally.
+- **Tool outputs**: When tools emit output deltas (via `runtime.emit_output_delta()`), these are visible in the stream as they arrive.
+- **Messages**: The full conversation history updates as the agent runs, with each turn visible immediately.
+- **Subgraphs**: When agent tools invoke nested agents, subgraph handles expose their own tool call projections, enabling hierarchical visibility.
+
+### Tool Output Streaming
+
+Tools can emit output deltas mid-execution:
+
+```python
+from langchain_core.tools import tool
+from langchain.tools import ToolRuntime
+
+@tool
+def long_running_task(query: str, runtime: ToolRuntime) -> str:
+ """A task that streams output as it runs."""
+ for chunk in process_incrementally(query):
+ # Emit partial output immediately
+ runtime.emit_output_delta(chunk)
+
+ # Return final result
+ return compute_final_result(query)
+
+# When streaming the agent:
+for item in agent.stream_events({"messages": [HumanMessage("go")]}, version="v3"):
+ if item.get("type") == "tool_output_delta":
+ print(f"Tool emitted: {item['content']}")
+```
+
+The agent stream captures these deltas in real-time, making them visible to observers before the tool completes.
+
+### Agentic Loop Streaming
+
+The agent execution loop itself can be streamed:
+
+```python
+from langchain.agents import create_agent
+
+agent = create_agent(model, tools)
+
+# Stream events from the agent graph
+for event in agent.stream_events(
+ {"messages": [HumanMessage("Question")]},
+ version="v3"
+):
+ # Event types: "on_llm_start", "on_llm_new_token", "on_tool_start",
+ # "on_tool_end", "on_chain_end", custom events, etc.
+ if event["type"] == "on_llm_new_token":
+ print(f"Token: {event['content']}")
+ elif event["type"] == "on_tool_start":
+ print(f"Tool: {event['tool']}")
+ elif event["type"] == "on_tool_end":
+ print(f"Tool result: {event['output']}")
+```
+
+### Tool Call Streaming with Projections
+
+The most convenient way to stream agent execution is via projections:
+
+```python
+run = agent.stream_events({"messages": [HumanMessage("go")]}, version="v3")
+
+# Stream tool calls as they're generated
+for tool_call in run.tool_calls:
+ print(f"Tool call: {tool_call.tool_name}")
+ print(f"Args: {tool_call.args}")
+
+ # Stream tool output deltas if the tool emits them
+ for output_delta in tool_call.output_deltas:
+ print(f"Output: {output_delta}")
+
+# Also available: run.messages, run.text, run.usage, run.output
+```
+
+### Hierarchical Agent Streaming
+
+When agents invoke sub-agents via tools:
+
+```python
+# Outer agent calls a tool that delegates to an inner agent
+for event in outer_agent.stream_events({...}, version="v3"):
+ if event_type == "subgraph":
+ # A sub-agent ran; access its projections
+ subgraph = event["subgraph"]
+ for inner_tool_call in subgraph.tool_calls:
+ print(f"Inner tool: {inner_tool_call.tool_name}")
+```
+
+Streaming hierarchical agents allows observing both the outer loop (which tools the outer agent calls) and inner loops (which tools nested agents call), providing full visibility into complex agent compositions.
+
## Memory and Latency Trade-offs: stream() vs invoke()
### invoke()
@@ -324,24 +566,6 @@ When streaming with `stream_events()` (v3):
- **Bounded buffering**: The projection buffers events only until the consumer reads them. A slow consumer will naturally slow the producer, preventing unbounded memory growth.
- **Multiple independent consumers**: Multiple `for` loops over different projections (e.g., `.text` and `.tool_calls`) can replay all events from the buffer, supporting diverse consumption patterns without re-running the model.
-## Streaming in Agent Execution
-
-Agents can stream their execution via `stream_events(version="v3")` on the agent graph returned by `create_agent()`. This allows observing:
-
-- **Tool calls**: Projected via `.tool_calls`, tracking which tools are called and their arguments as they accumulate.
-- **Tool outputs**: Deltas from tool execution, including streaming outputs from tools that emit output deltas.
-- **Messages**: The full conversation history as it evolves.
-- **Subgraphs**: When agents invoke sub-agents (via tools that call inner agents), subgraph handles expose their own projections for nested visibility.
-
-**Stream modes** (langgraph):
-
-- **"updates"**: Yields node updates—which node ran and what state it produced.
-- **"values"**: Yields full state snapshots after each node completes.
-- **"messages"**: Yields only message updates.
-- **"custom"**: User-defined stream events fired by tools or middleware via `emit()` or `runtime.emit_output_delta()`.
-
-Agent streaming enables real-time visibility into loop execution and tool interaction without blocking on the full agent run.
-
## Best Practices for Streaming
1. **Flush output immediately**: When displaying streaming output in web or terminal, flush buffers after each chunk to ensure immediate visibility.
@@ -363,3 +587,7 @@ Agent streaming enables real-time visibility into loop execution and tool intera
6. **Disable streaming selectively**: For long-running operations or when you need predictable latency, use `invoke()` instead of `stream()`, or pass `stream=False` to override the default.
7. **Test both sync and async paths**: Streaming behavior may differ between `stream()` and `astream()` depending on model implementation and callback executors. Test both for your use case.
+
+8. **Observe tool calls incrementally**: When tools are involved, use `on_llm_new_token` with full `chunk` inspection to see tool call arguments accumulating, enabling early detection of tool invocation intent before arguments are complete.
+
+9. **Use `stream_events()` for complex workflows**: For agents, hierarchical tools, and workflows with multiple streaming sources, prefer `stream_events(version="v3")` for precise event-level control and pull-based backpressure.
diff --git a/openwiki/structured-output.md b/openwiki/structured-output.md
index f8d186ed97..1c7ffe59b9 100644
--- a/openwiki/structured-output.md
+++ b/openwiki/structured-output.md
@@ -1,19 +1,19 @@
---
type: "Reference"
-title: "AutoStrategy (recommended)"
-openwiki_generated: true
+title: "Structured Output and Response Formatting"
+description: "Document the structured output system: response format specification, strategy selection (auto, provider, tool-based), parsing, validation, and middleware integration."
+tags: [structured-output, response-format, agent, schema, validation, middleware]
verified:
- by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+ at: 2026-09-28T08:35:20.640Z
sources:
- id: openwiki-source-71e882e1ac9757ea8e959a7c
resource: repo://libs/langchain_v1/langchain/agents/factory.py
- id: openwiki-source-ec30ab6256dd50cc670919f6
resource: repo://libs/langchain_v1/langchain/agents/structured_output.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
---
-
## Overview
Structured output is the mechanism that ensures a language model returns responses matching a specific JSON schema. Rather than receiving unparsed text or tool calls, agents can enforce that model outputs conform to Pydantic models, dataclasses, TypedDicts, or raw JSON schemas. The factory configures one of three strategies—tool-based, provider-native, or automatic—each with different tradeoffs around compatibility, validation, and retry behavior.
@@ -338,7 +338,24 @@ To enable validation and retries, express schemas as Pydantic models or TypedDic
The agent state includes structured output handling via:
- **messages**: Includes tool calls and tool messages from structured output invocation
-- **structured_response**: Holds the parsed schema instance (set when output is valid, cleared on error retry)
+- **structured_response**: Holds the parsed schema instance (set when output is valid, cleared on error retry or when no structured output is produced)
+
+### Structured Response Clearing
+
+The `_build_commands()` function ensures that `structured_response` field is explicitly cleared when:
+
+1. Agent is configured with `response_format` (has_structured_output = True)
+2. Model invocation did not produce a structured response
+
+This prevents stale values from previous checkpointed turns in persistent agent state. The clearing happens in the state update passed to the graph:
+
+```python
+state: dict[str, Any] = {"messages": messages}
+if model_response.structured_response is not None:
+ state["structured_response"] = model_response.structured_response
+elif has_structured_output:
+ state["structured_response"] = None # Explicitly clear to avoid stale values
+```
### Lifecycle Events
@@ -363,7 +380,7 @@ Return to user or continue loop
## Configuration and Middleware
-Middleware can override `response_format` at invocation time via `ModelRequest.override()`:
+Raw schemas and strategy decisions are passed to middleware via `ModelRequest.response_format`. Middleware can override `response_format` at invocation time via `ModelRequest.override()`:
```python
class MyMiddleware(AgentMiddleware):
diff --git a/openwiki/tools.md b/openwiki/tools.md
index c848861b56..41fe627f29 100644
--- a/openwiki/tools.md
+++ b/openwiki/tools.md
@@ -5,7 +5,7 @@ description: "LangChain's tool system enables agents and language models to exec
tags: ["tool", "agent", "schema", "runnable", "execution"]
verified:
- by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+ at: 2026-09-28T08:35:20.640Z
sources:
- id: openwiki-source-9861ba5cf0c42c142cf732f9
resource: repo://libs/core/langchain_core/messages/tool.py
diff --git a/openwiki/unit-tests.md b/openwiki/unit-tests.md
index 35568833b9..f12dd7bc3e 100644
--- a/openwiki/unit-tests.md
+++ b/openwiki/unit-tests.md
@@ -1,11 +1,11 @@
---
type: "Testing & QA"
-title: "Unit Testing: Strategies and Patterns"
-description: "How to write unit tests for langchain-core and langchain components using pytest, fixtures, mocking, and standard test classes from langchain-tests."
-tags: [unit-tests, pytest, testing, fixtures, mocking, chat-models, tools, embeddings, type-checking, mypy]
+title: "Unit Testing and Mocking"
+description: "Guide to writing unit tests: test structure, mocking chat models, fixtures, assertions, and test coverage for agents and components."
+tags: [unit-tests, pytest, testing, fixtures, mocking, chat-models, tools, agents, integration, assertions]
verified:
- by: openwiki/0.5.0
- at: 2026-09-21T08:30:16.745Z
+ at: 2026-09-28T08:35:20.640Z
sources:
- id: openwiki-source-8f1875229ad4a704c8e20a06
resource: repo://libs/core/Makefile
@@ -25,6 +25,18 @@ sources:
resource: repo://libs/core/tests/unit_tests/runnables/test_runnable.py
- id: openwiki-source-5839db669f618a6d604790ca
resource: repo://libs/core/tests/unit_tests/stubs.py
+ - id: openwiki-source-fffa23f844d6fa8ec39f3357
+ resource: repo://libs/langchain_v1/tests/unit_tests/agents/any_str.py
+ - id: openwiki-source-09fd21baed875d7f9c53a492
+ resource: repo://libs/langchain_v1/tests/unit_tests/agents/conftest.py
+ - id: openwiki-source-18a5b32f36bc87fa2d5237e3
+ resource: repo://libs/langchain_v1/tests/unit_tests/agents/messages.py
+ - id: openwiki-source-6904a2d923d0abd0c1af93bd
+ resource: repo://libs/langchain_v1/tests/unit_tests/agents/model.py
+ - id: openwiki-source-ff9b926753e6cc6fe87acfe7
+ resource: repo://libs/langchain_v1/tests/unit_tests/agents/test_agent_streaming.py
+ - id: openwiki-source-08ccfc598e3f10e8eea9ded3
+ resource: repo://libs/langchain_v1/tests/unit_tests/agents/test_invalid_tool_calls.py
- id: openwiki-source-bd29e79613d5f366a00068f5
resource: repo://libs/standard-tests/langchain_tests/base.py
- id: openwiki-source-3eb9100e02f9d70098d1b30d
@@ -33,14 +45,14 @@ sources:
resource: repo://libs/standard-tests/langchain_tests/unit_tests/embeddings.py
- id: openwiki-source-a6b31954b6df57580d0f3ed0
resource: repo://libs/standard-tests/langchain_tests/unit_tests/tools.py
-generated: { by: "openwiki/0.5.0", at: "2026-09-21T08:30:16.745Z" }
+generated: { by: "openwiki/0.5.0", at: "2026-09-28T08:35:20.640Z" }
---
## Overview
Unit testing in LangChain covers components in isolation without network calls or external API dependencies. Tests live in `tests/unit_tests/` directories and are run via `make test` or `uv run --group test pytest` with strict socket restrictions and parallelization.
-This page covers the test infrastructure, standard test classes for chat models and tools, common patterns (fixtures, parametrization, mocking, callbacks, snapshot testing), and type checking with mypy.
+This page covers the test infrastructure, standard test classes for chat models and tools, agent-specific testing patterns (state transitions, middleware behavior, tool calls), fixtures, mocking strategies, callbacks, and assertions for testing agents and components.
## Test Structure and Organization
@@ -235,11 +247,74 @@ class TestMyToolUnit(ToolsUnitTests):
- Tool schema generation (JSON schema)
- Initialization from environment variables
+## Mocking Chat Models for Agent Testing
+
+### FakeToolCallingModel
+
+For testing agents and structured workflows without API calls, use `FakeToolCallingModel` from the test utilities:
+
+```python
+from tests.unit_tests.agents.model import FakeToolCallingModel
+from langchain_core.messages import ToolCall
+
+# Script predictable tool calls
+model = FakeToolCallingModel(
+ tool_calls=[
+ [ToolCall(name="get_weather", args={"city": "Paris"}, id="call_1")],
+ [], # No tool call on second turn (finish)
+ ]
+)
+```
+
+**Features**:
+- **tool_calls**: List of lists, where each inner list is tool calls for a turn
+- **structured_response**: Response for structured output mode (BaseModel, dataclass, or dict)
+- **index**: Auto-incrementing counter for multi-turn testing
+- **tool_style**: Style for `bind_tools()` output — "openai" (default) or "anthropic"
+
+**Example with structured output**:
+
+```python
+from pydantic import BaseModel
+
+class WeatherResponse(BaseModel):
+ city: str
+ temperature: int
+
+model = FakeToolCallingModel(
+ structured_response=WeatherResponse(city="Paris", temperature=20)
+)
+result = model.invoke([...], response_format=...)
+```
+
+### Invalid Tool Call Handling
+
+Test agent behavior when models return malformed tool calls:
+
+```python
+from langchain_core.messages import AIMessage
+
+# Simulate a model returning invalid JSON in tool args
+message = AIMessage(
+ content="",
+ invalid_tool_calls=[
+ {
+ "name": "get_weather",
+ "args": '{"city":', # Truncated JSON
+ "id": "call_1",
+ "error": "Invalid JSON",
+ }
+ ],
+)
+```
+
+The agent's error handling produces a `ToolMessage` with `status="error"` containing the error details, allowing the agent to recover on the next turn.
+
## Shared Fixtures and Configuration
### conftest.py Patterns
-The root `conftest.py` in `tests/unit_tests/` provides shared fixtures and pytest hooks.
+The root `conftest.py` in `tests/unit_tests/` provides shared fixtures and pytest hooks. Agent test suites (like `libs/langchain_v1/tests/unit_tests/agents/conftest.py`) extend these with specialized fixtures.
**From `/libs/core/tests/unit_tests/conftest.py`**:
@@ -269,6 +344,39 @@ def blockbuster() -> Iterator[BlockBuster]:
yield bb
```
+### Agent Test Fixtures
+
+Agent test suites use parametrized fixtures to test across multiple checkpoint and state storage backends:
+
+```python
+from collections.abc import AsyncIterator, Iterator
+from uuid import UUID
+from pytest_mock import MockerFixture
+import pytest
+
+# Deterministic UUIDs for snapshot testing
+def deterministic_uuids(mocker: MockerFixture) -> MockerFixture:
+ side_effect = (UUID(f"00000000-0000-4000-8000-{i:012}", version=4) for i in range(10000))
+ return mocker.patch("uuid.uuid4", side_effect=side_effect)
+
+# Parametrized checkpointer fixture (multiple backends)
[email protected](params=["memory", "sqlite", "postgres"])
+def sync_checkpointer(request: pytest.FixtureRequest) -> Iterator[BaseCheckpointSaver]:
+ checkpointer_name = request.param
+ # Yield appropriate checkpointer based on backend
+ ...
+
+# Parametrized async checkpointer fixture
[email protected](params=["memory", "sqlite_aio", "postgres_aio"])
+async def async_checkpointer(request: pytest.FixtureRequest) -> AsyncIterator[BaseCheckpointSaver]:
+ checkpointer_name = request.param
+ # Yield appropriate async checkpointer
+ ...
+```
+
+Set `LANGGRAPH_TEST_FAST=true` environment variable to run against only in-memory backends for fast iteration.
+
**Custom Markers**:
```python
@@ -456,6 +564,109 @@ assert handler.chain_ends == 1
## Common Testing Patterns
+### Agent Execution Testing
+
+Test agent behavior across multiple turns, state updates, and tool invocations:
+
+```python
+from langchain.agents import create_agent
+from langchain_core.messages import HumanMessage, AIMessage
+from langgraph.checkpoint.memory import InMemorySaver
+from tests.unit_tests.agents.model import FakeToolCallingModel
+
+def test_agent_tool_invocation():
+ # Script tool calls for multiple turns
+ model = FakeToolCallingModel(
+ tool_calls=[
+ [{"name": "get_weather", "args": {"city": "Paris"}, "id": "tc1"}],
+ [], # No tool call on second turn
+ ]
+ )
+
+ agent = create_agent(model, [get_weather], checkpointer=InMemorySaver())
+ config = {"configurable": {"thread_id": "test-1"}}
+
+ # First turn: invoke with user message
+ result = agent.invoke({"messages": [HumanMessage("Weather in Paris?")]}, config)
+
+ # Verify response structure
+ assert len(result["messages"]) >= 3 # human, ai with tool call, tool result
+ assert isinstance(result["messages"][-1], AIMessage) or result["messages"][-1].name == "get_weather"
+```
+
+### State Transitions and Checkpointing
+
+Test agent state updates across checkpoint boundaries:
+
+```python
+def test_agent_state_persistence(sync_checkpointer):
+ model = FakeToolCallingModel(tool_calls=[[], []])
+ agent = create_agent(model, [], checkpointer=sync_checkpointer)
+ config = {"configurable": {"thread_id": "thread-1"}}
+
+ # First invoke
+ result1 = agent.invoke({"messages": [HumanMessage("hi")]}, config)
+
+ # Load checkpoint and verify state
+ checkpoint = sync_checkpointer.get_tuple(config)
+ assert checkpoint is not None
+ assert checkpoint.checkpoint["channel_values"]["messages"] == result1["messages"]
+ assert checkpoint.metadata["step"] == 1
+
+ # Second invoke from checkpoint
+ result2 = agent.invoke({"messages": [HumanMessage("hello again")]}, config)
+
+ # Verify continuity
+ assert len(result2["messages"]) > len(result1["messages"])
+```
+
+### Streaming Event Testing
+
+Test agent execution traces via stream events (v3 protocol):
+
+```python
+def test_agent_stream_events():
+ model = FakeToolCallingModel(
+ tool_calls=[
+ [{"name": "echo", "args": {"text": "x"}, "id": "tc1"}],
+ [],
+ ]
+ )
+ agent = create_agent(model, [echo])
+
+ # Stream events with built-in tool_calls projection
+ run = agent.stream_events(
+ {"messages": [HumanMessage("hi")]},
+ version="v3"
+ )
+
+ # Collect tool calls via projection
+ tool_calls = list(run.tool_calls) # type: ignore[attr-defined]
+ assert len(tool_calls) == 1
+ assert tool_calls[0].tool_name == "echo"
+ assert tool_calls[0].tool_call_id == "tc1"
+ assert tool_calls[0].completed is True
+```
+
+### Message Matching with Any ID
+
+Test message content independently of generated UUIDs:
+
+```python
+from tests.unit_tests.agents.any_str import AnyStr
+from tests.unit_tests.agents.messages import _AnyIdHumanMessage, _AnyIdToolMessage
+
+def test_agent_message_flow():
+ model = FakeToolCallingModel()
+ agent = create_agent(model, [])
+
+ result = agent.invoke({"messages": [HumanMessage("hi")]})
+
+ # Match messages regardless of their generated IDs
+ assert result["messages"][0] == _AnyIdHumanMessage(content="hi")
+ assert isinstance(result["messages"][1], AIMessage)
+```
+
### Fixture Usage
Define reusable components as pytest fixtures:
@@ -662,6 +873,80 @@ The `AnyStr` class matches any string when used as a value:
message.id = AnyStr() # Now message.id == any_other_id is True
```
+## Assertions for Agent Testing
+
+### Message Type Assertions
+
+Verify message types and properties in agent output:
+
+```python
+from langchain_core.messages import AIMessage, HumanMessage, ToolMessage
+
+def test_agent_response_types():
+ agent = create_agent(model, [tool])
+ result = agent.invoke({"messages": [HumanMessage("query")]})
+
+ messages = result["messages"]
+ assert isinstance(messages[0], HumanMessage)
+ assert isinstance(messages[1], AIMessage)
+ if len(messages) > 2:
+ assert isinstance(messages[2], ToolMessage)
+```
+
+### Tool Call Assertions
+
+Verify tool calls in AI messages:
+
+```python
+def test_agent_tool_calls():
+ model = FakeToolCallingModel(
+ tool_calls=[[{"name": "get_weather", "args": {"city": "NYC"}, "id": "tc1"}]]
+ )
+ agent = create_agent(model, [get_weather])
+ result = agent.invoke({"messages": [HumanMessage("weather")]})
+
+ ai_message = result["messages"][1]
+ assert len(ai_message.tool_calls) == 1
+ assert ai_message.tool_calls[0].name == "get_weather"
+ assert ai_message.tool_calls[0].args == {"city": "NYC"}
+```
+
+### State Update Assertions
+
+Verify state and checkpoint consistency:
+
+```python
+def test_state_updates(sync_checkpointer):
+ agent = create_agent(model, [tool], checkpointer=sync_checkpointer)
+ config = {"configurable": {"thread_id": "t1"}}
+
+ result = agent.invoke({"messages": [HumanMessage("hello")]}, config)
+
+ # Load checkpoint
+ checkpoint = sync_checkpointer.get_tuple(config)
+ assert checkpoint.metadata["step"] == 1
+ assert len(checkpoint.checkpoint["channel_values"]["messages"]) > 1
+```
+
+### Error and Invalid Tool Call Assertions
+
+Test error handling for malformed tool calls:
+
+```python
+def test_invalid_tool_call_recovery():
+ model = InvalidToolCallingModel() # Returns invalid JSON in args
+ agent = create_agent(model, [get_weather])
+ config = {"configurable": {"thread_id": "t1"}}
+
+ agent.invoke({"messages": [HumanMessage("weather")]}, config)
+ model.invalid_tool_call_id = None
+ result = agent.invoke({"messages": [HumanMessage("retry")]}, config)
+
+ # Verify error ToolMessage was added
+ tool_messages = [m for m in result["messages"] if isinstance(m, ToolMessage)]
+ assert any(m.status == "error" for m in tool_messages)
+```
+
## Type Checking with mypy
Type checking is part of the standard lint workflow:
@@ -745,6 +1030,10 @@ make coverage
## Key Test Infrastructure Files
- **conftest.py** (`libs/core/tests/unit_tests/conftest.py`): Shared fixtures, markers, blockbuster configuration
+- **agents/conftest.py** (`libs/langchain_v1/tests/unit_tests/agents/conftest.py`): Agent-specific fixtures for checkpointers, stores, and deterministic UUIDs
+- **agents/model.py** (`libs/langchain_v1/tests/unit_tests/agents/model.py`): `FakeToolCallingModel` for agent testing without API calls
+- **agents/any_str.py** (`libs/langchain_v1/tests/unit_tests/agents/any_str.py`): `AnyStr` class for matching strings with prefixes independent of exact values
+- **agents/messages.py** (`libs/langchain_v1/tests/unit_tests/agents/messages.py`): Helpers like `_AnyIdHumanMessage` for message matching
- **stubs.py** (`libs/core/tests/unit_tests/stubs.py`): Helper functions for message testing with wildcard IDs
- **pydantic_utils.py** (`libs/core/tests/unit_tests/pydantic_utils.py`): Schema normalization for cross-version Pydantic compatibility
- **fake/callbacks.py** (`libs/core/tests/unit_tests/fake/callbacks.py`): FakeCallbackHandler for tracking events
@@ -771,3 +1060,11 @@ make coverage
9. **Type-check as you go**: Run `make lint` or `make type` during development.
10. **Use markers for categorization**: Mark tests with `@pytest.mark.requires` or custom markers for selective execution.
+
+11. **Test state transitions**: For agents and stateful components, verify state updates across checkpoint boundaries.
+
+12. **Script tool calls predictably**: Use `FakeToolCallingModel` to control tool invocations and test multi-turn flows.
+
+13. **Assert message types and content**: Verify the shape of agent responses, tool calls, and state updates.
+
+14. **Test error recovery**: Verify agents recover from invalid tool calls and other errors gracefully.