Documentation
¶
Index ¶
- Constants
- func Allowed(allowed []string, value string) bool
- func IsMode(o libacp.SessionConfigOption, syntheticModeID string) bool
- func Load(ctx context.Context, store runtimetypes.Store, agent string) []libacp.SessionConfigOption
- func RestrictModes(opts []libacp.SessionConfigOption, allowed []string, syntheticModeID string) []libacp.SessionConfigOption
- func Save(ctx context.Context, store runtimetypes.Store, agent string, ...) error
- type Record
Constants ¶
View Source
const CategoryMode = "mode"
View Source
const CategoryModel = "model"
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context, store runtimetypes.Store, agent string) []libacp.SessionConfigOption
func RestrictModes ¶
func RestrictModes(opts []libacp.SessionConfigOption, allowed []string, syntheticModeID string) []libacp.SessionConfigOption
func Save ¶
func Save(ctx context.Context, store runtimetypes.Store, agent string, opts []libacp.SessionConfigOption) error
Types ¶
type Record ¶
type Record struct {
ConfigOptions []libacp.SessionConfigOption `json:"configOptions"`
}
Click to show internal directories.
Click to hide internal directories.