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

Function SeedSummary

coderd/x/chatd/chatdebug/summary.go:37–42  ·  view source on GitHub ↗

SeedSummary builds a base summary map with a first_message label. Returns nil if label is empty.

(label string)

Source from the content-addressed store, hash-verified

35// SeedSummary builds a base summary map with a first_message label.
36// Returns nil if label is empty.
37func SeedSummary(label string) map[string]any {
38 if label == "" {
39 return nil
40 }
41 return map[string]any{"first_message": label}
42}
43
44// ExtractFirstUserText extracts the plain text content from a
45// fantasy.Prompt for the first user message. Used to derive

Callers 5

prepareChatTurnDebugRunFunction · 0.92
TestSeedSummaryFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestSeedSummaryFunction · 0.74