============================================ 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)
| 96 | // Chat sends a chat message to an agent |
| 97 | // Exposed to Wails frontend as: window.go.desktop.WailsBridge.Chat(agentID, message) |
| 98 | func (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) |
nothing calls this directly
no test coverage detected