import { prismaClient } from '../database/prismaClient.js';
export async function createToolCall(data) {
    console.log(`Creating tool call for tool: ${data.toolName}`);
    return prismaClient.toolCall.create({
        data,
    });
}
export async function getToolCall(id) {
    console.log(`Getting tool call with ID: ${id}`);
    return prismaClient.toolCall.findUnique({
        where: { id },
    });
}
export async function listToolCalls() {
    console.log('Listing all tool calls');
    return prismaClient.toolCall.findMany();
}
export async function updateToolCall(id, data) {
    console.log(`Updating tool call with ID: ${id}`);
    return prismaClient.toolCall.update({
        where: { id },
        data,
    });
}
export async function deleteToolCall(id) {
    console.log(`Deleting tool call with ID: ${id}`);
    return prismaClient.toolCall.delete({
        where: { id },
    });
}
