import { ChatCompletionTool, ChatCompletionMessageToolCall, ChatCompletionToolMessageParam } from 'openai/resources.mjs'; import { T as ToolkitConfig, a as ToolCategory } from '../index-qFGypkX3.js'; import 'zod'; import '@knocklabs/mgmt'; import '@knocklabs/node'; type KnockToolkit = { getAllTools: () => ChatCompletionTool[]; getTools: (category: ToolCategory) => ChatCompletionTool[]; getToolMap: () => Record; handleToolCall: (toolCall: ChatCompletionMessageToolCall) => Promise; }; /** * Creates a Knock toolkit for use with the OpenAI API. * * When the `config.permissions.workflows.trigger` is set, then workflow triggers for * the specified workflows will be included in the returned tools. * * You can also specify a list of workflow keys to include in the returned tools, should you wish to * limit the set of workflows that are available. * * @example * ```ts * const toolkit = await createKnockToolkit({ * permissions: { * workflows: { run: true }, * }, * }); * ``` * * @param config - The configuration to use for the toolkit * @returns A toolkit for use with the OpenAI API */ declare const createKnockToolkit: (config: ToolkitConfig) => Promise; export { createKnockToolkit };