Sets the next user message with "cancelled" tool results.
(&mut self, tools_to_be_abandoned: &[QueuedTool], deny_input: String)
| 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 | /// |
no test coverage detected