Skip to main content

Module message

Module message 

Source
Expand description

Message / ContentBlock —— 直接对应 Anthropic Messages API 的形状, 顺手当作我们的内部 transcript 表示(jsonl 持久化也用同一份 schema)。

Enums§

CacheEdit
A single cache edit operation sent in the cache_edits content block. Currently only supports delete_tool_result.
ContentBlock
内容块。type 字段做 enum tag。
ImageSource
Message
transcript 中的一条消息。User / Assistant 进 API;System 仅 UI 持久化用。
Role
StopReason
模型停止原因。Anthropic API 取值。
SystemKind
ToolResultContent
tool_result.content 字段:string 或 ContentBlock 数组。