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

Method abandon_tool_use

crates/chat-cli/src/cli/chat/conversation.rs:496–502  ·  view source on GitHub ↗

Sets the next user message with "cancelled" tool results.

(&mut self, tools_to_be_abandoned: &[QueuedTool], deny_input: String)

Source from the content-addressed store, hash-verified

494
495 /// Sets the next user message with "cancelled" tool results.
496 pub fn abandon_tool_use(&mut self, tools_to_be_abandoned: &[QueuedTool], deny_input: String) {
497 self.next_message = Some(UserMessage::new_cancelled_tool_uses(
498 Some(deny_input),
499 tools_to_be_abandoned.iter().map(|t| t.id.as_str()),
500 Some(Local::now().fixed_offset()),
501 ));
502 }
503
504 /// Returns a [FigConversationState] capable of being sent by [api_client::StreamingClient].
505 ///

Callers 2

nextMethod · 0.80
handle_inputMethod · 0.80

Calls 2

mapMethod · 0.80
as_strMethod · 0.45

Tested by

no test coverage detected