Documentation
¶
Overview ¶
Package provider contains adapters from the shared runtime provider registry to Knowl's structured maintainer boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixture ¶
type Fixture struct {
Result knowl.ModelEditPlan
Error error
}
Fixture is a deterministic local Maintainer used by supported contract tests.
type RuntimeFactory ¶
type RuntimeFactory interface {
Build(ctx context.Context, request agentfactory.BuildRequest) (adkagent.Agent, error)
}
RuntimeFactory is the narrow shared-runtime seam used by RuntimeMaintainer. The concrete implementation is runtime/v2/agentfactory.Factory; keeping the consumer-side interface here makes deterministic tests independent of ACP or hosted provider processes.
type RuntimeFactoryValidator ¶
RuntimeFactoryValidator is implemented by the shared runtime factory when it can validate a provider schema without starting the provider.
type RuntimeMaintainer ¶
type RuntimeMaintainer struct {
// contains filtered or unexported fields
}
RuntimeMaintainer adapts one Balda-compatible runtime provider to Knowl's structured app.Maintainer boundary.
func NewRuntimeMaintainer ¶
func NewRuntimeMaintainer(factory RuntimeFactory, providerID, workspace string) (*RuntimeMaintainer, error)
NewRuntimeMaintainer creates a lazy, structured maintainer for one runtime provider ID. The provider process is not built until Plan is called.
func (*RuntimeMaintainer) Close ¶
func (maintainer *RuntimeMaintainer) Close() error
Close releases the provider agent. It is safe to call more than once.
func (*RuntimeMaintainer) Plan ¶
func (maintainer *RuntimeMaintainer) Plan(ctx context.Context, input knowl.MaintenanceInput) (knowl.ModelEditPlan, error)
Plan asks the selected runtime provider for one bounded structured edit plan. Provider output is validated again by pkg/knowl/app after this method.