mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 04:40:45 +08:00
重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。 Made-with: Cursor
This commit is contained in:
parent
ba3836f00f
commit
4a23b715a2
498 changed files with 2760 additions and 2200 deletions
|
|
@ -1,12 +1,12 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from oclaw.openclaw_runtime.memory_stage import render_memory_context_block
|
||||
from oclaw.openclaw_runtime.types import OpenClawMemoryContext
|
||||
from oclaw.prompts.loader import render_openclaw_prompt
|
||||
from oclaw.runtime.memory_stage import render_memory_context_block
|
||||
from oclaw.runtime.types import OclawMemoryContext
|
||||
from oclaw.prompts.loader import render_runtime_prompt
|
||||
|
||||
|
||||
def test_router_prompt_renders() -> None:
|
||||
txt = render_openclaw_prompt(
|
||||
txt = render_runtime_prompt(
|
||||
"router/decide_route.md",
|
||||
variables={"user_text": "hi", "has_attachments": "no"},
|
||||
strict=True,
|
||||
|
|
@ -17,7 +17,7 @@ def test_router_prompt_renders() -> None:
|
|||
|
||||
|
||||
def test_memory_context_markdown_block() -> None:
|
||||
ctx = OpenClawMemoryContext(
|
||||
ctx = OclawMemoryContext(
|
||||
short_term=("用户想排查网络问题",),
|
||||
semantic_hits=({"content": "上次 DNS 配置异常", "score": 0.91},),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue