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

Function canonicalContentType

coderd/x/chatd/chatdebug/model.go:871–880  ·  view source on GitHub ↗
(partType string)

Source from the content-addressed store, hash-verified

869}
870
871func canonicalContentType(partType string) string {
872 switch partType {
873 case string(fantasy.StreamPartTypeToolCall), string(fantasy.ContentTypeToolCall):
874 return string(fantasy.ContentTypeToolCall)
875 case string(fantasy.StreamPartTypeToolResult), string(fantasy.ContentTypeToolResult):
876 return string(fantasy.ContentTypeToolResult)
877 default:
878 return partType
879 }
880}
881
882func appendNormalizedStreamContent(
883 content []normalizedContentPart,

Callers 3

normalizeMessagePartsFunction · 0.85
normalizeContentPartsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected