Skip to content

Commit b10717a

Browse files
baxenampcode-comDouwe Osinga
authored
feat: Add summarize tool for deterministic reads (#7054)
Co-authored-by: Amp <amp@ampcode.com> Co-authored-by: Douwe Osinga <douwe@squareup.com>
1 parent 76e4966 commit b10717a

File tree

3 files changed

+563
-0
lines changed

3 files changed

+563
-0
lines changed

crates/goose/src/agents/platform_extensions/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pub mod chatrecall;
55
pub mod code_execution;
66
pub mod developer;
77
pub mod ext_manager;
8+
pub mod summarize;
89
pub mod summon;
910
pub mod todo;
1011
pub mod tom;
@@ -104,6 +105,18 @@ pub static PLATFORM_EXTENSIONS: Lazy<HashMap<&'static str, PlatformExtensionDef>
104105
},
105106
);
106107

108+
map.insert(
109+
summarize::EXTENSION_NAME,
110+
PlatformExtensionDef {
111+
name: summarize::EXTENSION_NAME,
112+
display_name: "Summarize",
113+
description: "Load files/directories and get an LLM summary in a single call",
114+
default_enabled: false,
115+
unprefixed_tools: false,
116+
client_factory: |ctx| Box::new(summarize::SummarizeClient::new(ctx).unwrap()),
117+
},
118+
);
119+
107120
#[cfg(feature = "code-mode")]
108121
map.insert(
109122
code_execution::EXTENSION_NAME,

0 commit comments

Comments
 (0)