provider

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 15 Imported by: 0

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.

func (Fixture) Plan

func (fixture Fixture) Plan(ctx context.Context, _ knowl.MaintenanceInput) (knowl.ModelEditPlan, error)

Plan returns the configured plan and never performs network I/O.

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

type RuntimeFactoryValidator interface{ ValidateAgent(providerID string) error }

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

Plan asks the selected runtime provider for one bounded structured edit plan. Provider output is validated again by pkg/knowl/app after this method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL