( registry: ToolRegistry.Interface, permissions?: Parameters<typeof registry.materialize>[0], )
| 9 | } |
| 10 | |
| 11 | export const toolDefinitions = ( |
| 12 | registry: ToolRegistry.Interface, |
| 13 | permissions?: Parameters<typeof registry.materialize>[0], |
| 14 | ) => registry.materialize(permissions).pipe(Effect.map((materialized) => materialized.definitions)) |
| 15 | |
| 16 | export const settleTool = (registry: ToolRegistry.Interface, input: ToolRegistry.ExecuteInput) => |
| 17 | registry.materialize().pipe(Effect.flatMap((materialized) => materialized.settle(input))) |
no outgoing calls