@@ -143,6 +143,7 @@ const (
143143 Command_GetWaveAIChat = "getwaveaichat"
144144 Command_GetWaveAIRateLimit = "getwaveairatelimit"
145145 Command_WaveAIToolApprove = "waveaitoolapprove"
146+ Command_WaveAIAddContext = "waveaiaddcontext"
146147
147148 Command_CaptureBlockScreenshot = "captureblockscreenshot"
148149
@@ -273,6 +274,7 @@ type WshRpcInterface interface {
273274 GetWaveAIChatCommand (ctx context.Context , data CommandGetWaveAIChatData ) (* uctypes.UIChat , error )
274275 GetWaveAIRateLimitCommand (ctx context.Context ) (* uctypes.RateLimitInfo , error )
275276 WaveAIToolApproveCommand (ctx context.Context , data CommandWaveAIToolApproveData ) error
277+ WaveAIAddContextCommand (ctx context.Context , data CommandWaveAIAddContextData ) error
276278
277279 // screenshot
278280 CaptureBlockScreenshotCommand (ctx context.Context , data CommandCaptureBlockScreenshotData ) (string , error )
@@ -734,6 +736,19 @@ type CommandWaveAIToolApproveData struct {
734736 Approval string `json:"approval,omitempty"`
735737}
736738
739+ type AIAttachedFile struct {
740+ Name string `json:"name"`
741+ Type string `json:"type"`
742+ Size int `json:"size"`
743+ Data []byte `json:"data"`
744+ }
745+
746+ type CommandWaveAIAddContextData struct {
747+ Files []AIAttachedFile `json:"files,omitempty"`
748+ Text string `json:"text,omitempty"`
749+ Submit bool `json:"submit,omitempty"`
750+ }
751+
737752type CommandCaptureBlockScreenshotData struct {
738753 BlockId string `json:"blockid" wshcontext:"BlockId"`
739754}
0 commit comments