摘要:
AnthropicRuntimeClient::consume_stream 详解 位置: main.rs:9493-9683 函数签名 async fn consume_stream( &self, message_request: &MessageRequest, apply_stall_tim 阅读全文
posted @ 2026-05-28 19:12
青山見我
阅读(49)
评论(0)
推荐(0)
摘要:
ConversationRuntime::run_turn 函数解析 位置: rust/crates/runtime/src/conversation.rs:318-524 概述 ConversationRuntime::run_turn 是整个 claw-code CLI 的核心 LLM 对话引擎 阅读全文
posted @ 2026-05-28 18:58
青山見我
阅读(38)
评论(0)
推荐(0)
摘要:
run_repl 函数解析 位置: rust/crates/rusty-claude-cli/src/main.rs:4612-4678 run_repl 是 claw-code CLI 的交互式 REPL 主循环。它是用户在终端输入 claw(不带子命令)后进入的那个交互对话界面的核心入口。 函数 阅读全文
posted @ 2026-05-28 17:49
青山見我
阅读(45)
评论(0)
推荐(0)
摘要:
run_turn 函数解析 run_turn 有两层实现: 层次 函数 位置 职责 CLI 编排层 LiveCli::run_turn main.rs:5315 spinner 动画、自动压缩重试、持久化、打印结果 核心循环层 Runtime::run_turn conversation.rs:31 阅读全文
posted @ 2026-05-28 16:56
青山見我
阅读(34)
评论(0)
推荐(0)
摘要:
用户输入获取流程 两条入口路径 ┌─────────────────┐ │ main() / run()│ └────────┬────────┘ │ parse_args() ┌─────────────┴─────────────┐ │ │ CliAction::Prompt CliAction 阅读全文
posted @ 2026-05-28 16:52
青山見我
阅读(45)
评论(0)
推荐(0)

浙公网安备 33010602011771号