@measey/mycoder-agent
Version:
Agent module for mycoder - an AI-powered software development assistant
57 lines • 2.05 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>>;
maxRetries: z.ZodOptional<z.ZodNumber>;
retryDelay: z.ZodOptional<z.ZodNumber>;
slowMode: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
method: string;
url: string;
params?: Record<string, any> | undefined;
body?: Record<string, any> | undefined;
headers?: Record<string, string> | undefined;
maxRetries?: number | undefined;
retryDelay?: number | undefined;
slowMode?: boolean | undefined;
}, {
method: string;
url: string;
params?: Record<string, any> | undefined;
body?: Record<string, any> | undefined;
headers?: Record<string, string> | undefined;
maxRetries?: number | undefined;
retryDelay?: number | undefined;
slowMode?: boolean | 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>]>;
retries: z.ZodOptional<z.ZodNumber>;
slowModeEnabled: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
status: number;
body: string | Record<string, any>;
headers: Record<string, string>;
statusText: string;
retries?: number | undefined;
slowModeEnabled?: boolean | undefined;
}, {
status: number;
body: string | Record<string, any>;
headers: Record<string, string>;
statusText: string;
retries?: number | undefined;
slowModeEnabled?: boolean | undefined;
}>;
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