Normalize shell and patch tool cards
This commit is contained in:
1 parent
4dc3e3d784
commit
b507656abd
11 files changed
+327
-16
No files matched your search
@@ -389,6 +389,15 @@ pub enum Event {
|
||||
},
|
||||
}
|
||||
|
||||
/// The common presentation of a file change, whichever driver produced it.
|
||||
pub(super) fn patch_start(id: String, diff: String) -> Event {
|
||||
Event::ToolStart {
|
||||
id,
|
||||
tool: "Patch".to_string(),
|
||||
input: serde_json::json!({"diff": diff}),
|
||||
}
|
||||
}
|
||||
|
||||
/// How much the model was holding, from the three figures a turn reports:
|
||||
/// the input side only, prompt plus both cache figures. A cached token is
|
||||
/// cheaper but it is still one the model was given; output is what the turn
|
||||
|
||||
Reference in new issue
Block a user