返回 DeepSeek-Reasonix
mcp_app.go
根目录 / internal / provider / mcp_app.go
1 package provider
2
3 import "encoding/json"
4
5 // MCPAppPresentation is the host-local MCP Apps payload: the standard
6 // CallToolResult plus the resource identity needed to restore the App UI.
7 // Bounded to 512 KiB with inline audio/video and oversized base64 removed
8 // before attach; provider serializers must never emit this object.
9 type MCPAppPresentation struct {
10 Server string `json:"server"`
11 Tool string `json:"tool"`
12 Generation uint64 `json:"generation"`
13 ResourceURI string `json:"resourceUri,omitempty"`
14 CSP map[string][]string `json:"csp,omitempty"`
15 RawResult json.RawMessage `json:"rawResult,omitempty"`
16 Structured json.RawMessage `json:"structured,omitempty"`
17 }
18
18 lines GO