Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Home string
Name string
Prompt string
// Dial makes the client of each model; nil calls the provider's API.
Dial Dial
// ClientFor, when set, picks the client a user's call goes through
// instead of the catalog's, as a deployment that bills each user's own
// account would.
ClientFor func(user, connection string) (llm.Client, error)
Tools []kit.Provider
Hub bool
OptIn []string
Allowlist []string
Permissions policy.Settings
// Sandboxes are the providers a user's environments are sandboxes of,
// by id: this machine, a cloud's. Sandbox names the one every user's
// first environment is a sandbox of.
Sandboxes map[string]sandbox.Provider
Sandbox string
// Commands is how commands run in every environment: timeouts and the
// commands never run.
Commands workspace.Config
Slots int
UserSlots int
RunLimit time.Duration
TaskSlots int
UserTaskSlots int
TaskLimit time.Duration
Location *time.Location
Gateway *gateway.Options
}
type Dial ¶ added in v0.27.1
type Dial func(p account.ModelProvider, m account.ProviderModel) (llm.Client, error)
Dial makes the client that calls one model of the deployment. The default speaks the provider's API at its base URL with its key; a deployment replaces it to route calls elsewhere, and tests to answer them.