(
session: &AgentSession,
prompt: &str,
attachments: &[Attachment],
history: Option<&[Message]>,
)
| 60 | } |
| 61 | |
| 62 | pub(super) async fn stream_with_attachments( |
| 63 | session: &AgentSession, |
| 64 | prompt: &str, |
| 65 | attachments: &[Attachment], |
| 66 | history: Option<&[Message]>, |
| 67 | ) -> Result<(mpsc::Receiver<AgentEvent>, JoinHandle<()>)> { |
| 68 | bail_if_closed(session)?; |
| 69 | |
| 70 | let input = ConversationInput::with_attachments(session, history, prompt, attachments); |
| 71 | let stream_run = StreamRunContext::start(session, prompt, input.persistence).await; |
| 72 | Ok(stream_run.spawn_from_messages(input.messages)) |
| 73 | } |
| 74 | |
| 75 | pub(super) async fn stream( |
| 76 | session: &AgentSession, |
no test coverage detected