UNPKG

@xynehq/jaf

Version:

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

43 lines 1.73 kB
/** * JAF Visualization - Graphviz Integration * * Functional visualization system for agents and tools using Graphviz */ import { Agent, Tool, RunnerConfig } from '../adk/types'; export interface GraphOptions { readonly title?: string; readonly layout?: 'dot' | 'neato' | 'fdp' | 'circo' | 'twopi'; readonly rankdir?: 'TB' | 'LR' | 'BT' | 'RL'; readonly outputFormat?: 'png' | 'svg' | 'pdf'; readonly outputPath?: string; readonly showToolDetails?: boolean; readonly showSubAgents?: boolean; readonly colorScheme?: 'default' | 'modern' | 'minimal'; } export interface GraphResult { readonly success: boolean; readonly outputPath?: string; readonly error?: string; readonly graphDot?: string; } export interface NodeStyle { readonly shape: string; readonly fillcolor: string; readonly fontcolor: string; readonly style: string; readonly fontname?: string; readonly penwidth?: string; } export interface EdgeStyle { readonly color: string; readonly style: string; readonly penwidth?: string; readonly arrowhead?: string; } export declare const generateAgentGraph: (agents: readonly Agent[], options?: GraphOptions) => Promise<GraphResult>; export declare const generateToolGraph: (tools: readonly Tool[], options?: GraphOptions) => Promise<GraphResult>; export declare const generateRunnerGraph: (config: RunnerConfig, options?: GraphOptions) => Promise<GraphResult>; export declare const validateGraphOptions: (options: GraphOptions) => string[]; export declare const getGraphDot: (agents: readonly Agent[], options?: GraphOptions) => string; export declare const isGraphvizInstalled: () => boolean; //# sourceMappingURL=graphviz.d.ts.map