/** * Reflex MCP tools: run classifiers and read production Reflex results. * * - reflex_list the built-in catalog + GET /v1/fine_tuning/jobs * - reflex_predict POST /v1/reflex/predict — classify text now, no setup * - reflex_summary GET /v1/reflex/traces, aggregated into per-model firing rates * - reflex_traces GET /v1/reflex/traces, individual turns with labels + snippets * * reflex_predict works on a brand-new account with zero data. The read-back * tools (summary/traces) only see trace-linked turns (shipped via `morphTracing()`); * direct predict calls are not stored. Output is budgeted to stay under MCP * clients' tool-output caps (~25k tokens). */ import { z } from 'zod'; import { TracesClient } from '@morphllm/morphsdk/tools/traces'; import { ReflexClient } from '@morphllm/morphsdk/tools/reflex'; export declare const ReflexListArgsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export declare const ReflexPredictArgsSchema: z.ZodObject<{ text: z.ZodString; reflexes: z.ZodArray; }, "strip", z.ZodTypeAny, { text: string; reflexes: string[]; }, { text: string; reflexes: string[]; }>; export declare const ReflexSummaryArgsSchema: z.ZodObject<{ since_hours: z.ZodDefault; max_events: z.ZodDefault; }, "strip", z.ZodTypeAny, { since_hours: number; max_events: number; }, { since_hours?: number | undefined; max_events?: number | undefined; }>; export declare const ReflexTracesArgsSchema: z.ZodObject<{ convo_id: z.ZodOptional; model: z.ZodOptional; reflex: z.ZodOptional; label: z.ZodOptional; response_format: z.ZodDefault>; limit: z.ZodDefault; offset: z.ZodDefault; }, "strip", z.ZodTypeAny, { response_format: "concise" | "detailed"; limit: number; offset: number; convo_id?: string | undefined; model?: string | undefined; reflex?: string | undefined; label?: string | undefined; }, { convo_id?: string | undefined; model?: string | undefined; reflex?: string | undefined; label?: string | undefined; response_format?: "concise" | "detailed" | undefined; limit?: number | undefined; offset?: number | undefined; }>; export declare const REFLEX_LIST_DESCRIPTION: string; export declare const REFLEX_PREDICT_DESCRIPTION: string; export declare const REFLEX_SUMMARY_DESCRIPTION: string; export declare const REFLEX_TRACES_DESCRIPTION: string; export interface ReflexApi { traces: TracesClient; reflex: ReflexClient; } export declare function createReflexApi(apiKey: string, baseUrl?: string): ReflexApi; export declare function runReflexList(api: ReflexApi): Promise; export interface ReflexPredictArgs { text: string; reflexes: string[]; } export declare function runReflexPredict(api: ReflexApi, args: ReflexPredictArgs): Promise; export interface ReflexSummaryArgs { since_hours: number; max_events: number; } export declare function runReflexSummary(api: ReflexApi, args: ReflexSummaryArgs): Promise; export interface ReflexTracesArgs { convo_id?: string; model?: string; reflex?: string; label?: string; response_format: 'concise' | 'detailed'; limit: number; offset: number; } export declare function runReflexTraces(api: ReflexApi, args: ReflexTracesArgs): Promise;