agentregistryservice

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package agentregistryservice stores declared agent configurations — the "bots table" concept (see the mvp core/serverops/store/schema.sql `bots` table this generalizes) reborn as a polymorphic, kind-dispatched resource. Today the only implemented kind is "external_acp" (an agent the runtime spawns/drives as an external ACP peer via runtime/agenthost); "chain" is reserved in the schema and validation below for a future kind where a contenox task chain itself is addressable as an agent, but is not accepted here yet.

This package intentionally mirrors runtime/mcpserverservice's shape (validated CRUD over a runtimetypes store, no HTTP routes) so the two declared-resource registries stay easy to compare.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Create(ctx context.Context, agent *runtimetypes.Agent) error
	Get(ctx context.Context, id string) (*runtimetypes.Agent, error)
	GetByName(ctx context.Context, name string) (*runtimetypes.Agent, error)
	Update(ctx context.Context, agent *runtimetypes.Agent) error
	Delete(ctx context.Context, id string) error
	List(ctx context.Context, createdAtCursor *time.Time, limit int) ([]*runtimetypes.Agent, error)
}

Service exposes validated CRUD operations for persisted agent configurations.

func New

func New(db libdb.DBManager) Service

New creates a new agent registry service backed by the given database manager.

Jump to

Keyboard shortcuts

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