Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// SessionFile is the --session path. Its basename (without .jsonl) is the Pi session id.
SessionFile string `json:"sessionFile"`
// Model is the initial model id.
Model string `json:"model"`
// ModelProvider is config.modelProvider. set_model rejects any other provider.
ModelProvider string `json:"modelProvider"`
// BaseURL is config.baseUrl, echoed on get_state.
BaseURL string `json:"baseUrl"`
// WireAPI is config.wireApi, echoed as model.api.
WireAPI string `json:"wireApi"`
// AllowedModels lists model ids set_model may select, besides Model.
// An empty map allows only Model.
AllowedModels map[string]json.RawMessage `json:"allowedModels,omitempty"`
}
Config is the Pi RPC session Centaur already knows about. Model and provider are echoed on get_state and checked on set_model.
type Deps ¶
type Deps struct {
SessionStore agentkit.SessionStore `json:"sessionStore,omitempty"`
}
Deps holds optional capabilities. SessionStore is used when it implements SessionRuntimeStore, so set_model writes the same bind as /model.
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
Platform speaks Centaur Pi RPC on stdin/stdout. stdout is protocol only. Logs go to stderr.
func (*Platform) PermissionCapability ¶
func (p *Platform) PermissionCapability() permission.Capability
func (*Platform) PlatformID ¶
Click to show internal directories.
Click to hide internal directories.