import { z } from 'zod';
import { defineTool } from '../toolDefinition.js';
import { AgentToolNames } from '../shared/agentToolNames.js';
export const testSearchParamsSchema = z.object({
    query: 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.
 */
export const testSearchResponseSchema = z.object({
    tests: z.array(z.object({
        id: z.string(),
        name: z.string(),
        description: z.string().optional(),
    })),
});
export const TestSearchToolDefinition = defineTool({
    name: 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: testSearchParamsSchema,
    responseSchema: testSearchResponseSchema,
});
//# sourceMappingURL=TestSearchDefinition.js.map