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

Function makeCommittedPart

coderd/x/chatd/chatd_internal_test.go:5889–5893  ·  view source on GitHub ↗

makeCommittedPart builds a part already claimed by the given durable assistant message ID.

(committedID int64, text string)

Source from the content-addressed store, hash-verified

5887// makeCommittedPart builds a part already claimed by the given
5888// durable assistant message ID.
5889func makeCommittedPart(committedID int64, text string) bufferedStreamPart {
5890 p := makeInProgressPart(text)
5891 p.committedMessageID = committedID
5892 return p
5893}
5894
5895func partText(event codersdk.ChatStreamEvent) string {
5896 if event.MessagePart == nil {

Calls 1

makeInProgressPartFunction · 0.85

Tested by

no test coverage detected