MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / chat_stream

Method chat_stream

crates/opencode-session/src/compaction.rs:1067–1075  ·  view source on GitHub ↗
(&self, request: ChatRequest)

Source from the content-addressed store, hash-verified

1065 }
1066
1067 async fn chat_stream(&self, request: ChatRequest) -> Result<StreamResult, ProviderError> {
1068 *self.last_request.lock().await = Some(request);
1069 Ok(Box::pin(stream::iter(
1070 self.stream_events
1071 .clone()
1072 .into_iter()
1073 .map(Result::<StreamEvent, ProviderError>::Ok),
1074 )))
1075 }
1076 }
1077
1078 #[derive(Default)]

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected