UNPKG

@xynehq/jaf

Version:

Juspay Agent Framework - A purely functional agent framework with immutable state and composable tools

12 lines 772 B
import { RunState, RunConfig, RunResult, TraceEvent } from './types.js'; export declare function run<Ctx, Out>(initialState: RunState<Ctx>, config: RunConfig<Ctx>): Promise<RunResult<Out>>; /** * Stream run events as they happen via an async generator. * Consumers can iterate events to build live UIs or forward via SSE. * * @param initialState - The initial run state * @param config - Run configuration * @param streamEventHandler - Optional event handler for the stream consumer to handle/modify events */ export declare function runStream<Ctx, Out>(initialState: RunState<Ctx>, config: RunConfig<Ctx>, streamEventHandler?: (event: TraceEvent) => void | any | Promise<void | any>): AsyncGenerator<TraceEvent, void, unknown>; //# sourceMappingURL=engine.d.ts.map