Documentation
¶
Overview ¶
Package host provides the lifecycle boundary for a managed Agent Runtime.
It owns bootstrap-stage error context, HTTP serving, registration lease observation, and graceful shutdown. It does not own an Agent's model, prompt, tool, workflow, memory, or Session implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Address string
Handler http.Handler
Registration Registration
ShutdownTimeout time.Duration
Signals []os.Signal
NewServer ServerFactory
}
Config contains only explicit host policy. Address, handler, timeout, and signal behavior are required. An empty Signals slice explicitly disables process-signal handling, which is useful when the caller owns cancellation.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error adds a stable lifecycle stage without exposing the wrapped error's message by default. The wrapped error remains available to errors.Is/As so callers can make an explicit local diagnostic decision.
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
Host owns one Runtime process lifecycle.
type Registration ¶
type Registration interface {
Register(context.Context) error
Run(context.Context) error
Deregister(context.Context) error
}
Registration is the minimal lifecycle contract needed by a managed Agent host. Implementations own the provider-specific registration protocol.
type ServerFactory ¶
ServerFactory allows tests and embedders to provide a server implementation. The default factory creates an *http.Server from Address and Handler.