askexperts
Version:
AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol
46 lines (45 loc) • 1.01 kB
TypeScript
/**
* Options for the AskExpertsHttp server
*/
export interface AskExpertsHttpOptions {
port: number;
type: "mcp" | "smart";
basePath?: string;
discoveryRelays?: string[];
openaiBaseUrl?: string;
openaiApiKey?: string;
}
/**
* AskExpertsHttp class that implements an MCP server with HTTP transport
*/
export declare class AskExpertsHttp {
private app;
private port;
private basePath;
private type;
private discoveryRelays?;
private openaiBaseUrl?;
private openaiApiKey?;
private transports;
private servers;
private server?;
private stopped;
/**
* Creates a new AskExpertsHttp instance
*
* @param options - Configuration options
*/
constructor(options: AskExpertsHttpOptions);
/**
* Set up the Express routes
*/
private setupRoutes;
/**
* Start the HTTP server
*/
start(): void;
/**
* Stop the HTTP server and clean up resources
*/
stop(): Promise<void>;
}