Skip to content

Commit b181e0c

Browse files
committed
🔊 (assistant_v2): Print invoked function names and record progress
1 parent 276bdfb commit b181e0c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

assistant_v2/FEATURE_PROGRESS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ This document tracks which features from the original assistant have been implem
1919
| Open OpenAI billing page | Done |
2020
| Push-to-talk text-to-speech interface | Done |
2121
| Interrupt AI speech with push-to-talk | Done |
22+
| Log function invocation names | Done |
2223

2324
Update this table as features are migrated and verified to work in `assistant_v2`.

assistant_v2/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ async fn handle_requires_action(
431431

432432
if let Some(required_action) = &run_object.required_action {
433433
for tool in &required_action.submit_tool_outputs.tool_calls {
434+
println!("{}{}", "Invoking function: ".purple(), tool.function.name);
434435
if tool.function.name == "get_current_temperature" {
435436
tool_outputs.push(ToolsOutputs {
436437
tool_call_id: Some(tool.id.clone()),

0 commit comments

Comments
 (0)