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 ¶
MaterializeSorted returns a copy of filters sorted for stable execution (design §17).
Click to show internal directories.
Click to hide internal directories.