"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestGrader = void 0;
exports.createMockResponse = createMockResponse;
class TestGrader {
    async callApi() {
        return {
            output: JSON.stringify({ pass: true, reason: 'Test grading output' }),
            tokenUsage: { total: 10, prompt: 5, completion: 5 },
        };
    }
    id() {
        return 'TestGradingProvider';
    }
}
exports.TestGrader = TestGrader;
function createMockResponse(options = {}) {
    const mockResponse = {
        ok: true,
        status: 200,
        statusText: 'OK',
        headers: new Headers(),
        redirected: false,
        type: 'basic',
        url: 'https://example.com',
        json: () => Promise.resolve({}),
        text: () => Promise.resolve(''),
        blob: () => Promise.resolve(new Blob()),
        arrayBuffer: () => Promise.resolve(new ArrayBuffer(0)),
        formData: () => Promise.resolve(new FormData()),
        bytes: () => Promise.resolve(new Uint8Array()),
        bodyUsed: false,
        body: null,
        clone() {
            return createMockResponse(this);
        },
        ...options,
    };
    return mockResponse;
}
//# sourceMappingURL=utils.js.map