toolcatalog

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package toolcatalog defines the tool catalog filter stage (design §4, R9). Filters run after submit hooks and before request-wide transforms; they may remove or annotate tool definitions and must leave lipapi.Call.ToolChoice consistent with the remaining tool list (use lipapi.ReconcileToolChoiceAfterToolListChange when mutating Tools).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogMeta

type CatalogMeta struct {
	TraceID     string
	Annotations map[string]string
	Principal   execview.PrincipalView
	Session     session.SessionView
	Workspace   workspace.WorkspaceView
}

CatalogMeta is read-only context for catalog filters (no provider types).

type Filter

type Filter interface {
	ID() string
	Order() int
	FailureMode() sdkhooks.FailureMode
	Handle(ctx context.Context, call *lipapi.Call, meta CatalogMeta, svc Services) error
}

Filter removes or annotates tool definitions before backend translation (R9).

func MaterializeSorted

func MaterializeSorted(filters []Filter) []Filter

MaterializeSorted returns a copy of filters sorted for stable execution (design §17).

type Services

type Services struct {
	State state.Store
	Aux   auxiliary.Client
}

Services exposes narrow capabilities for catalog filters.

Jump to

Keyboard shortcuts

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