Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New registers tool/set-model: let the agent switch this session's LLM model (tool name: set_model).
Best practices:
- Writes the same session runtime.json model override as /model; the new model takes effect on the next turn.
- Configure allowModels in production so the agent can only pick deployed models.
- Subagent contexts are denied: children keep their own definition model.
Types ¶
type Config ¶
type Config struct {
// AllowModels is the whitelist of model ids the agent may switch to.
// Empty means no restriction.
AllowModels []string `json:"allowModels,omitempty"`
}
Config configures tool/set-model.
type Deps ¶
type Deps struct {
SessionStore agentkit.SessionStore `json:"sessionStore"`
}
Deps holds injected capabilities for tool/set-model.
Click to show internal directories.
Click to hide internal directories.