-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathsdk.go
More file actions
38 lines (31 loc) · 1.17 KB
/
Copy pathsdk.go
File metadata and controls
38 lines (31 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Package sdk is a miniature stand-in for the generated Copilot SDK surface.
package sdk
// StableGreeting is a stable API.
func StableGreeting(name string) string {
return "Hello, " + name
}
// StartCanvas starts an experimental canvas session.
//
// Experimental: StartCanvas is an experimental API and may change or be removed.
func StartCanvas() string { // want StartCanvas:"experimental"
return "canvas"
}
// CanvasOptions configures a canvas.
//
// Experimental: CanvasOptions is part of an experimental API and may change or be removed.
type CanvasOptions struct { // want CanvasOptions:"experimental"
Title string
}
// Client is a stable client.
type Client struct {
// Name is a stable field.
Name string
// Experimental: EnableMCPApps is part of an experimental wire-protocol surface and may change or be removed.
EnableMCPApps bool // want EnableMCPApps:"experimental"
}
// Connect is a stable method.
func (c *Client) Connect() {}
// EnableExperimentalMode enables an experimental mode.
//
// Experimental: EnableExperimentalMode is an experimental API and may change or be removed.
func (c *Client) EnableExperimentalMode() {} // want EnableExperimentalMode:"experimental"