MCPcopy
hub / github.com/the-open-agent/openagent / GetChat

Function GetChat

object/chat.go:89–95  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

87}
88
89func GetChat(id string) (*Chat, error) {
90 owner, name, err := util.GetOwnerAndNameFromIdWithError(id)
91 if err != nil {
92 return nil, err
93 }
94 return getChat(owner, name)
95}
96
97func UpdateChat(id string, chat *Chat) (bool, error) {
98 owner, name, err := util.GetOwnerAndNameFromIdWithError(id)

Callers 14

ensurePipeChatFunction · 0.92
ensureMessageMutableMethod · 0.92
AddMessageMethod · 0.92
GetChatStatusMethod · 0.92
GetChatMethod · 0.92
UpdateChatMethod · 0.92
DeleteChatMethod · 0.92
applyResultToApiSessionFunction · 0.92
generateMessageAnswerFunction · 0.92
GetAnswerMethod · 0.92

Calls 2

getChatFunction · 0.70

Tested by

no test coverage detected