"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetWorkspaceContextToolDefinition = exports.getWorkspaceContextResponseSchema = exports.getWorkspaceContextParamsSchema = void 0;
var zod_1 = require("zod");
var toolDefinition_js_1 = require("../toolDefinition.js");
var agentToolNames_js_1 = require("../shared/agentToolNames.js");
exports.getWorkspaceContextParamsSchema = zod_1.z.object({
    include_example_steps: zod_1.z.boolean().optional().meta({
        description: 'Whether to include example test steps from similar tests. Default: true',
    }),
});
exports.getWorkspaceContextResponseSchema = zod_1.z.object({
    has_examples: zod_1.z.boolean().meta({
        description: 'Whether there are example test steps available from similar tests',
    }),
    example_test_steps: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional().meta({
        description: 'Example test steps from similar tests, organized by context/query. Use these as inspiration for creating similar steps.',
    }),
});
exports.GetWorkspaceContextToolDefinition = (0, toolDefinition_js_1.defineTool)({
    name: agentToolNames_js_1.AgentToolNames.GetWorkspaceContext,
    description: "Retrieves workspace context including example test steps from similar tests in the workspace.\n\nUse this tool when you need to:\n- See how similar tasks were accomplished in other tests\n- Get inspiration for test step patterns\n- Understand common patterns used in the workspace\n\nThe example test steps are organized by search query or context and show how similar tasks were accomplished. Use these as inspiration but adapt them to the current test case.",
    argumentsSchema: exports.getWorkspaceContextParamsSchema,
    responseSchema: exports.getWorkspaceContextResponseSchema,
});
//# sourceMappingURL=GetWorkspaceContextDefinition.js.map