Versions in this module Expand all Collapse all v0 v0.1.0 Sep 1, 2026 Changes in this version + func DefaultShellEnvironmentInstructions(snapshot ShellEnvironmentSnapshot) string + type EnvironmentProvider struct + func NewEnvironmentProvider(executor Executor, config EnvironmentProviderConfig) *EnvironmentProvider + func (p *EnvironmentProvider) CurrentSnapshot() (ShellEnvironmentSnapshot, bool) + func (p *EnvironmentProvider) Invoked(ctx context.Context, invoked agent.InvokedContext) error + func (p *EnvironmentProvider) Invoking(ctx context.Context, invoking agent.InvokingContext) ([]*message.Message, []agent.Option, error) + func (p *EnvironmentProvider) Refresh(ctx context.Context) (ShellEnvironmentSnapshot, error) + type EnvironmentProviderConfig struct + InstructionsFormatter func(ShellEnvironmentSnapshot) string + OverrideFamily *ShellFamily + ProbeTimeout *time.Duration + ProbeTools []string + SourceID string + type Executor interface + Initialize func(context.Context) error + Run func(context.Context, string) (Result, error) + type Local struct + func NewLocal(opts LocalConfig) (*Local, error) + func (t *Local) ApprovalRequired() bool + func (t *Local) Call(ctx context.Context, args string) (any, error) + func (t *Local) Close() error + func (t *Local) Description() string + func (t *Local) Initialize(ctx context.Context) error + func (t *Local) Name() string + func (t *Local) ReturnSchema() any + func (t *Local) Run(ctx context.Context, command string) (Result, error) + func (t *Local) Schema() any + type LocalConfig struct + AcknowledgeUnsafe bool + CleanEnvironment bool + ConfineWorkingDirectory *bool + Environment map[string]*string + MaxOutputBytes int + Mode Mode + Policy *Policy + Shell string + ShellArgv []string + Timeout *time.Duration + WorkingDirectory string + type Mode int + const ModePersistent + const ModeStateless + type Policy struct + func NewPolicy(cfg PolicyConfig) (*Policy, error) + func (p *Policy) Evaluate(request ShellRequest) (allowed bool, reason string) + type PolicyConfig struct + AllowList []string + DenyList []string + type Result struct + Duration time.Duration + ExitCode int + Stderr string + Stdout string + TimedOut bool + Truncated bool + func (r Result) FormatForModel() string + type ShellEnvironmentSnapshot struct + Family ShellFamily + OSDescription string + ShellVersion string + ToolVersions map[string]ToolVersion + WorkingDirectory string + type ShellFamily int + const ShellFamilyPOSIX + const ShellFamilyPowerShell + const ShellFamilyUnknown + func (f ShellFamily) String() string + type ShellRequest struct + Command string + WorkingDirectory string + type ToolVersion struct + Found bool + Version string