Documentation
¶
Overview ¶
Package provider contains adapters from the shared runtime provider registry to Knowl's structured maintainer boundary.
Index ¶
- type Fixture
- type RuntimeFactory
- type RuntimeFactoryValidator
- type RuntimeMaintainer
- func (maintainer *RuntimeMaintainer) Close() error
- func (maintainer *RuntimeMaintainer) Plan(ctx context.Context, input knowl.MaintenanceInput) (knowl.ModelEditPlan, error)
- func (maintainer *RuntimeMaintainer) PlanHierarchy(ctx context.Context, input knowl.HierarchyInput) (knowl.HierarchyModelPlan, error)
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
HierarchyResult knowl.HierarchyModelPlan
HierarchyError error
}
Fixture is a deterministic local Maintainer used by supported contract tests.
func (Fixture) Plan ¶
func (fixture Fixture) Plan(ctx context.Context, input knowl.MaintenanceInput) (knowl.ModelEditPlan, error)
Plan returns the configured plan and never performs network I/O.
func (Fixture) PlanHierarchy ¶ added in v0.4.0
func (fixture Fixture) PlanHierarchy(ctx context.Context, _ knowl.HierarchyInput) (knowl.HierarchyModelPlan, error)
PlanHierarchy returns the configured semantic graph and never performs network I/O. A hierarchy fixture must be explicit to avoid inventing a test taxonomy from source identities or paths.
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.
func (*RuntimeMaintainer) PlanHierarchy ¶ added in v0.4.0
func (maintainer *RuntimeMaintainer) PlanHierarchy(ctx context.Context, input knowl.HierarchyInput) (knowl.HierarchyModelPlan, error)
PlanHierarchy asks the selected runtime provider for a catalog graph only. The same lazy runtime and ADK session are shared with source maintenance.