mycoder-agent
Version:
Agent module for mycoder - an AI-powered software development assistant
42 lines • 1.45 kB
TypeScript
import { z } from 'zod';
import { Tool } from '../../core/types.js';
declare const parameterSchema: z.ZodObject<{
method: z.ZodString;
url: z.ZodString;
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
method: string;
url: string;
params?: Record<string, any> | undefined;
body?: Record<string, any> | undefined;
headers?: Record<string, string> | undefined;
}, {
method: string;
url: string;
params?: Record<string, any> | undefined;
body?: Record<string, any> | undefined;
headers?: Record<string, string> | undefined;
}>;
declare const returnSchema: z.ZodObject<{
status: z.ZodNumber;
statusText: z.ZodString;
headers: z.ZodRecord<z.ZodString, z.ZodString>;
body: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>;
}, "strip", z.ZodTypeAny, {
body: string | Record<string, any>;
status: number;
headers: Record<string, string>;
statusText: string;
}, {
body: string | Record<string, any>;
status: number;
headers: Record<string, string>;
statusText: string;
}>;
type Parameters = z.infer<typeof parameterSchema>;
type ReturnType = z.infer<typeof returnSchema>;
export declare const fetchTool: Tool<Parameters, ReturnType>;
export {};
//# sourceMappingURL=fetch.d.ts.map