UNPKG

tlnt

Version:

TLNT - HMS-Powered Multi-Agent Platform with Government Agency Analysis, Deep Research, and Enterprise-Ready Deployment. Self-optimizing multi-domain AI agent with continuous learning and enterprise-grade performance monitoring.

118 lines 3.51 kB
/** * HMS-NET API Client * * Client for connecting to HMS-NET (Agent Network System) API * Provides agent orchestration and workflow management capabilities */ export interface HMSNetConfig { baseURL: string; apiKey?: string; timeout?: number; } export interface Agent { id: string; name: string; type: string; config: Record<string, unknown>; status: string; created_at: string; updated_at: string; } export interface CreateAgentRequest { name: string; type: string; config?: Record<string, unknown>; } export interface ExecuteAgentRequest { input: Record<string, unknown>; config?: Record<string, unknown>; } export interface ExecutionResult { id: string; agent_id: string; status: string; result: Record<string, unknown>; error?: string; started_at: string; ended_at?: string; } export interface Workflow { id: string; name: string; status: string; steps: WorkflowStep[]; created_at: string; updated_at: string; } export interface WorkflowStep { id: string; name: string; type: string; config: Record<string, unknown>; status: string; dependencies?: string[]; } export interface CreateWorkflowRequest { name: string; steps: Omit<WorkflowStep, 'id' | 'status'>[]; } export interface DataRequest { type: 'etl' | 'agency-analysis' | 'deep-research'; agent_id: string; parameters: Record<string, unknown>; callback_url?: string; } export interface DataProcessingStatus { id: string; status: 'queued' | 'processing' | 'completed' | 'failed'; progress?: number; result?: Record<string, unknown>; error?: string; created_at: string; updated_at: string; } export declare class HMSNetClient { private client; private config; constructor(config: HMSNetConfig); private formatError; healthCheck(): Promise<{ status: string; }>; listAgents(): Promise<Agent[]>; createAgent(request: CreateAgentRequest): Promise<Agent>; getAgent(id: string): Promise<Agent>; updateAgent(id: string, updates: Partial<CreateAgentRequest>): Promise<Agent>; deleteAgent(id: string): Promise<void>; executeAgent(id: string, request: ExecuteAgentRequest): Promise<ExecutionResult>; listWorkflows(): Promise<Workflow[]>; createWorkflow(request: CreateWorkflowRequest): Promise<Workflow>; getWorkflow(id: string): Promise<Workflow>; startWorkflow(id: string): Promise<void>; stopWorkflow(id: string): Promise<void>; getWorkflowStatus(id: string): Promise<{ status: string; progress: number; }>; requestDataProcessing(request: DataRequest): Promise<DataProcessingStatus>; getDataProcessingStatus(id: string): Promise<DataProcessingStatus>; getDataProcessingResult(id: string): Promise<Record<string, unknown>>; requestAgencyAnalysis(agencyName: string, issueTopic: string, options?: { state?: string; agencyType?: string; callbackUrl?: string; }): Promise<DataProcessingStatus>; requestDeepResearch(query: string, options?: { depth?: number; breadth?: number; callbackUrl?: string; }): Promise<DataProcessingStatus>; listNetworks(): Promise<any[]>; createNetwork(request: any): Promise<any>; getNetworkStatus(id: string): Promise<{ status: string; health: string; }>; } export default HMSNetClient; //# sourceMappingURL=hmsNetClient.d.ts.map