summaryrefslogtreecommitdiffstats
path: root/src/client/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/stream.rs')
-rw-r--r--src/client/stream.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/stream.rs b/src/client/stream.rs
index 907efee..b6a1b46 100644
--- a/src/client/stream.rs
+++ b/src/client/stream.rs
@@ -65,6 +65,10 @@ impl SseHandler {
self.abort.clone()
}
+ pub fn get_tool_calls(&self) -> &[ToolCall] {
+ &self.tool_calls
+ }
+
pub fn take(self) -> (String, Vec<ToolCall>) {
let Self {
buffer, tool_calls, ..