UNPKG

@vfarcic/dot-ai

Version:

AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance

29 lines 982 B
import { AITool } from '../ai-provider.interface'; /** * Formats tool definitions into a markdown string for system prompts. * Used by providers that don't support native tool calling or need manual prompting. */ export declare function formatToolDefinitions(tools: AITool[]): string; /** * Tool call structure */ interface ToolCall { tool: string; [key: string]: unknown; } /** * Formats a tool execution result for inclusion in conversation history. */ export declare function formatToolOutput(toolName: string, output: unknown): string; /** * Regex for extracting tool calls from markdown code blocks. * Matches: ```json ... ``` and captures the content. */ export declare const TOOL_CALL_REGEX: RegExp; /** * Extracts tool calls from a string containing markdown code blocks. * Handles nested objects and malformed JSON gracefully. */ export declare function extractToolCalls(content: string): ToolCall[]; export {}; //# sourceMappingURL=tool-utils.d.ts.map