MCPcopy Create free account
hub / github.com/53AI/53AIHub / GetMessageType

Method GetMessageType

api/model/message.go:133–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func (m *Message) GetMessageType() MessageType {
134 agent, err := GetAgentByID(m.Eid, m.AgentID)
135 if err != nil {
136 return MessageTypeChat
137 }
138
139 if agent.AgentType == AgentTypeWorkflow {
140 return MessageTypeWorkflow
141 }
142
143 return MessageTypeChat
144}
145
146func (m *Message) ParseChatMessage() ([]map[string]interface{}, error) {
147 var messages []map[string]interface{}

Callers 1

Calls 1

GetAgentByIDFunction · 0.85

Tested by

no test coverage detected