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

Method has_tool_use_results

crates/chat-cli/src/cli/chat/message.rs:230–235  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

228 }
229
230 pub fn has_tool_use_results(&self) -> bool {
231 match self.content() {
232 UserMessageContent::CancelledToolUses { .. } | UserMessageContent::ToolUseResults { .. } => true,
233 UserMessageContent::Prompt { .. } => false,
234 }
235 }
236
237 pub fn tool_use_results(&self) -> Option<&[ToolUseResult]> {
238 match self.content() {

Callers 1

Calls 1

contentMethod · 0.45

Tested by

no test coverage detected