(&self)
| 612 | } |
| 613 | |
| 614 | pub async fn do_todo_get(&self) -> Result<Vec<TodoItemData>, ToolError> { |
| 615 | if let Some(ref callback) = self.todo_get { |
| 616 | callback(self.session_id.clone()).await |
| 617 | } else { |
| 618 | Ok(Vec::new()) |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | pub fn with_get_last_model<F, Fut>(mut self, callback: F) -> Self |
| 623 | where |