MCPcopy Create free account
hub / github.com/AI45Lab/Code / complete_streaming

Method complete_streaming

core/src/llm/anthropic.rs:300–309  ·  view source on GitHub ↗
(
        &self,
        messages: &[Message],
        system: Option<&str>,
        tools: &[ToolDefinition],
        cancel_token: CancellationToken,
    )

Source from the content-addressed store, hash-verified

298 }
299
300 async fn complete_streaming(
301 &self,
302 messages: &[Message],
303 system: Option<&str>,
304 tools: &[ToolDefinition],
305 cancel_token: CancellationToken,
306 ) -> Result<mpsc::Receiver<StreamEvent>> {
307 self.send_streaming(self.build_request(messages, system, tools), cancel_token)
308 .await
309 }
310
311 async fn complete_streaming_structured(
312 &self,

Callers

nothing calls this directly

Calls 2

build_requestMethod · 0.80
send_streamingMethod · 0.45

Tested by

no test coverage detected