"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestSearchToolDefinition = exports.testSearchResponseSchema = exports.testSearchParamsSchema = void 0;
var zod_1 = require("zod");
var toolDefinition_js_1 = require("../toolDefinition.js");
var agentToolNames_js_1 = require("../shared/agentToolNames.js");
exports.testSearchParamsSchema = zod_1.z.object({
    query: zod_1.z.string().meta({
        description: 'Search query — a test name or keywords to match against existing tests.',
    }),
});
/**
 * Response schema for the test_search tool.
 * Returns a list of matching tests with basic metadata.
 */
exports.testSearchResponseSchema = zod_1.z.object({
    tests: zod_1.z.array(zod_1.z.object({
        id: zod_1.z.string(),
        name: zod_1.z.string(),
        description: zod_1.z.string().optional(),
    })),
});
exports.TestSearchToolDefinition = (0, toolDefinition_js_1.defineTool)({
    name: agentToolNames_js_1.AgentToolNames.TestSearch,
    description: 'Search for existing tests by name or keywords. Use when the user references a specific test by name ' +
        'and you need to find its ID, or when you want to discover tests related to a topic.',
    argumentsSchema: exports.testSearchParamsSchema,
    responseSchema: exports.testSearchResponseSchema,
});
//# sourceMappingURL=TestSearchDefinition.js.map