feat(core): add grouped and deferred tool registration (#35232)
This commit is contained in:
parent
8f4b62eb49
commit
c590e27639
8 changed files with 170 additions and 79 deletions
|
|
@ -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>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue