flexo-sdk
Version:
Official TypeScript SDK for the Flexo API - AI-powered Solana token analytics
27 lines (26 loc) • 874 B
TypeScript
import { ApiResponse, TokenData, Agent, AgentResponse, ChatMessage } from './types';
export declare class FlexoClient {
private readonly baseUrl;
constructor(baseUrl?: string);
private request;
/**
* Get detailed information about a token
* @param address The token's contract address
*/
getToken(address: string): Promise<ApiResponse<TokenData>>;
/**
* List all available AI agents
*/
listAgents(): Promise<ApiResponse<Agent[]>>;
/**
* Get details about a specific agent
* @param id The agent's ID
*/
getAgent(id: string): Promise<ApiResponse<Agent>>;
/**
* Chat with an AI agent
* @param agentId The agent's ID
* @param messages Array of chat messages
*/
chat(agentId: string, messages: ChatMessage[]): Promise<ApiResponse<AgentResponse>>;
}