Documentation
¶
Overview ¶
Package runtime provides agent execution environments.
Index ¶
- type ApprovalExpirer
- type LocalRuntime
- func (r *LocalRuntime) AddApprovalExpirer(expirer ApprovalExpirer)
- func (r *LocalRuntime) Run(ctx context.Context, agent core.Agent, input any) (any, error)
- func (r *LocalRuntime) SetApprovalSweepInterval(interval time.Duration)
- func (r *LocalRuntime) SetApprovalSweepTimeout(timeout time.Duration)
- func (r *LocalRuntime) Start(_ context.Context) error
- func (r *LocalRuntime) Stop(_ context.Context) error
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApprovalExpirer ¶
ApprovalExpirer is implemented by services that can expire pending approvals.
type LocalRuntime ¶
type LocalRuntime struct {
// contains filtered or unexported fields
}
LocalRuntime is a simple in-process runtime.
func NewLocalFromConfig ¶
func NewLocalFromConfig(cfg config.RuntimeConfig) *LocalRuntime
NewLocalFromConfig creates a LocalRuntime with approval sweep settings from config.
func (*LocalRuntime) AddApprovalExpirer ¶
func (r *LocalRuntime) AddApprovalExpirer(expirer ApprovalExpirer)
AddApprovalExpirer registers an expirer to be swept on the configured interval.
func (*LocalRuntime) SetApprovalSweepInterval ¶
func (r *LocalRuntime) SetApprovalSweepInterval(interval time.Duration)
SetApprovalSweepInterval defines how often to sweep for expired approvals. Set to 0 to disable.
func (*LocalRuntime) SetApprovalSweepTimeout ¶
func (r *LocalRuntime) SetApprovalSweepTimeout(timeout time.Duration)
SetApprovalSweepTimeout defines a per-sweep timeout.
Click to show internal directories.
Click to hide internal directories.