CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
docs: reconcile rebased main docs with dispatch default
xf gonge5b85c1bbb8f
diff --git a/website/docs/guides/agents/tool-use.md b/website/docs/guides/agents/tool-use.mdindex 1d2a246..b28bce0 100644--- a/website/docs/guides/agents/tool-use.md+++ b/website/docs/guides/agents/tool-use.md@@ -238,9 +238,13 @@ turn that follows.`DeferredToolGroup` solves this by replacing the full schemas with acompact catalog. The model sees a one-line description per group and-expands a group on demand via the built-in `load_tools` tool — the-loader runs once, the tools are injected into the live tool set, and-their schemas are appended (append-only, for cache stability).+loads a group on demand via the built-in `load_tools` tool, which+returns the group's full schemas in its tool result; loaded tools are+then invoked through the `deferred_tool_call` dispatcher. The tools+array and system prompt stay byte-stable for the whole run, so loading+never invalidates the prompt cache. (The v1 behavior — injecting loaded+tools into the model-visible tools array as native tools — remains+available via `deferred_tool_strategy="inject"`.)```pythonfrom cubepi import Agentdiff --git a/website/docs/guides/middleware/examples.md b/website/docs/guides/middleware/examples.mdindex 0164d67..cdcdbac 100644--- a/website/docs/guides/middleware/examples.md+++ b/website/docs/guides/middleware/examples.md@@ -353,7 +353,7 @@ cross-process suspend/resume — are in the [HITL guide](../hitl/overview).## See also-- [The 8 Hooks](./hooks) — exact semantics of each hook.+- [The 9 Hooks](./hooks) — exact semantics of each hook.- [Composition Rules](./composition) — how multiple middlewarescombine.- [Recipes](../../recipes/weather-agent) — middleware composed intodiff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/agents/tool-use.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/agents/tool-use.mdindex b3b8bf4..1969ae6 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/agents/tool-use.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/agents/tool-use.md@@ -220,9 +220,11 @@ CubePi 仅在当前批次中 *每个* 工具结果都是 `terminate=True` 时才都会让之后每一轮的 cache 失效。`DeferredToolGroup` 的解法是用一份紧凑的目录替代完整 schema。模型看到-每个组一行描述,需要时通过内置的 `load_tools` 工具按需展开——loader-跑一次,工具被注入到运行中的 tool 集,schema 追加到 system prompt 末尾-(append-only,保持 cache 稳定)。+每个组一行描述,需要时通过内置的 `load_tools` 工具按需加载——该组的+完整 schema 随工具结果返回,之后通过 `deferred_tool_call` 转发器调用。+tools 数组和 system prompt 整个 run 保持字节稳定,加载永不破坏 prompt+cache。(v1 行为——把加载的工具注入模型可见的 tools 数组、原生调用——+仍可通过 `deferred_tool_strategy="inject"` 选用。)```pythonfrom cubepi import Agentdiff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/middleware/examples.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/middleware/examples.mdindex 65ab043..97eec8c 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/middleware/examples.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/middleware/examples.md@@ -279,6 +279,6 @@ agent = Agent(## 另请参阅-- [8 个 Hook](./hooks) —— 每个 hook 的精确语义。+- [9 个 Hook](./hooks) —— 每个 hook 的精确语义。- [组合规则](./composition) —— 多个中间件如何组合。- [配方](../../recipes/weather-agent) —— 中间件在真实应用中的组合。