MCPcopy Create free account
hub / github.com/astercloud/aster / Chat

Method Chat

pkg/desktop/bridge_wails.go:98–105  ·  view source on GitHub ↗

============================================ Wails-exposed methods (called from frontend) ============================================ Chat sends a chat message to an agent Exposed to Wails frontend as: window.go.desktop.WailsBridge.Chat(agentID, message)

(agentID, message string)

Source from the content-addressed store, hash-verified

96// Chat sends a chat message to an agent
97// Exposed to Wails frontend as: window.go.desktop.WailsBridge.Chat(agentID, message)
98func (b *WailsBridge) Chat(agentID, message string) (*BackendResponse, error) {
99 return b.handler(&FrontendMessage{
100 ID: generateID(),
101 Type: MsgTypeChat,
102 AgentID: agentID,
103 Payload: mustMarshal(ChatPayload{Message: message}),
104 })
105}
106
107// Cancel cancels the current operation
108// Exposed to Wails frontend as: window.go.desktop.WailsBridge.Cancel(agentID)

Callers

nothing calls this directly

Calls 2

mustMarshalFunction · 0.85
generateIDFunction · 0.70

Tested by

no test coverage detected