let attachmentToolDefinitionsResolver = null;
export const setAttachmentToolDefinitionsResolver = (resolver) => {
    attachmentToolDefinitionsResolver = resolver;
};
export const getAttachmentToolDefinitions = () => {
    if (!attachmentToolDefinitionsResolver) {
        return [];
    }
    try {
        return attachmentToolDefinitionsResolver() ?? [];
    }
    catch (error) {
        console.warn('[Ollama] Failed to resolve attachment tool definitions', error);
        return [];
    }
};
