Method
do_create_synthetic_message
(
&self,
agent: Option<String>,
text: String,
)
Source from the content-addressed store, hash-verified
| 648 | } |
| 649 | |
| 650 | pub async fn do_create_synthetic_message( |
| 651 | &self, |
| 652 | agent: Option<String>, |
| 653 | text: String, |
| 654 | ) -> Result<(), ToolError> { |
| 655 | if let Some(ref callback) = self.create_synthetic_message { |
| 656 | callback(self.session_id.clone(), agent, text).await |
| 657 | } else { |
| 658 | Ok(()) |
| 659 | } |
| 660 | } |
| 661 | |
| 662 | pub fn is_cancelled(&self) -> bool { |
| 663 | self.abort.is_cancelled() |
Callers
nothing calls this directly
Tested by
no test coverage detected