UNPKG

@paybyrd/ai-agent-toolkit

Version:

Toolkit for building AI agents with various models

17 lines (16 loc) 455 B
import type { Tool } from './tools.js'; export type Object = 'paymentLinks' | 'refunds' | 'order'; export type Permission = 'create' | 'read'; export type Actions = { [K in Object]?: { [K in Permission]?: boolean; }; }; export type Context = { baseUrl?: string; }; export type Configuration = { actions?: Actions; context?: Context; }; export declare const isToolAllowed: (tool: Tool, configuration: Configuration) => boolean;