feat(core): add grouped and deferred tool registration (#35232)

This commit is contained in:
Aiden Cline 2026-07-04 11:49:24 -05:00 committed by GitHub
commit c590e27639
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 170 additions and 79 deletions

View file

@ -3,9 +3,12 @@ export * as Tools from "./tools"
import { Context, Effect, Scope } from "effect"
import { Tool } from "./tool"
export type RegisterOptions = Tool.RegisterOptions
export interface Interface {
readonly register: (
tools: Readonly<Record<string, Tool.AnyTool>>,
options?: Tool.RegisterOptions,
) => Effect.Effect<void, Tool.RegistrationError, Scope.Scope>
}