MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / stream_message

Method stream_message

claw-code/rust/crates/api/src/client.rs:217–231  ·  view source on GitHub ↗
(
        &self,
        request: &MessageRequest,
    )

Source from the content-addressed store, hash-verified

215 }
216
217 pub async fn stream_message(
218 &self,
219 request: &MessageRequest,
220 ) -> Result<MessageStream, ApiError> {
221 let response = self
222 .send_with_retry(&request.clone().with_streaming())
223 .await?;
224 Ok(MessageStream {
225 request_id: request_id_from_headers(response.headers()),
226 response,
227 parser: SseParser::new(),
228 pending: VecDeque::new(),
229 done: false,
230 })
231 }
232
233 pub async fn exchange_oauth_code(
234 &self,

Callers 4

streamMethod · 0.80
streamMethod · 0.80
live_stream_smoke_testFunction · 0.80

Calls 3

request_id_from_headersFunction · 0.85
send_with_retryMethod · 0.80
with_streamingMethod · 0.80