tools.ts 429 B

12345678910111213
  1. export * as Tools from "./tools"
  2. import { Context, Effect, Scope } from "effect"
  3. import { Tool } from "./tool"
  4. export interface Interface {
  5. readonly register: (
  6. tools: Readonly<Record<string, Tool.AnyTool>>,
  7. ) => Effect.Effect<void, Tool.RegistrationError, Scope.Scope>
  8. }
  9. /** Narrow registration-only Location capability. */
  10. export class Service extends Context.Service<Service, Interface>()("@kirincode/v2/Tools") {}