oclaw/oclaw.json
oliver 37a2ef35f4 实现附件处理链路的统一引用化与可检索增强,避免大文件/多模态内容直接撑爆上下文并提升工具可用性。
本次补齐 text/image/video/archive 的标准化处理、会话级工具守卫、回放压缩、配置与文档对齐,并修复表格与流式输出相关体验问题。

Made-with: Cursor
2026-04-26 15:25:50 +08:00

65 lines
1.9 KiB
JSON

{
"plugins": {
"enabled": ["memory-wiki"],
"slots": {
"memory": "memory-wiki"
},
"entries": {
"memory-wiki": {
"wiki_root": "data/wiki",
"max_search_results": 20,
"max_get_lines": 800,
"auto": {
"enabled": true,
"attachments": {
"tabular": {
"max_rows_read": 5000,
"max_columns": 200,
"max_cell_chars": 500,
"max_excel_sheets": 50,
"large_table_preview_rows": 20,
"tool_mode_enabled": true,
"tool_mode_min_rows": 20000,
"tool_mode_max_bytes": 31457280,
"image_result_replay_cap_chars": 4000,
"video_result_replay_cap_chars": 4000,
"video_transcript_chunk_size": 1600,
"video_transcript_chunk_overlap": 200,
"archive_max_depth": 2,
"archive_max_file_count": 200,
"archive_max_entry_bytes": 10485760,
"archive_max_total_uncompressed_bytes": 52428800
}
},
"inject": {
"max_chars": 1800,
"top_k": 6,
"ultra_saver_enabled": true,
"min_query_chars": 20,
"require_topic_hint": true
},
"worker": {
"enabled": true
},
"topic_routing": {
"rules": [
{
"topic": "network",
"keywords": ["vlan", "router", "switch", "network", "dns", "gateway"]
},
{
"topic": "devops",
"keywords": ["deploy", "k8s", "kubernetes", "docker", "ci", "ops"]
},
{
"topic": "engineering",
"keywords": ["bug", "fix", "todo", "feature", "refactor", "test"]
}
]
}
}
}
}
}
}