MCPcopy Index your code
hub / github.com/coder/coder / streamFromParts

Function streamFromParts

coderd/x/chatd/chatadvisor/runner_test.go:682–690  ·  view source on GitHub ↗
(parts []fantasy.StreamPart)

Source from the content-addressed store, hash-verified

680}
681
682func streamFromParts(parts []fantasy.StreamPart) fantasy.StreamResponse {
683 return iter.Seq[fantasy.StreamPart](func(yield func(fantasy.StreamPart) bool) {
684 for _, part := range parts {
685 if !yield(part) {
686 return
687 }
688 }
689 })
690}
691
692func textMessage(role fantasy.MessageRole, text string) fantasy.Message {
693 return fantasy.Message{

Calls

no outgoing calls

Tested by

no test coverage detected