UNPKG

adk-typescript

Version:

TypeScript port of Google's Agent Development Kit (ADK)

22 lines (21 loc) 551 B
import express from 'express'; import http from 'http'; interface ApiServerOptions { agentDir: string; sessionDbUrl?: string; allowOrigins?: string[]; web: boolean; traceToCloud?: boolean; port?: number; } /** * Creates an Express app that serves as an API server for agents * * @param options Configuration options for the server * @returns The configured Express app and server */ export declare function createApiServer(options: ApiServerOptions): { app: express.Application; server: http.Server; }; export {};