The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: update OpenWiki (#40218)
github-actions[bot]22f3421aeede
diff --git a/openwiki/.claims/architecture.json b/openwiki/.claims/architecture.jsonindex a6fc0669ce..d39c14ef68 100644--- a/openwiki/.claims/architecture.json+++ b/openwiki/.claims/architecture.json@@ -1,6 +1,6 @@{"schemaVersion": 1,- "pageVersion": "sha256:4d075dd399f2c74cd6a1d03563dd5d1695887843ca5c5b920422838e41870e43",+ "pageVersion": "sha256:955c0c402efcda6052d84d4421645bd6720847d59e4d25c1c4ac40bec2d68e2a","claims": [{"id": "claim_d872799ce6874d76b63667fe912b7616",@@ -26,19 +26,19 @@},{"id": "claim_bf4afec1395b4acbbf413fe2928daab6",- "statement": "langchain-core (v1.6.1) provides the stable base abstractions including Runnable protocol, BaseChatModel, message types, tools, prompts, and callbacks.",+ "statement": "langchain-core (v1.6.2) 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-L50","version": "repo-lines-v1:sha256:ec4a224a2f0eaacffa422fe7c6e3ce9e3d1046a9ca9e78f1023c2e32ab8e6077:eyJzZWxlY3RlZExpbmVDb3VudCI6NTAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImE1ZDFjY2U5NjgzYzRiOGE0NjJhN2Q0NDBjYjk2ZGE3NDk3YWQ2NDYwNTE0ZjNkYWI0NDlmZjgzMzllYjY5ZjQiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjlkMWY5ZjBhODYyNjliNDk3Mjc1ZTgxYzJiMWNiMmVmYzIxNjdlNjFjNjFkZWExOTk1MTE4ZTdiODkxZTI0NTQiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImFlYWJlNjk0Nzc1ZmI3OTg1MjcwYjNmMTRjNjNiOWZhZTk0MDBmNTczY2E0N2NhZWE3OGMwZTVhYmIxNjg3NDUifQ"},{- "resource": "repo://libs/core/langchain_core/runnables/base.py#L133-L150",- "version": "repo-lines-v1:sha256:c8bf75fa83bb019f5e36f97570d3008efc38453777efb44cf677783d57340d21:eyJzZWxlY3RlZExpbmVDb3VudCI6MTgsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImQwNjY0MDE5YzkwN2RmODUwZWE5ZTA1OGYxMmIxOTIzNzRiZWIzZmNjYWIwNjE5MDMwYzY4ZTY1NDhhZDgxNDkiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjVmMjc0Yjc2ZDllMTBkNzNmMjA1NDc5ZDlmYzBhMTU3YmUyMzM3YjMwYWE3N2RjZWMwNmViY2IyNjY1NmUxOWIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjcxODA4NTVkNTMwZmRiNTgzMjI0MjNhNmZkZGRlOWEzYjJhNGEwOTYyNWE1ZGIzNzQzZTg5N2MwNTJiYmJkZDMiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImM3YmE3ZGEzOGU0NjFlM2FkZDk2MjFlYWNkYzMzZDU2NzExMTRiMzY5YWVlYzJhYTE4MjkzNTljNTRkOWYxZTQifQ"+ "resource": "repo://libs/core/langchain_core/runnables/base.py#L1-L80",+ "version": "repo-lines-v1:sha256:d49594cfb590cc026c40d913d290e5877978567c9a70f1c9f7cc0eb818fbbb30:eyJzZWxlY3RlZExpbmVDb3VudCI6ODAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjZjY2UwMTU4YzI1NmU5OGViMGU2MDE2YmQ0NjFmMTY1NmRkNmNmOGM0NDg2MWYzMGQ1NzdlMGU0M2Q4OGJiYzMiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjU2NmI0NWIxYmRiODdjNWE5YmE0ZWVlMjNhNWFlY2RlYjYxMDVmZWM4ZGM4YTEwY2I3YWY3MWU1NzVlOTBhMDciLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjFjZDY5MGU1NzI2MDE4MDhiMzdmYmU3YWFjYWU0NWQyZTNmYzczODMzNmMwNzUwYzgyYTYxOTg4NWRlMTdiZTEifQ"},{"resource": "repo://libs/core/pyproject.toml#L24-L24",- "version": "repo-lines-v1:sha256:238e7ddf7f3fadccf53502477ac331715e5fc6a3aada4c63ceefaa35ec509859:eyJzZWxlY3RlZExpbmVDb3VudCI6MSwiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiMjM4ZTdkZGY3ZjNmYWRjY2Y1MzUwMjQ3N2FjMzMxNzE1ZTVmYzZhM2FhZGE0YzYzY2VlZmFhMzVlYzUwOTg1OSIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiMjM4ZTdkZGY3ZjNmYWRjY2Y1MzUwMjQ3N2FjMzMxNzE1ZTVmYzZhM2FhZGE0YzYzY2VlZmFhMzVlYzUwOTg1OSIsInByZWNlZGluZ0NvbnRleHRMaW5lQ291bnQiOjMsInByZWNlZGluZ0NvbnRleHRIYXNoIjoiNmRmYWFiMzNiMmUzYTUwMTM3NmZlODIxNDNkNzBmNmVkYjMyNWI4YWMzYWI5MDUwYTg0OTgwN2ZmM2FhZGI3NSIsImZvbGxvd2luZ0NvbnRleHRMaW5lQ291bnQiOjMsImZvbGxvd2luZ0NvbnRleHRIYXNoIjoiOGEyM2RmNzFkODljMGE5NmUzNWFhZjk1ZTdjZTllYTczYTRiN2FlZjQyNDZjN2Q3YzAzZjhlM2EwMTJiZjliNSJ9"+ "version": "repo-lines-v1:sha256:aedcca5df1c476f4736d0f7d783cfab756063205d0b98960d97ce7c40356c7e8:eyJzZWxlY3RlZExpbmVDb3VudCI6MSwiZmlyc3RTZWxlY3RlZExpbmVIYXNoIjoiYWVkY2NhNWRmMWM0NzZmNDczNmQwZjdkNzgzY2ZhYjc1NjA2MzIwNWQwYjk4OTYwZDk3Y2U3YzQwMzU2YzdlOCIsImxhc3RTZWxlY3RlZExpbmVIYXNoIjoiYWVkY2NhNWRmMWM0NzZmNDczNmQwZjdkNzgzY2ZhYjc1NjA2MzIwNWQwYjk4OTYwZDk3Y2U3YzQwMzU2YzdlOCIsInByZWNlZGluZ0NvbnRleHRMaW5lQ291bnQiOjMsInByZWNlZGluZ0NvbnRleHRIYXNoIjoiNmRmYWFiMzNiMmUzYTUwMTM3NmZlODIxNDNkNzBmNmVkYjMyNWI4YWMzYWI5MDUwYTg0OTgwN2ZmM2FhZGI3NSIsImZvbGxvd2luZ0NvbnRleHRMaW5lQ291bnQiOjMsImZvbGxvd2luZ0NvbnRleHRIYXNoIjoiOGEyM2RmNzFkODljMGE5NmUzNWFhZjk1ZTdjZTllYTczYTRiN2FlZjQyNDZjN2Q3YzAzZjhlM2EwMTJiZjliNSJ9"}]},@@ -149,6 +149,6 @@],"verification": {"by": "openwiki/0.5.0",- "at": "2026-09-03T15:18:34.589Z"+ "at": "2026-09-08T08:27:09.597Z"}}diff --git a/openwiki/.claims/callbacks.json b/openwiki/.claims/callbacks.jsonindex e13c248cfd..d4231e08be 100644--- a/openwiki/.claims/callbacks.json+++ b/openwiki/.claims/callbacks.json@@ -1,6 +1,6 @@{"schemaVersion": 1,- "pageVersion": "sha256:a3d31bdc7065f8a6bb1a5dc81e82f5b216c238dffdf3e1c523d8a0ed7cf0558d",+ "pageVersion": "sha256:1bc36cc5d9a9fd1c9ab60ccb76938f7eb0d0722738953a69f474fe7e532f2a78","claims": [{"id": "claim_1870ae33ffdb41fa87eaee4125620240",@@ -66,7 +66,7 @@"evidence": [{"resource": "repo://libs/core/langchain_core/callbacks/file.py",- "version": "repo-file-v1:sha256:eb9ab3752c9f34dd6a5d4d4c146c336f21abd35128a6d2efbff0e3a52f9de41c"+ "version": "repo-file-v1:sha256:aced5ab810aae9826873ba93ac74e7925e4c6446641820c2fff2054d5054a6b2"}]},@@ -193,6 +193,6 @@],"verification": {"by": "openwiki/0.5.0",- "at": "2026-09-03T15:18:34.589Z"+ "at": "2026-09-08T08:27:09.597Z"}}diff --git a/openwiki/.claims/chat-models.json b/openwiki/.claims/chat-models.jsonindex 5ec074f626..affc410788 100644--- a/openwiki/.claims/chat-models.json+++ b/openwiki/.claims/chat-models.json@@ -1,6 +1,6 @@{"schemaVersion": 1,- "pageVersion": "sha256:d6bff3b81a95d8ca6bc4bdbd9b5c49d4db94d4b506fe48361a3571a0a8f2a35f",+ "pageVersion": "sha256:67dc4d64315fbd418d3cdd7cd0f5500ae8f6059c10d263e69dfedd8e7d3a8338","claims": [{"id": "claim_d2cdcf05dd4149bb9ea0a5fb0d1568d8",@@ -303,6 +303,6 @@],"verification": {"by": "openwiki/0.5.0",- "at": "2026-09-03T15:18:34.589Z"+ "at": "2026-09-08T08:27:09.597Z"}}diff --git a/openwiki/.claims/messages.json b/openwiki/.claims/messages.jsonindex cd29c2e2cb..245e0bdc8c 100644--- a/openwiki/.claims/messages.json+++ b/openwiki/.claims/messages.json@@ -1,6 +1,6 @@{"schemaVersion": 1,- "pageVersion": "sha256:64e569ccd662acb76519938c6e8867f0e82285557634fc1a08205e1d12e2dcee",+ "pageVersion": "sha256:7e1f2bf23c2f051eac9a9adf14ea571ffc8481dd90f220634bb732a545971a5a","claims": [{"id": "claim_cd426b48afb54e54a30a82b280ab266d",@@ -207,6 +207,6 @@],"verification": {"by": "openwiki/0.5.0",- "at": "2026-09-03T15:18:34.589Z"+ "at": "2026-09-08T08:27:09.597Z"}}diff --git a/openwiki/.claims/middleware.json b/openwiki/.claims/middleware.jsonindex d0d3bb05eb..aad3871400 100644--- a/openwiki/.claims/middleware.json+++ b/openwiki/.claims/middleware.json@@ -1,6 +1,6 @@{"schemaVersion": 1,- "pageVersion": "sha256:edd3a6070069752c8ce3d79e8b4fb6c0e58c7fa04f5bf7b55223db4d14b269a5",+ "pageVersion": "sha256:dc648f1612a1d33054c8fbb196b66361684e441ad6fbf9af3cb5df1777a4a402","claims": [{"id": "claim_6ce968382a514edb90e74830ccdebef7",@@ -199,6 +199,6 @@],"verification": {"by": "openwiki/0.5.0",- "at": "2026-09-03T15:18:34.589Z"+ "at": "2026-09-08T08:27:09.597Z"}}diff --git a/openwiki/.claims/openai-provider.json b/openwiki/.claims/openai-provider.jsonindex ffa2ab427c..6c4ccdf51a 100644--- a/openwiki/.claims/openai-provider.json+++ b/openwiki/.claims/openai-provider.json@@ -1,6 +1,6 @@{"schemaVersion": 1,- "pageVersion": "sha256:13741eab09e2d769cdfd885ea9b92e8a5f790a63498d6b10bf6cfeeaecf076b1",+ "pageVersion": "sha256:012f8bbb76f0fc9e8cf5796d4dd6a558d1ac45e1248a500804c3dd6342401ccf","claims": [{"id": "claim_347664eb68464142b558791c7a95093f",@@ -51,18 +51,18 @@"statement": "bind_tools() binds one or more tools to the model and accepts tool_choice parameter to specify 'auto', 'none', 'any'/'required', a tool name string, or a dict specifying which tool(s) to call. It also supports parallel_tool_calls, strict, and response_format parameters.","evidence": [{- "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L2390-L2496",- "version": "repo-lines-v1:sha256:33e6d9ef74cf0bf4d7297bdd8e2c381cfac7bb645a908ab7e3175f00717700f6:eyJzZWxlY3RlZExpbmVDb3VudCI6MTA3LCJmaXJzdFNlbGVjdGVkTGluZUhhc2giOiJmMTg1NGIwNDY5MTdlM2FiMmFkMDI5ZTBlZWFlN2Y5MWQwYmUzZDY5MDE0YmI2MjdhYWRkZWYyZTY5ZDM4ODJkIiwibGFzdFNlbGVjdGVkTGluZUhhc2giOiIxMjA4ZTliMjUzOTRiM2I0YWY1MDgyODIxYWE2MjM5MTgyZjRhMTdlYzc0MTFhOGY0MzZlNTEyYTY2ZmU0YWFjIiwicHJlY2VkaW5nQ29udGV4dExpbmVDb3VudCI6MywicHJlY2VkaW5nQ29udGV4dEhhc2giOiI1MDg4MDFjYjgwMGUyZjIwMzc0ZDM5YTEzNzZjODU0ZGJlYTIzMGNlMGQ1YWM1ZGIyMDBlMWFjMjdkYjZjYTc3IiwiZm9sbG93aW5nQ29udGV4dExpbmVDb3VudCI6MywiZm9sbG93aW5nQ29udGV4dEhhc2giOiI1YTE0MTYxZjkzYTAyZjM1OWJkODA1ZmViNGI4OTZjNGYxMWVhYjRjNWY3ODQwNmZkY2Y5OTdjZWRjNjdjMmRiIn0"+ "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L2413-L2505",+ "version": "repo-lines-v1:sha256:0b67e5cd29a887dca1b5eb6a2843d497c2e7bf8cae5c7138a79814c6c0bdaadc:eyJzZWxlY3RlZExpbmVDb3VudCI6OTMsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6ImYxODU0YjA0NjkxN2UzYWIyYWQwMjllMGVlYWU3ZjkxZDBiZTNkNjkwMTRiYjYyN2FhZGRlZjJlNjlkMzg4MmQiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQwNGY5OGI1OWQ1OTAyNWQxZjJhNjkxOTg5YzNiZDRkNjcwNjYwMThhMmE5NTZlY2NkMDU5OGQ1MTRhM2FmMTUiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6IjUwODgwMWNiODAwZTJmMjAzNzRkMzlhMTM3NmM4NTRkYmVhMjMwY2UwZDVhYzVkYjIwMGUxYWMyN2RiNmNhNzciLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjY3MTc5MWQ1ZDUzZTJhZGZkYWEzMWYxYjQ3ODZmMTJkNjAxZGQyNTUzYWI5MGU2ZWJkY2I5ZjMzM2RhYTIyZGEifQ"}]},{"id": "claim_5c43c02cb87c4428a7bc56f79314828d",- "statement": "tool_choice supports 'auto' (default), 'none' (prevent tool use), 'any'/'required'/True (force at least one call), a tool name string (force specific tool), and dict format for OpenAI's native tool choice specification.",+ "statement": "tool_choice supports 'auto' (default), 'none' (prevent tool use), 'any'/'required'/True (force at least one call), a tool name string (force specific tool), WellKnownTools strings like 'file_search' and 'web_search' (built-in tools), and dict format for OpenAI's native tool choice specification.","evidence": [{- "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L2407-L2482",- "version": "repo-lines-v1:sha256:fab7afcc3debe57067cfe831790e2c1f79ec95bbd1c9cbbd0616e6e8f94f59d0:eyJzZWxlY3RlZExpbmVDb3VudCI6NzYsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjliNTY2MWMyNDRkNjAyYWYwZjNjM2EyN2QwOTg0YzE4OTM1MDQzNjUwZGM5MzMyM2MxYWU5YjViOWM3YmEzYWYiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjAxYmE0NzE5YzgwYjZmZTkxMWIwOTFhN2MwNTEyNGI2NGVlZWNlOTY0ZTA5YzA1OGVmOGY5ODA1ZGFjYTU0NmIiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImE3OTQwMDAwZTAwNjM2NGZmMDM3ZjhkNWMzMDYyNzhjMjY5OGRiMTY5NzE4YWU0OWZiZTMzOGZhMWY5ZjI5Y2MiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImMxNTYwN2VkYTdmYTkxOWRlMmY2NThhMzdkMWMzNDcyMGU5M2Y3ODcyY2E1OTdiZjYxNTcxNTNmOWY4OGI3ZjgifQ"+ "resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py#L2431-L2505",+ "version": "repo-lines-v1:sha256:39f452897ff3245da75c8a971b81a90b13d7a0c0dbc67d254f7600f1f66ebf89:eyJzZWxlY3RlZExpbmVDb3VudCI6NzUsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjY1NmQ0YTcwMjM0ZTM3OTVmMDA3MWNiNTMzZDM1YzgwZjM0ZWYyODc4NDkxMjQ3YTY3Y2RjMTJlNGI5ZjA5OTciLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQwNGY5OGI1OWQ1OTAyNWQxZjJhNjkxOTg5YzNiZDRkNjcwNjYwMThhMmE5NTZlY2NkMDU5OGQ1MTRhM2FmMTUiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjozLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImU0MzhjZjJiYTY3MTI0ZDQwNTk2ZjAxOTFiMmQxZDRkODA5OTI0NTMzZDFkZTU2Njk5NDk4YzY4NzhiZWU5OWEiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6IjY3MTc5MWQ1ZDUzZTJhZGZkYWEzMWYxYjQ3ODZmMTJkNjAxZGQyNTUzYWI5MGU2ZWJkY2I5ZjMzM2RhYTIyZGEifQ"}]},@@ -129,6 +129,6 @@],"verification": {"by": "openwiki/0.5.0",- "at": "2026-09-03T15:18:34.589Z"+ "at": "2026-09-08T08:27:09.597Z"}}diff --git a/openwiki/.claims/quickstart.json b/openwiki/.claims/quickstart.jsonindex 7cdf8af082..2f757c51af 100644--- a/openwiki/.claims/quickstart.json+++ b/openwiki/.claims/quickstart.json@@ -1,6 +1,6 @@{"schemaVersion": 1,- "pageVersion": "sha256:7dc36350c57797f4e4cb42c4ca2523c8a6fda499d2176362da99865392c8721b",+ "pageVersion": "sha256:e5d5db29dc79ac7fe95a9d3907d7332ac1504c3735f93a236d93039cebc2a687","claims": [{"id": "claim_7425c73f5e4c4667b8babba66c3663a0",@@ -87,12 +87,12 @@"statement": "LangChain monorepo uses uv for fast, deterministic dependency resolution; developers install dependencies via 'uv sync --all-groups' to get test, lint, type, and dev tools","evidence": [{- "resource": "repo://libs/Makefile",- "version": "repo-file-v1:sha256:b703a85cdfdb60e98c41ec8261d9b78f0e7137105ee9da36b8cb919b2d35858b"+ "resource": "repo://libs/Makefile#L1-L20",+ "version": "repo-lines-v1:sha256:b703a85cdfdb60e98c41ec8261d9b78f0e7137105ee9da36b8cb919b2d35858b:eyJzZWxlY3RlZExpbmVDb3VudCI6MjAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjQyOGQwZmRiYTcwNTRmMzNiZTZkYTQ3MjU4OTFjMDA0OTIwMGZkNDNmNTAyMWY5N2Y2MmI4N2U4ZmNjMjBhZTEiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImQ4OWEwZmIyMTcxZjliNTk0YmQyZjA5YzQwMmEwYjU1MmRiNjNiNTBlZDBhNzE1OGEzMWQzMGFlYWRhYjVjMzgiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjowLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUifQ"},{- "resource": "repo://libs/core/pyproject.toml",- "version": "repo-file-v1:sha256:325931f1a0825e70a5f7c0228e9a98e3bd6e2395ea23db6d7a0dffce70087408"+ "resource": "repo://libs/core/pyproject.toml#L1-L40",+ "version": "repo-lines-v1:sha256:5e1d9552eb39d47f9a70517f02b7414108ba8be8e9aabc8ef24645203c0f2a77:eyJzZWxlY3RlZExpbmVDb3VudCI6NDAsImZpcnN0U2VsZWN0ZWRMaW5lSGFzaCI6IjA0NTY5OTQ2YWM5YmJlN2NiMmNkZWMzZjhiZWNmMzQzNzUwYzU4YjliMzIxZWMyMTk1YmZiYWFiMmFhOGM0YmEiLCJsYXN0U2VsZWN0ZWRMaW5lSGFzaCI6ImNmYmFjZWMwM2JkMzE5ZWYyZjAyZWVkN2E3OTVmYzI5YmRkNTU4Mzc5NmUxNzFkYTY3YWM2M2Q1ODllYzZiMTgiLCJwcmVjZWRpbmdDb250ZXh0TGluZUNvdW50IjowLCJwcmVjZWRpbmdDb250ZXh0SGFzaCI6ImUzYjBjNDQyOThmYzFjMTQ5YWZiZjRjODk5NmZiOTI0MjdhZTQxZTQ2NDliOTM0Y2E0OTU5OTFiNzg1MmI4NTUiLCJmb2xsb3dpbmdDb250ZXh0TGluZUNvdW50IjozLCJmb2xsb3dpbmdDb250ZXh0SGFzaCI6ImVhYTRhNzU4ZTI4ZDhlZjI1MDA5ZDM1YjBhZTM1ZWU0ODRiMjc5OWVjNmIzMmRiMDY4YjFiNmJjYjg2OTQyNDkifQ"}]},@@ -183,6 +183,6 @@],"verification": {"by": "openwiki/0.5.0",- "at": "2026-09-03T15:18:34.589Z"+ "at": "2026-09-08T08:27:09.597Z"}}diff --git a/openwiki/.claims/source-map.json b/openwiki/.claims/source-map.jsonindex f7ea41a1fc..9ec4be61ba 100644--- a/openwiki/.claims/source-map.json+++ b/openwiki/.claims/source-map.json@@ -1,6 +1,6 @@{"schemaVersion": 1,- "pageVersion": "sha256:3b35861ca57c848ef54b88056e826fb29f242c92d428ce186f1ae6001df177ca",+ "pageVersion": "sha256:6ca0ee06a5fc2963191e151712a4fe1c0427cf4f7d2015ee0cdca292742929dd","claims": [{"id": "claim_c71edae5b0f64c8fa79c17ef1aca0f6b",@@ -98,7 +98,7 @@"evidence": [{"resource": "repo://libs/partners/openai/langchain_openai/chat_models/base.py",- "version": "repo-file-v1:sha256:44b224c3be9dbc6308a585e6415624a7f5faa5cf0c168c551027ef237532563b"+ "version": "repo-file-v1:sha256:256282e30b6d13913942b1f8986320537d42da90f7d6118c7790270c953f8229"}]},@@ -164,7 +164,7 @@},{"resource": "repo://libs/core/pyproject.toml",- "version": "repo-file-v1:sha256:325931f1a0825e70a5f7c0228e9a98e3bd6e2395ea23db6d7a0dffce70087408"+ "version": "repo-file-v1:sha256:8b952b55cca56e6372ca84df87708a13ecdf617b5bff9e322d749b46156d20c2"},{"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.1) for base abstractions, langchain (v1.4.0) 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.2) for base abstractions, langchain (v1.4.0) 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:325931f1a0825e70a5f7c0228e9a98e3bd6e2395ea23db6d7a0dffce70087408"+ "version": "repo-file-v1:sha256:8b952b55cca56e6372ca84df87708a13ecdf617b5bff9e322d749b46156d20c2"},{"resource": "repo://libs/langchain_v1/pyproject.toml",@@ -189,6 +189,6 @@],"verification": {"by": "openwiki/0.5.0",- "at": "2026-09-03T15:18:34.589Z"+ "at": "2026-09-08T08:27:09.597Z"}}diff --git a/openwiki/.last-update.json b/openwiki/.last-update.jsonindex 551d26b2c3..4c89c67a3d 100644--- a/openwiki/.last-update.json+++ b/openwiki/.last-update.json@@ -1,7 +1,7 @@{- "updatedAt": "2026-09-03T16:36:59.039Z",- "command": "init",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",+ "updatedAt": "2026-09-08T08:37:19.693Z",+ "command": "update",+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471","model": "claude-haiku-4-5","status": "complete","language": "en"diff --git a/openwiki/.page-manifest.json b/openwiki/.page-manifest.jsonindex 6bed8af05b..742f49768c 100644--- a/openwiki/.page-manifest.json+++ b/openwiki/.page-manifest.json@@ -5,162 +5,162 @@"pageVersion": "sha256:bd16b5e2d2f508d0aba8962fb1e836569b2a9af1615a3ec3a278948b6b703043","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/agent-factory.md": {"pageVersion": "sha256:861e60569112cc57094912804e603c9cd7bd4162df709645dd543bb46b2cca3f","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/architecture.md": {- "pageVersion": "sha256:4d075dd399f2c74cd6a1d03563dd5d1695887843ca5c5b920422838e41870e43",+ "pageVersion": "sha256:955c0c402efcda6052d84d4421645bd6720847d59e4d25c1c4ac40bec2d68e2a","completedBy": "openwiki/0.5.0",- "completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "completedRunId": "cb0ae1f9-02ab-4f92-9981-eeb48c091794",+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/callbacks.md": {- "pageVersion": "sha256:a3d31bdc7065f8a6bb1a5dc81e82f5b216c238dffdf3e1c523d8a0ed7cf0558d",+ "pageVersion": "sha256:1bc36cc5d9a9fd1c9ab60ccb76938f7eb0d0722738953a69f474fe7e532f2a78","completedBy": "openwiki/0.5.0",- "completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "completedRunId": "cb0ae1f9-02ab-4f92-9981-eeb48c091794",+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/chat-models.md": {- "pageVersion": "sha256:d6bff3b81a95d8ca6bc4bdbd9b5c49d4db94d4b506fe48361a3571a0a8f2a35f",+ "pageVersion": "sha256:67dc4d64315fbd418d3cdd7cd0f5500ae8f6059c10d263e69dfedd8e7d3a8338","completedBy": "openwiki/0.5.0",- "completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "completedRunId": "cb0ae1f9-02ab-4f92-9981-eeb48c091794",+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/ci-workflows.md": {"pageVersion": "sha256:8af0cd4e2f4fde3bbeaa007c68ac7b8049bd352e75e6455e2b7896818da707cc","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/composability.md": {"pageVersion": "sha256:2686a50367f151aef17fad64706fe0e5bb3d6d279febeecbac7d3760d2d17424","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/dev-commands.md": {"pageVersion": "sha256:7dd5ad8767d8a3f658ed06a962ccaafe416623877d4864ce71de856a4ae7b52f","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/integration-tests.md": {"pageVersion": "sha256:8bf3d528d2fe2628f24d10c54b6445ad11f8ec7abae99049815d037c83fdaf08","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/mcp-integration.md": {"pageVersion": "sha256:39684cc4e8be6978f803b85b99406b6a877eaf9e8c8b964279a413f854340751","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/messages.md": {- "pageVersion": "sha256:64e569ccd662acb76519938c6e8867f0e82285557634fc1a08205e1d12e2dcee",+ "pageVersion": "sha256:7e1f2bf23c2f051eac9a9adf14ea571ffc8481dd90f220634bb732a545971a5a","completedBy": "openwiki/0.5.0",- "completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "completedRunId": "cb0ae1f9-02ab-4f92-9981-eeb48c091794",+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/middleware.md": {- "pageVersion": "sha256:edd3a6070069752c8ce3d79e8b4fb6c0e58c7fa04f5bf7b55223db4d14b269a5",+ "pageVersion": "sha256:dc648f1612a1d33054c8fbb196b66361684e441ad6fbf9af3cb5df1777a4a402","completedBy": "openwiki/0.5.0",- "completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "completedRunId": "cb0ae1f9-02ab-4f92-9981-eeb48c091794",+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/model-initialization.md": {"pageVersion": "sha256:0ff4006082d29f33169349313c83cc890f4fafd73f0a3df4a51cf88689471825","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/openai-provider.md": {- "pageVersion": "sha256:13741eab09e2d769cdfd885ea9b92e8a5f790a63498d6b10bf6cfeeaecf076b1",+ "pageVersion": "sha256:012f8bbb76f0fc9e8cf5796d4dd6a558d1ac45e1248a500804c3dd6342401ccf","completedBy": "openwiki/0.5.0",- "completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "completedRunId": "cb0ae1f9-02ab-4f92-9981-eeb48c091794",+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/partner-pattern.md": {"pageVersion": "sha256:989b7aec4a438448775477cdd98e554b1cc64e2e0ec441dc7eb1e2ea3e406d1d","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/prompts.md": {"pageVersion": "sha256:5f946f7b6b3214808e71060f1626dc4100caf473eb5e0186d8064f20219062b9","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/quickstart.md": {- "pageVersion": "sha256:7dc36350c57797f4e4cb42c4ca2523c8a6fda499d2176362da99865392c8721b",+ "pageVersion": "sha256:e5d5db29dc79ac7fe95a9d3907d7332ac1504c3735f93a236d93039cebc2a687","completedBy": "openwiki/0.5.0",- "completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "completedRunId": "cb0ae1f9-02ab-4f92-9981-eeb48c091794",+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/runnables.md": {"pageVersion": "sha256:2785275fb70363fa2ba7b5c6b351f08d2bb5de58d88dec14a5c66d33f670ea88","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/source-map.md": {- "pageVersion": "sha256:3b35861ca57c848ef54b88056e826fb29f242c92d428ce186f1ae6001df177ca",+ "pageVersion": "sha256:6ca0ee06a5fc2963191e151712a4fe1c0427cf4f7d2015ee0cdca292742929dd","completedBy": "openwiki/0.5.0",- "completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "completedRunId": "cb0ae1f9-02ab-4f92-9981-eeb48c091794",+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/streaming.md": {"pageVersion": "sha256:a438de3bacc6da5a8e98bfd85d8e6f3a947deaf987bccf74fa6efdf166987bb6","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/structured-output.md": {"pageVersion": "sha256:94885a8043502300eae424ea3f016be44eb925bbaf0ad6297fdd741c3280ee69","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/tools.md": {"pageVersion": "sha256:f95633f03549fc6949b4ba8fc5d1bd13a03843a429ff10fa3284ae68f6ffce88","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"},"/openwiki/unit-tests.md": {"pageVersion": "sha256:7f15b0e6bb2c95e703a2e0c8f6fe04091727b2cb26ae3a3260124cd43f1394e0","completedBy": "openwiki/0.5.0","completedRunId": "b9d6bfc2-1d6c-4466-8f2b-ecd535b3e562",- "gitHead": "1e6a4f0b45b60475f566f3ad49fb32ea99d22233",- "sourceFingerprint": "sha256:864ce30170c730feb10d06b6ec7be97c50c81be23ef4369a1a61a0d3804ce2e8"+ "gitHead": "e670c7a03ba36fd1516f0185f7ec1186c89aa471",+ "sourceFingerprint": "sha256:f04f2a17ceb7176792b77272fb0620d883237402ed5380fed61cffbc48ce7694"}}}diff --git a/openwiki/architecture.md b/openwiki/architecture.mdindex 981f522d97..368112958d 100644--- a/openwiki/architecture.md+++ b/openwiki/architecture.md@@ -5,7 +5,7 @@ description: "High-level decomposition of the LangChain framework into three laytags: [architecture, core, langchain, partners, orchestration, runnable, abstractions, layered-architecture]verified:- by: openwiki/0.5.0- at: 2026-09-03T15:18:34.589Z+ at: 2026-09-08T08:27:09.597Zsources:- id: openwiki-source-c52037e7b642f7ac5a7642a8resource: repo://libs/core/langchain_core/language_models/chat_models.py@@ -37,7 +37,7 @@ sources:resource: repo://libs/partners/README.md- id: openwiki-source-7da6afe7fe64c6589cf1fed0resource: repo://libs/README.md-generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }+generated: { by: "openwiki/0.5.0", at: "2026-09-08T08:27:09.597Z" }---## Overview@@ -54,13 +54,14 @@ This structure enables model interoperability, stable versioning, and independen## Dependency Flow-<!-- openwiki: mermaid parse failed and this diagram was converted to a text fence so it does not break rendering. Fix the diagram source and restore the mermaid fence. Parser error: Heuristic: an unescaped angle bracket inside a label breaks rendering; rephrase the label. -->-```text+Users typically import from `langchain` (the actively maintained package) to access agents and high-level orchestration. The `langchain-core` layer is available for direct use when building custom implementations. Partner packages are loaded on-demand (often implicitly via `init_chat_model`) and are released independently from the core. `langchain-classic` (legacy) is maintained for backward compatibility but should not be used in new projects.++```mermaidgraph TBUser["User Applications"]User -->|imports from| LangChain["langchain<br/>(Orchestration & Agents)<br/>v1.4.0"]- User -->|may use directly| Core["langchain-core<br/>(Base Abstractions)<br/>v1.6.1"]+ User -->|may use directly| Core["langchain-core<br/>(Base Abstractions)<br/>v1.6.2"]LangChain -->|depends on| CoreLangChain -->|depends on| LangGraph["LangGraph<br/>(State Graph Engine)"]@@ -81,8 +82,6 @@ graph TBstyle LangGraph fill:#3d3d5c,stroke:#555,color:#fff```-Users typically import from `langchain` (the actively maintained package) to access agents and high-level orchestration. The `langchain-core` layer is available for direct use when building custom implementations. Partner packages are loaded on-demand (often implicitly via `init_chat_model`) and are released independently from the core. `langchain-classic` (legacy) is maintained for backward compatibility but should not be used in new projects.-## Three-Layer Architecture### Layer 1: langchain-core (Stable Base Abstractions)@@ -155,8 +154,7 @@ Users typically import from `langchain` (the actively maintained package) to accThe `init_chat_model()` function provides the primary user-facing entry point for chat models:-<!-- openwiki: mermaid parse failed and this diagram was converted to a text fence so it does not break rendering. Fix the diagram source and restore the mermaid fence. Parser error: Heuristic: an unescaped angle bracket inside a label breaks rendering; rephrase the label. -->-```text+```mermaidsequenceDiagramparticipant Userparticipant InitCM as init_chat_model()@@ -164,13 +162,13 @@ sequenceDiagramparticipant Partner as Partner Packageparticipant Model as ChatOpenAI- User->>InitCM: init_chat_model(identifier="openai:gpt-4o",<br/>api_key=...)+ User->>InitCM: init_chat_model(identifier, api_key)InitCM->>InitCM: Parse identifier to provider, model_nameInitCM->>Registry: Lookup provider configRegistry-->>InitCM: (module, class, factory_fn)InitCM->>Partner: Import langchain_openaiPartner-->>InitCM: ChatOpenAI class- InitCM->>Model: factory_fn(ChatOpenAI, model="gpt-4o",<br/>api_key=...)+ InitCM->>Model: factory_fn(ChatOpenAI, model_name, api_key)Model-->>InitCM: Initialized model instanceInitCM-->>User: BaseChatModel (ChatOpenAI)```@@ -181,16 +179,15 @@ The resolution process is lazy: `init_chat_model()` only imports the partner pacWhen `create_agent()` is called, the factory builds a LangGraph state machine:-<!-- openwiki: mermaid parse failed and this diagram was converted to a text fence so it does not break rendering. Fix the diagram source and restore the mermaid fence. Parser error: Heuristic: an unescaped angle bracket inside a label breaks rendering; rephrase the label. -->-```text+```mermaidsequenceDiagramparticipant Userparticipant Factory as Agent Factory- participant StateGraph as LangGraph<br/>StateGraph+ participant StateGraph as StateGraphparticipant Middleware as Middleware Stackparticipant Graph as Compiled Graph- User->>Factory: create_agent(model, tools, middleware=[...])+ User->>Factory: create_agent(model, tools, middleware)Factory->>Factory: Merge middleware state schemasFactory->>StateGraph: new StateGraph(merged_AgentState)Factory->>StateGraph: add_node("model", model_node)@@ -201,7 +198,7 @@ sequenceDiagramFactory->>Middleware: Compose wrap_tool_call layersFactory->>StateGraph: set_entry_point(entry_node)- Factory->>StateGraph: add_conditional_edges(after_model_node,<br/>route_to_tools_or_exit)+ Factory->>StateGraph: add_conditional_edges(after_model, route_or_exit)Factory->>Graph: compile()Graph-->>Factory: CompiledStateGraph@@ -295,7 +292,7 @@ The core layer (langchain-core) is intentionally minimal and stable. Orchestrati## Versioning and Release Policy-- **langchain-core** (`v1.6.1`): 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.2`): 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.0`): 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.0,<2.0.0`).diff --git a/openwiki/callbacks.md b/openwiki/callbacks.mdindex c4c2fe6f49..7cdafe1d70 100644--- a/openwiki/callbacks.md+++ b/openwiki/callbacks.md@@ -1,10 +1,11 @@---type: "Reference"-title: "> Entering new SequentialChain chain..."-openwiki_generated: true+title: "Callback System and Handler Integration"+description: "Document the callback handler architecture, integration with runnables and chat models, and patterns for tracking execution events, streaming, and instrumentation."+tags: ["callbacks", "observability", "handlers", "tracing", "streaming", "langsmith"]verified:- by: openwiki/0.5.0- at: 2026-09-03T15:18:34.589Z+ at: 2026-09-08T08:27:09.597Zsources:- id: openwiki-source-c9313cf42f0120d86b20245fresource: repo://libs/core/langchain_core/callbacks/base.pydiff --git a/openwiki/chat-models.md b/openwiki/chat-models.mdindex 63b537bda8..b9c7f51544 100644--- a/openwiki/chat-models.md+++ b/openwiki/chat-models.md@@ -5,7 +5,7 @@ description: "Document BaseChatModel protocol, input/output handling, streaming,tags: [chat-models, llm-integration, streaming, structured-output, model-capabilities]verified:- by: openwiki/0.5.0- at: 2026-09-03T15:18:34.589Z+ at: 2026-09-08T08:27:09.597Zsources:- id: openwiki-source-132f3183693cd9cf79d029a5resource: repo://libs/core/langchain_core/language_models/base.pydiff --git a/openwiki/index.md b/openwiki/index.mdindex 0dd7b7a236..e4aedf470d 100644--- a/openwiki/index.md+++ b/openwiki/index.md@@ -7,7 +7,7 @@ okf_version: "0.2"- [Agent Execution Flow and Loop Control](agent-execution.md) - Traces the runtime lifecycle of an agent from user input through model invocation, tool dispatch, and loop termination conditions, with detailed state management and middleware integration points.- [Create a basic agent](agent-factory.md)- [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.-- [> Entering new SequentialChain chain...](callbacks.md)+- [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)- [Dict syntax creates a RunnableParallel](composability.md)@@ -15,9 +15,9 @@ okf_version: "0.2"- [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)- [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.-- [Middleware](middleware.md)+- [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.- [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.-- [Use async methods (ainvoke, astream)](openai-provider.md)+- [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, and standard tests.- [Prompt Templates and Few-Shot Learning](prompts.md) - Prompt templates define message sequences and variable substitution patterns for chat models. Few-shot learning selects examples dynamically to teach models by example.- [LangChain Repository Quick Start](quickstart.md) - Entry point for engineers: orient to the monorepo structure, run first tests, understand what to edit for common tasks, and route to major development areas.diff --git a/openwiki/messages.md b/openwiki/messages.mdindex b8f01a8abe..7749534a50 100644--- a/openwiki/messages.md+++ b/openwiki/messages.md@@ -5,7 +5,7 @@ description: "Document the message abstraction, standardized content blocks fortags: [messages, content-blocks, chat-models, streaming, multimodal, provider-adapters]verified:- by: openwiki/0.5.0- at: 2026-09-03T15:18:34.589Z+ at: 2026-09-08T08:27:09.597Zsources:- id: openwiki-source-77dc1fb726463969f9d53658resource: repo://libs/core/langchain_core/messages/ai.py@@ -29,7 +29,7 @@ sources:resource: repo://libs/core/langchain_core/messages/tool.py- id: openwiki-source-498a9586e021b126ab8a8b42resource: repo://libs/core/langchain_core/messages/utils.py-generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }+generated: { by: "openwiki/0.5.0", at: "2026-09-08T08:27:09.597Z" }---## Overview@@ -86,6 +86,9 @@ Represents the result of a tool invocation. Required fields:**`ChatMessage`** and **`FunctionMessage`**Legacy/specialized message types. `ChatMessage` is generic with a `role` field; `FunctionMessage` represents deprecated function-calling format.+**`RemoveMessage`** (`repo://libs/core/langchain_core/messages/modifier.py#L8-L33`)+A special message type for deleting other messages from conversation history. Takes only an `id` parameter (the message ID to remove) and no content. Used in agentic workflows to prune previous turns.+### Message Chunks and Streaming**Location**: `repo://libs/core/langchain_core/messages/base.py#L450-L500` (BaseMessageChunk)@@ -93,14 +96,26 @@ Legacy/specialized message types. `ChatMessage` is generic with a `role` field;During streaming, models emit `AIMessageChunk` objects incrementally. These chunks are designed to be **mergeable**: when combined with `+`, they accumulate content, merge tool call chunks by index, and aggregate token usage.**`AIMessageChunk`** fields:-- **`tool_call_chunks`**: Partial tool call objects with nullable `name` and `args` (JSON string fragments).-- **`chunk_position`**: `"last"` on the final chunk, signaling aggregation triggers (e.g., parsing completed tool call chunks into full `tool_calls`).+- **`tool_call_chunks`**: Partial tool call objects with nullable `name` and `args` (JSON string fragments). Chunks with the same `index` are merged during aggregation.+- **`chunk_position`**: `"last"` on the final chunk, signaling completion triggers (e.g., parsing completed tool call chunks into full `tool_calls`).++**Chunk Aggregation via `add_ai_message_chunks()`** (`repo://libs/core/langchain_core/messages/ai.py#L652-L700`):-Merging chunks with `+` invokes `add_ai_message_chunks()`, which:-- Concatenates string content and merges list content blocks.-- Combines `tool_call_chunks`, respecting their `index` field.-- Aggregates token usage across chunks.-- On the final chunk (`chunk_position="last"`), parses accumulated tool call chunks into complete `ToolCall` objects.+When merging `AIMessageChunk` objects with `+` or via the function:+1. **Content merging**: Concatenates string content; for list content, merges blocks preserving order.+2. **Tool call chunk merging**: Combines `tool_call_chunks` by `index` field, concatenating `name` and `args` strings where both chunks share the same index.+3. **Token usage aggregation**: Sums `usage_metadata` across chunks (input_tokens, output_tokens, per-category breakdowns).+4. **Chunk position handling**: When `chunk_position="last"` (final chunk), accumulated `tool_call_chunks` are parsed via `parse_partial_json()` into complete `ToolCall` dicts.+5. **Server-side tool call completion**: When `chunk_position="last"` and `output_version="v1"`, `server_tool_call_chunk` blocks are parsed into `server_tool_call` blocks with complete `args` objects.++Example merge sequence:+```python+chunk1 = AIMessageChunk(tool_call_chunks=[ToolCallChunk(name="search", args='{"q":', index=0)])+chunk2 = AIMessageChunk(tool_call_chunks=[ToolCallChunk(name=None, args='"hello"}', index=0)])+final = chunk1 + chunk2+# final.tool_call_chunks[0].args == '{"q": "hello"}'+# After chunk_position="last", parses to: {"type": "tool_call", "name": "search", "args": {"q": "hello"}, ...}+```## Content Blocks: Unified Multimodal Representation@@ -245,6 +260,26 @@ Support tool execution that happens server-side (e.g., code execution, web searc```Holds provider-specific content that doesn't map to standard block types. Block translators attempt to parse non-standard blocks during the `content_blocks` property evaluation.+### Content Block Type Summary++LangChain defines the following standard block types:++- **Text output**: `TextContentBlock` (`type: "text"`), `ReasoningContentBlock` (`type: "reasoning"` for chain-of-thought)+- **Tool invocation**: `ToolCall` (`type: "tool_call"`), `ToolCallChunk` (`type: "tool_call_chunk"` for streaming), `InvalidToolCall` (`type: "invalid_tool_call"` for parsing failures)+- **Server-side tools**: `ServerToolCall` (`type: "server_tool_call"`), `ServerToolCallChunk` (`type: "server_tool_call_chunk"`), `ServerToolResult` (`type: "server_tool_result"`)+- **Multimodal data**: `ImageContentBlock` (`type: "image"`), `AudioContentBlock` (`type: "audio"`), `VideoContentBlock` (`type: "video"`), `FileContentBlock` (`type: "file"`), `PlainTextContentBlock` (`type: "text-plain"`)+- **Provider-specific**: `NonStandardContentBlock` (`type: "non_standard"`)++The union type `DataContentBlock` represents all multimodal data blocks and is defined as:+```python+DataContentBlock = (+ ImageContentBlock | VideoContentBlock | AudioContentBlock |+ PlainTextContentBlock | FileContentBlock+)+```++All block types support an optional `extras: dict[str, Any]` field for provider-specific metadata.+### Accessing Content Blocks**Location**: `repo://libs/core/langchain_core/messages/base.py#L199-L260`@@ -259,10 +294,11 @@ def content_blocks(self) -> list[types.ContentBlock]:**Behavior**:1. If `content` is a string, wrap it as `{"type": "text", "text": content}`.2. Parse list items: strings become text blocks, dicts with known `type` values are kept as-is, others become `{"type": "non_standard", "value": ...}`.-3. For `AIMessage`, check `response_metadata["model_provider"]` and use the provider's translator if registered (e.g., OpenAI, Anthropic).-4. Fall back to best-effort parsing if no translator exists.-5. For `AIMessage`, append `tool_calls` not already in content as tool call blocks.-6. Extract reasoning from `additional_kwargs["reasoning_content"]` if present.+3. Attempt to unpack non-standard blocks through a series of provider-specific parsers (v0 blocks, Chat Completions format, Anthropic format, Google GenAI format, Bedrock format).+4. For `AIMessage`, check `response_metadata["model_provider"]` and use the provider's translator if registered (e.g., OpenAI, Anthropic).+5. Fall back to best-effort parsing if no translator exists.+6. For `AIMessage`, append `tool_calls` not already in content as tool call blocks.+7. Extract reasoning from `additional_kwargs["reasoning_content"]` if present (inserted at start of blocks list).## Block Translators: Adapting to Provider Formats@@ -298,11 +334,19 @@ Handles Anthropic's format:- Converts `image` blocks with various source types to `ImageContentBlock`.- Populates `extras` with provider-specific fields like `cache_control`.-**Google GenAI** and **Bedrock Converse**-Similar conversion logic for Google and AWS formats.+**Google GenAI and Google VertexAI**+Convert Google's format blocks to standard types.++**Bedrock (Classic) and Bedrock Converse**+Convert AWS Bedrock format blocks to standard types.++**Groq**+Handles Groq's API response format.**LangChain v0 (Backward Compatibility)** (`repo://libs/core/langchain_core/messages/block_translators/langchain_v0.py`)-Parses legacy `source_type`-based blocks (e.g., `{"type": "image", "source_type": "url", "url": "..."}`) into v1 blocks.+Parses legacy `source_type`-based blocks (e.g., `{"type": "image", "source_type": "url", "url": "..."}`) into v1 blocks. This ensures old code that constructs messages with v0 block format still works.++**Auto-registration**: All translators are auto-initialized when the `block_translators` module loads via `_register_translators()`, which is called at module import time. External integrations can call `register_translator()` to add their own provider translators at runtime.### Translation Flow in `content_blocks`@@ -314,29 +358,49 @@ When `AIMessage.content_blocks` is accessed:## Message Manipulation Utilities-**Location**: `repo://libs/core/langchain_core/messages/utils.py#L1-L150` and beyond+**Location**: `repo://libs/core/langchain_core/messages/utils.py`The utils module provides helpers for working with messages:-**`get_buffer_string`**-Converts a sequence of messages to a single string for logging/debugging. Supports `format="prefix"` (role-prefixed) or `format="xml"` (XML tags with proper escaping). Multimodal content blocks are rendered with safe truncation and base64-encoded data omitted.+**`get_buffer_string(messages, format="prefix")`** (`repo://libs/core/langchain_core/messages/utils.py#L287-L370`)+Converts a sequence of messages to a single string for logging, prompting, or debugging:+- **`format="prefix"`** (default): Role-prefixed format like `"Human: ...\nAI: ..."`. Multimodal content blocks are skipped; only text and `text` blocks included.+- **`format="xml"`**: XML-formatted output with `<message type="role">content</message>` structure. Supports safe rendering of complex multimodal content (images, audio, video, reasoning, tool calls) with proper character escaping. Base64-encoded data is skipped. Useful when message content may contain role-like prefixes that could cause ambiguity.**`convert_to_messages` and `convert_to_openai_messages`**Coerce various input formats (dicts, strings, `MessageLikeRepresentation` union) into typed message objects.-**`filter_messages`, `trim_messages`, `merge_message_runs`**-Filter, truncate, and deduplicate consecutive messages of the same type.+**`filter_messages(messages, include_types=..., exclude_types=...)`**+Filter a sequence of messages by type, name, or ID.++**`trim_messages(messages, max_tokens=..., strategy="..."`**+Truncate a message sequence to fit within a token budget, using various strategies (keep start, keep end, keep first/last, etc.).++**`merge_message_runs(messages)`**+Deduplicate and merge consecutive messages of the same type (e.g., multiple `AIMessage`s in a row).++**`message_chunk_to_message(chunk: BaseMessageChunk) -> BaseMessage`**+Convert a message chunk (or list of chunks) into a complete message.-**`AnyMessage` Union Type**+**`AnyMessage` Union Type** (`repo://libs/core/langchain_core/messages/utils.py#L86-L100`)```pythonAnyMessage = Annotated[Annotated[AIMessage, Tag(tag="ai")]| Annotated[HumanMessage, Tag(tag="human")]- | ... (all message and chunk types)+ | Annotated[ChatMessage, Tag(tag="chat")]+ | Annotated[SystemMessage, Tag(tag="system")]+ | Annotated[FunctionMessage, Tag(tag="function")]+ | Annotated[ToolMessage, Tag(tag="tool")]+ | Annotated[AIMessageChunk, Tag(tag="AIMessageChunk")]+ | Annotated[HumanMessageChunk, Tag(tag="HumanMessageChunk")]+ | Annotated[ChatMessageChunk, Tag(tag="ChatMessageChunk")]+ | Annotated[SystemMessageChunk, Tag(tag="SystemMessageChunk")]+ | Annotated[FunctionMessageChunk, Tag(tag="FunctionMessageChunk")]+ | Annotated[ToolMessageChunk, Tag(tag="ToolMessageChunk")],Field(discriminator=Discriminator(_get_type)),]```-A tagged union for Pydantic deserialization. The `type` field discriminates the correct message class during deserialization.+A tagged union for Pydantic deserialization. Includes all message types and chunk variants. The `_get_type()` discriminator function extracts the `type` field from each message to route to the correct class during deserialization.## Content Representation: String vs. Block List@@ -367,15 +431,27 @@ AIMessage()```-The `text` property extracts all text blocks:+### The `text` Property++**Location**: `repo://libs/core/langchain_core/messages/base.py#L262-L292`++The `text` property returns a `TextAccessor` (string subclass) that extracts concatenated text from all text-type content blocks:+```pythonmsg = AIMessage(content=[{"type": "text", "text": "Hello"},{"type": "image", "url": "..."},+ {"type": "text", "text": " World"},])-print(msg.text) # "Hello"+print(msg.text) # "Hello World"```+For backward compatibility, `TextAccessor` supports both property and method access:+- **Modern** (v1.0+): `msg.text` (property access)+- **Legacy** (pre-1.0): `msg.text()` (method call, deprecated, emits warning)++Non-text blocks (images, audio, video, tool calls, reasoning) are automatically skipped when extracting text.+## Integration with Chat ModelsChat models normalize message input and output using the message abstraction:@@ -407,13 +483,30 @@ The `extras` field in content blocks allows provider metadata without breaking sThis approach maintains type safety while supporting emerging provider capabilities.-## Backward Compatibility and Versioning+## Message Versioning and Backward Compatibility++LangChain v1.0 introduced the v1 content block format, superseding the v0 `source_type` style. The system handles both transparently:++### v0 Block Recognition and Conversion++**LangChain v0 blocks** (e.g., `{"type": "image", "source_type": "url", "url": "..."}`) are detected by the presence of a `source_type` field. During `content_blocks` normalization:+1. v0 blocks are initially wrapped as `{"type": "non_standard", "value": ...}`.+2. The `_convert_v0_multimodal_input_to_v1()` parser unpacks them into v1 format.+3. The block is then processed as a standard v1 block.++### Provider-Specific Block Unpacking++Raw provider blocks (e.g., OpenAI's `{"type": "image_url", "image_url": {"url": "..."}}`) are wrapped as non-standard during initial parsing. Provider-specific translators (registered via `PROVIDER_TRANSLATORS`) then unpack them into standard types during `content_blocks` property access.++### Output Version Tracking-LangChain v1.0 introduced the v1 content block format, superseding the v0 `source_type` style. The block translators handle both:+The `response_metadata["output_version"]` field signals content normalization status:+- **`"v1"`**: Content is already normalized to v1 blocks (list of standard dicts). The `content_blocks` property returns content directly without re-parsing when:+ - `output_version == "v1"` **and** `content` is a list (not a string)+ - This short-circuit optimization avoids redundant parsing for model responses that already conform to v1 format.+- **`None` or absent**: Content requires normalization via provider translators and fallback parsing.-- **v0 blocks** (e.g., `{"type": "image", "source_type": "url", "url": "..."}`) are recognized and wrapped as non-standard blocks, then parsed by `_convert_v0_multimodal_input_to_v1()`.-- **Provider-specific blocks** (e.g., OpenAI's `image_url` from raw API responses) are unpacked by provider translators.-- **Output version tracking**: `response_metadata["output_version"] = "v1"` signals that content is already normalized, allowing short-circuit optimization.+For `AIMessageChunk`, the v1 short-circuit is especially critical: even if `output_version="v1"`, if `content` is a string (e.g., text-only streaming), the content falls through to the provider translator to build `ContentBlock` dicts from `tool_call_chunks`.## Example Workflowsdiff --git a/openwiki/middleware.md b/openwiki/middleware.mdindex c4a561f809..3598adc207 100644--- a/openwiki/middleware.md+++ b/openwiki/middleware.md@@ -1,10 +1,11 @@---type: "Reference"-title: "Middleware"-openwiki_generated: true+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]verified:- by: openwiki/0.5.0- at: 2026-09-03T15:18:34.589Z+ at: 2026-09-08T08:27:09.597Zsources:- id: openwiki-source-71e882e1ac9757ea8e959a7cresource: repo://libs/langchain_v1/langchain/agents/factory.py@@ -16,13 +17,12 @@ sources:resource: repo://libs/langchain_v1/langchain/agents/middleware/tool_error.py- id: openwiki-source-03e8ca0eebe37feda8566793resource: repo://libs/langchain_v1/langchain/agents/middleware/types.py-generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }+generated: { by: "openwiki/0.5.0", at: "2026-09-08T08:27:09.597Z" }----## Overview-Middleware in LangChain agents provides a composable, layered approach to intercepting and modifying agent behavior without changing core agent logic. Middleware hooks into the agent execution loop to implement cross-cutting concerns: automatic retries, error handling, human-in-the-loop approval, PII redaction, structured output transformation, and tool caching.+Middleware in LangChain agents provides a composable, layered approach to intercepting and modifying agent behavior without changing core agent logic. Middleware hooks into the agent execution loop to implement cross-cutting concerns: automatic retries, error handling, human-in-the-loop approval, tool argument validation, structured output transformation, and tool caching.### Core Architectural Principles@@ -52,7 +52,7 @@ class AgentMiddleware(Generic[StateT, ContextT, ResponseT]):### Lifecycle Hooks-Middleware can implement any or all of these lifecycle methods; unimplemented methods default to no-op:+Middleware can implement any or all of these lifecycle methods; unimplemented methods raise `NotImplementedError` if invoked in the wrong execution path (sync vs async):#### Before/After Agent@@ -204,7 +204,7 @@ middleware = ToolErrorMiddleware(on_error=on_error)### Control Flow & Approval Middleware-**HumanInTheLoopMiddleware**: Pauses after model-requested tool calls and sends an interrupt with action summaries to a human reviewer. Supports approval, editing, rejection, or human-answered "respond" decision types. Tool calls are modified based on human feedback before execution.+**HumanInTheLoopMiddleware**: Pauses after model-requested tool calls and sends an interrupt with action summaries to a human reviewer. Uses the `after_model` hook to intercept AIMessage tool calls and send a HITLRequest for review. Supports approval, editing, rejection, or human-answered "respond" decision types. Tool calls are modified based on human feedback before execution.```pythonfrom langchain.agents.middleware import HumanInTheLoopMiddleware@@ -220,6 +220,12 @@ hitl = HumanInTheLoopMiddleware()```+The middleware constructs `ActionRequest` objects (with name, args, and optional description) and `ReviewConfig` objects (with action name and allowed decision types), sends them as a `HITLRequest` via `langgraph.interrupt()`, receives decisions back, and processes them:+- **approve**: Tool call proceeds unchanged+- **edit**: Tool call arguments are revised by the human+- **reject**: Tool call is blocked; a ToolMessage with user feedback is sent to the model instead+- **respond**: Tool execution is skipped; a synthetic ToolMessage with the human's answer is returned to the model+### Data Transformation & Privacy Middleware**PIIMiddleware**: Detects personally identifiable information (PII) in prompts, model responses, and tool outputs; optionally redacts or transforms it. Supports configurable detectors and redaction rules.@@ -254,7 +260,7 @@ class ModelRequest(Generic[ContextT]):model_settings: dict[str, Any] # Additional model parameters```-**Immutable Pattern**: Middleware should not mutate `ModelRequest` directly. Use `request.override(**changes)` to create a new request with modifications.+**Immutable Pattern**: Middleware should not mutate `ModelRequest` directly. Use `request.override(**changes)` to create a new request with modifications. Direct attribute assignment is deprecated and raises `DeprecationWarning`.### ModelResponse@@ -290,7 +296,7 @@ class ToolCallRequest:tool_call: dict # Tool call dict with 'id', 'name', 'args'tool: BaseTool | None # Resolved BaseTool instance (or None in batch mode)state: AgentState[Any] # Agent state at time of call- runtime: Runtime[ContextT] # Runtime context (ToolRuntime with tool-specific info)+ runtime: ToolRuntime # Runtime context with tool-specific info```## Composition and Execution Order@@ -314,7 +320,7 @@ 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-first, then outer). 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.**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`.@@ -341,7 +347,7 @@ class LoggingMiddleware(AgentMiddleware):### Retry Logic with Exponential Backoff```python-import asyncio+import timefrom langchain.agents.middleware import AgentMiddleware, ModelRequest, ModelResponsefrom langchain_core.messages import AIMessage@@ -417,7 +423,7 @@ Middleware can provide sync-only, async-only, or both implementations. The agent- Call sync versions (`wrap_model_call`, `wrap_tool_call`) in sync contexts (`stream()`, `invoke()`).- Call async versions (`awrap_model_call`, `awrap_tool_call`) in async contexts (`astream()`, `ainvoke()`).-- Raise `NotImplementedError` if the required implementation is missing for the execution path.+- Raise `NotImplementedError` if the required implementation is missing for the execution path, with guidance to implement both versions or use async execution.**Best Practice**: Implement both versions unless the middleware is inherently async-only (e.g., uses async I/O).@@ -440,7 +446,7 @@ agent = create_agent()```-**Composition Rule**: First in the list = outermost (highest priority for interception and response transformation).+**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.## Tracing and Observability@@ -491,3 +497,4 @@ Middleware hooks are automatically named in trace spans as `{middleware_name}.{h- [Agent Execution Flow and Loop Control](/openwiki/agent-execution.md) – Detailed description of the agent loop, state management, and where middleware hooks are invoked.- [Agent Factory and Graph Construction](/openwiki/agent-factory.md) – How the agent graph is built, including middleware integration and handler composition.+- [Tools](/openwiki/tools.md) – Tool definition, registration, and execution context.diff --git a/openwiki/openai-provider.md b/openwiki/openai-provider.mdindex 1672bd16d5..16b607ae62 100644--- a/openwiki/openai-provider.md+++ b/openwiki/openai-provider.md@@ -1,10 +1,11 @@----type: "Reference"-title: "Use async methods (ainvoke, astream)"-openwiki_generated: true+type: "ChatModel Integration"+title: "OpenAI Integration: ChatOpenAI and Azure Support"+description: "ChatOpenAI integration for OpenAI's Chat Completions and Responses APIs, with support for tool calling, structured output, vision, streaming, and Azure deployment."+tags: ["openai", "chat-models", "tool-calling", "structured-output", "vision", "azure"]verified:- by: openwiki/0.5.0- at: 2026-09-03T15:18:34.589Z+ at: 2026-09-08T08:27:09.597Zsources:- id: openwiki-source-1e66a9da38565f8901e651f4resource: repo://libs/partners/openai/langchain_openai/__init__.py@@ -12,10 +13,9 @@ sources:resource: repo://libs/partners/openai/langchain_openai/chat_models/base.py- id: openwiki-source-74e5bef080f1af7da12371cfresource: repo://libs/partners/openai/langchain_openai/data/_profiles.py-generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }+generated: { by: "openwiki/0.5.0", at: "2026-09-08T08:27:09.597Z" }----## OverviewThe OpenAI integration (`langchain-openai`) provides production-ready chat model support for OpenAI's API and OpenAI-compatible endpoints. `ChatOpenAI` is the primary class that wraps OpenAI's Chat Completions and Responses APIs, with full support for:@@ -34,7 +34,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#L2799-L2900`+**Main Class**: `repo://libs/partners/openai/langchain_openai/chat_models/base.py#L2823-L2920`**Exports**: `repo://libs/partners/openai/langchain_openai/__init__.py`@@ -303,6 +303,7 @@ def bind_tools(- `'any'` / `'required'` / `True`: Force at least one tool call- `dict`: OpenAI tool choice dict `{"type": "function", "function": {"name": "tool_name"}}`- `False` / `None`: No effect, default behavior+ - `WellKnownTools` strings (`'file_search'`, `'web_search'`, `'tool_search'`, etc.): Built-in tools**Example:**```python@@ -314,6 +315,9 @@ def bind_tools(# Prevent tool usebound = model.bind_tools([get_weather, get_time], tool_choice="none")++ # Allow web search alongside tools+ bound = model.bind_tools([get_weather], tool_choice="web_search")```- **`parallel_tool_calls`** (`bool | None`): Allow the model to call multiple tools in one response. Default: `None` (allow parallel). Set to `False` to disable.@@ -323,9 +327,9 @@ def bind_tools(bound = model.bind_tools([get_weather, get_time], parallel_tool_calls=False)```-- **`strict`** (`bool | None`): If `True`, model output matches tool schema exactly. Schema is validated per OpenAI's [supported schemas](https://platform.openai.com/docs/guides/structured-outputs/supported-schemas). If `False`, no validation. If `None`, no strict requirement.+- **`strict`** (`bool | None`): If `True`, model output matches tool schema exactly. Schema is validated per OpenAI's [supported schemas](https://platform.openai.com/docs/guides/structured-outputs/supported-schemas). If `False`, no validation. If `None`, no strict requirement. When `response_format` is provided via Chat Completions API, strict defaults to `True` unless explicitly set to `False`.-- **`response_format`** (`dict | type | None`): Optional response schema for Chat Completions API. When set with tools, requires `strict=True` (exception: Responses API).+- **`response_format`** (`dict | type | None`): Optional response schema for Chat Completions API. When set with tools, requires `strict=True` (exception: Responses API does not require this).### Tool Call Processing@@ -655,6 +659,73 @@ model = ChatOpenAI()```+## Azure OpenAI Integration++`AzureChatOpenAI` is a specialized subclass for Azure OpenAI deployments. It uses different authentication and endpoint configuration than standard `ChatOpenAI`.++### Azure Setup++First, create an Azure OpenAI deployment using the [quickstart guide](https://learn.microsoft.com/en-us/azure/ai-foundry/openai/chatgpt-quickstart).++Install the package and set environment variables:++```bash+pip install -U langchain-openai++export AZURE_OPENAI_API_KEY="your-api-key"+export AZURE_OPENAI_ENDPOINT="https://your-resource-name.openai.azure.com/"+```++### Basic Usage++```python+from langchain_openai import AzureChatOpenAI++model = AzureChatOpenAI(+ azure_deployment="your-deployment",+ api_version="2024-05-01-preview",+ temperature=0,+ max_tokens=None,+)++response = model.invoke("What is 2 + 2?")+```++### Key Azure Parameters++- **`azure_deployment`** (`str`): Name of Azure OpenAI deployment+- **`api_version`** (`str`): Azure OpenAI REST API version (distinct from model version). See [versions](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#rest-api-versioning).+- **`model`** (`str`): Underlying OpenAI model name (for tracing and token counting, does not affect completion)+- **`model_version`** (`str`): Model version (e.g., `'0125'`, `'0125-preview'`) for token counting++### Azure Response Example++```python+# response includes Azure-specific metadata+response = model.invoke("Translate to French: Hello")++# response includes:+# - usage_metadata: token counts+# - response_metadata with:+# - prompt_filter_results: content safety filtering info+# - finish_reason+# - logprobs (if requested)+# - content_filter_results: safety filtering details+```++### Azure Streaming++```python+model = AzureChatOpenAI(+ azure_deployment="your-deployment",+ api_version="2024-05-01-preview",+ streaming=True+)++for chunk in model.stream("Translate to French: Hello"):+ print(chunk.content, end="")+```+## Model Name Examples**Current recommended models:**diff --git a/openwiki/quickstart.md b/openwiki/quickstart.mdindex 9c3d40e1b3..4591ea8fbd 100644--- a/openwiki/quickstart.md+++ b/openwiki/quickstart.md@@ -3,9 +3,6 @@ type: "Getting Started"title: "LangChain Repository Quick Start"description: "Entry point for engineers: orient to the monorepo structure, run first tests, understand what to edit for common tasks, and route to major development areas."tags: [quickstart, getting-started, monorepo, setup, development, first-steps, cli-reference]-verified:- - by: openwiki/0.5.0- at: 2026-09-03T15:18:34.589Zsources:- id: openwiki-source-4d1645cb6317345817452838resource: repo://.pre-commit-config.yaml@@ -44,6 +41,9 @@ sources:- id: openwiki-source-48ce5ee900993294d349b4e8resource: repo://libs/standard-tests/langchain_tests/__init__.pygenerated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }+verified:+ - by: openwiki/0.5.0+ at: 2026-09-08T08:27:09.597Z---## Welcome to LangChain Developmentdiff --git a/openwiki/source-map.md b/openwiki/source-map.mdindex 30f38270bf..f2e1d813a5 100644--- a/openwiki/source-map.md+++ b/openwiki/source-map.md@@ -3,9 +3,6 @@ type: "Reference"title: "Source Map: Repository File Organization"description: "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."tags: [reference, file-organization, monorepo, codebase-map, pathfinding]-verified:- - by: openwiki/0.5.0- at: 2026-09-03T15:18:34.589Zsources:- id: openwiki-source-4d1645cb6317345817452838resource: repo://.pre-commit-config.yaml@@ -47,7 +44,10 @@ sources:resource: repo://libs/partners/openai/langchain_openai/chat_models/base.py- id: openwiki-source-bd29e79613d5f366a00068f5resource: repo://libs/standard-tests/langchain_tests/base.py-generated: { by: "openwiki/0.5.0", at: "2026-09-03T15:18:34.589Z" }+generated: { by: "openwiki/0.5.0", at: "2026-09-08T08:27:09.597Z" }+verified:+ - by: openwiki/0.5.0+ at: 2026-09-08T08:27:09.597Z---## 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.1)+├── core/ # langchain-core: Base abstractions (v1.6.2)│ ├── 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.0)- │ ├─→ langchain-core (v1.6.1)+ │ ├─→ langchain-core (v1.6.2)│ └─→ LangGraph (state machines)│├─→ langchain-core (direct use)