UNPKG

@xynehq/jaf

Version:

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

104 lines 3.34 kB
/** * Example client usage of A2A protocol with JAF agents * Demonstrates all client capabilities in a pure functional way */ export declare const demonstrateBasicUsage: (serverUrl?: string) => Promise<{ client: import("../types.js").A2AClientState; agentCard: import("../types.js").AgentCard; health: { status: string; agents: string[]; timestamp: string; }; capabilities: any; }>; export declare const demonstrateWeatherAgent: (serverUrl?: string) => Promise<{ tokyoWeather: string; londonWeather: string; travelResponse: string; }>; export declare const demonstrateCalculatorAgent: (serverUrl?: string) => Promise<{ basicCalc: string; stepsCalc: string; equation: string; }>; export declare const demonstrateStreaming: (serverUrl?: string) => Promise<any[]>; export declare const demonstrateMultiAgentConversation: (serverUrl?: string) => Promise<{ introduction: string; weatherInfo: string; budgetCalc: string; travelPlan: string; }>; export declare const demonstrateConvenienceAPI: (serverUrl?: string) => Promise<{ weatherAgent: { client: import("../types.js").A2AClientState; agentCard: import("../types.js").AgentCard; ask: (message: string, config?: any) => Promise<string>; stream: (message: string, config?: any) => AsyncGenerator<import("../types.js").A2AStreamEvent, void, unknown>; health: () => Promise<{ status: string; agents: string[]; timestamp: string; }>; capabilities: () => Promise<any>; }; response: string; health: { status: string; agents: string[]; timestamp: string; }; capabilities: any; }>; export declare const runAllDemonstrations: (serverUrl?: string) => Promise<{ basic: { client: import("../types.js").A2AClientState; agentCard: import("../types.js").AgentCard; health: { status: string; agents: string[]; timestamp: string; }; capabilities: any; }; weather: { tokyoWeather: string; londonWeather: string; travelResponse: string; }; calculator: { basicCalc: string; stepsCalc: string; equation: string; }; streaming: any[]; multiAgent: { introduction: string; weatherInfo: string; budgetCalc: string; travelPlan: string; }; convenience: { weatherAgent: { client: import("../types.js").A2AClientState; agentCard: import("../types.js").AgentCard; ask: (message: string, config?: any) => Promise<string>; stream: (message: string, config?: any) => AsyncGenerator<import("../types.js").A2AStreamEvent, void, unknown>; health: () => Promise<{ status: string; agents: string[]; timestamp: string; }>; capabilities: () => Promise<any>; }; response: string; health: { status: string; agents: string[]; timestamp: string; }; capabilities: any; }; }>; export declare const runInteractiveDemo: (serverUrl?: string) => Promise<void>; //# sourceMappingURL=client-example.d.ts.map