import "../../_dnt.polyfills.js"; import { type AgUiSseProgressSnapshot } from "../agent/index.js"; import type { EvalAgentAdapter, EvalAgentAdapterContext } from "./types.js"; export * from "./agent-service/live-evals/index.js"; export * from "./agent-service/durable-run-canaries/index.js"; /** Default local AG-UI endpoint used by agent-service evals. */ export declare const DEFAULT_AGENT_SERVICE_EVAL_ENDPOINT = "http://127.0.0.1:3001/api/ag-ui"; /** Environment input accepted by agent-service eval helpers. */ export type AgentServiceEvalEnvironmentInput = Record; /** Resolved environment values for live agent-service evals. */ export interface AgentServiceEvalEnvironment { endpoint: string; authToken: string; apiUrl: string; projectId?: string; projectSlug?: string; branchId?: string; model?: string; } /** Preflight result for a live agent-service eval environment. */ export interface AgentServiceEvalEnvironmentPreflightResult { ok: boolean; resolvedApiUrl: string; messages: string[]; } /** Veryfront forwarded props included in an AG-UI eval request. */ export interface AgentServiceEvalForwardedProps { agentId?: string; projectId?: string; conversationId?: string; branchId?: string; model?: string; runtimeOverrides?: { allowedTools?: string[]; maxSteps?: number; }; } /** Input accepted by `buildAgentServiceEvalRequestBody`. */ export interface BuildAgentServiceEvalRequestBodyInput { exampleId: string; input: unknown; metadata?: Record; agentId?: string | null; projectId?: string | null; conversationId?: string | null; branchId?: string | null; model?: string | null; allowedTools?: string[]; forceRuntimeOverrides?: boolean; maxSteps?: number; } /** AG-UI request body sent to an agent-service endpoint. */ export interface AgentServiceEvalRequestBody { threadId: string; runId: string; state: Record; tools: []; context: []; forwardedProps?: { veryfront: AgentServiceEvalForwardedProps; }; messages: Array<{ id: string; role: "user"; parts: Array<{ type: "text"; text: string; }>; }>; } /** Configuration for the live agent-service eval adapter. */ export interface AgentServiceEvalAdapterConfig { endpoint?: string; authToken: string; agentId?: string | null; projectId?: string | null; projectSlug?: string | null; conversationId?: string | null; releaseId?: string | null; contentSourceId?: string | null; branchId?: string | null; branchName?: string | null; environment?: string | null; environmentId?: string | null; forwardedHost?: string | null; forwardedProto?: string | null; model?: string | null; allowedTools?: string[]; forceRuntimeOverrides?: boolean; maxSteps?: number; requestTimeoutMs?: number; progressThrottleMs?: number; fetch?: (input: string | URL | Request, init?: RequestInit) => Promise; now?: () => number; onProgress?: (snapshot: AgUiSseProgressSnapshot, context: EvalAgentAdapterContext) => void; } /** Resolve environment values for live agent-service eval execution. */ export declare function resolveAgentServiceEvalEnvironment(env?: AgentServiceEvalEnvironmentInput): AgentServiceEvalEnvironment; /** Evaluate whether the required live agent-service eval environment is present. */ export declare function evaluateAgentServiceEvalEnvironment(env?: AgentServiceEvalEnvironmentInput, resolvedApiUrl?: string): AgentServiceEvalEnvironmentPreflightResult; /** Build the AG-UI request body for a single eval example. */ export declare function buildAgentServiceEvalRequestBody(input: BuildAgentServiceEvalRequestBodyInput): AgentServiceEvalRequestBody; /** Create an `EvalAgentAdapter` that executes examples against an AG-UI agent-service endpoint. */ export declare function createAgentServiceEvalAdapter(config: AgentServiceEvalAdapterConfig): EvalAgentAdapter; //# sourceMappingURL=agent-service.d.ts.map