MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / send_tool_use_telemetry

Method send_tool_use_telemetry

crates/chat-cli/src/cli/chat/mod.rs:3633–3643  ·  view source on GitHub ↗
(&mut self, os: &Os)

Source from the content-addressed store, hash-verified

3631 }
3632
3633 async fn send_tool_use_telemetry(&mut self, os: &Os) {
3634 for (_, mut event) in self.tool_use_telemetry_events.drain() {
3635 event.user_input_id = match self.tool_use_status {
3636 ToolUseStatus::Idle => self.conversation.message_id(),
3637 ToolUseStatus::RetryInProgress(ref id) => Some(id.as_str()),
3638 }
3639 .map(|v| v.to_string());
3640
3641 os.telemetry.send_tool_use_suggested(&os.database, event).await.ok();
3642 }
3643 }
3644
3645 fn terminal_width(&self) -> usize {
3646 (self.terminal_width_provider)().unwrap_or(80)

Callers 4

handle_inputMethod · 0.80
tool_use_executeMethod · 0.80
handle_responseMethod · 0.80
validate_toolsMethod · 0.80

Calls 5

mapMethod · 0.80
to_stringMethod · 0.80
message_idMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected