MCPcopy
hub / github.com/wavetermdev/waveterm / ConvertAIChatToUIChat

Method ConvertAIChatToUIChat

pkg/aiusechat/usechat-backend.go:55–55  ·  view source on GitHub ↗

ConvertAIChatToUIChat converts a stored AIChat (with native backend messages) into a UI-friendly UIChat format that can be displayed in the frontend.

(aiChat uctypes.AIChat)

Source from the content-addressed store, hash-verified

53 // ConvertAIChatToUIChat converts a stored AIChat (with native backend messages) into
54 // a UI-friendly UIChat format that can be displayed in the frontend.
55 ConvertAIChatToUIChat(aiChat uctypes.AIChat) (*uctypes.UIChat, error)
56}
57
58// Compile-time interface checks

Callers 1

ConvertAIChatToUIChatFunction · 0.65

Implementers 4

openaiResponsesBackendpkg/aiusechat/usechat-backend.go
openaiCompletionsBackendpkg/aiusechat/usechat-backend.go
anthropicBackendpkg/aiusechat/usechat-backend.go
geminiBackendpkg/aiusechat/usechat-backend.go

Calls

no outgoing calls

Tested by

no test coverage detected