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.
102 lines • 2.59 kB
TypeScript
export interface Context {
userId?: string;
sessionId: string;
workspacePath?: string;
environment: 'development' | 'production' | 'test';
capabilities: string[];
metadata: Record<string, unknown>;
}
export interface SkillResult {
success: boolean;
data?: unknown;
error?: {
message: string;
code?: string;
};
metadata?: Record<string, unknown>;
telemetry?: TelemetrySpan;
}
export interface Skill {
name: string;
description: string;
version: string;
run(ctx: Context, args?: unknown): Promise<SkillResult>;
validate?(args?: unknown): boolean;
}
export interface Plugin {
id: string;
name: string;
version: string;
setup(hub: AgentHub): void | Promise<void>;
teardown?(): void | Promise<void>;
}
export interface TelemetrySpan {
traceId?: string;
spanId: string;
parentSpanId?: string;
operationName?: string;
skillName?: string;
startTime: number;
endTime?: number;
duration?: number;
success?: boolean;
result?: SkillResult;
args?: unknown;
tags?: Record<string, string | number | boolean>;
logs?: Array<{
timestamp: number;
level: 'debug' | 'info' | 'warn' | 'error';
message: string;
fields?: Record<string, unknown>;
}>;
}
export interface AgentStatus {
id: string;
name: string;
status: 'active' | 'idle' | 'busy' | 'error' | 'offline';
lastHeartbeat: number;
metadata: Record<string, unknown>;
}
export interface Deal {
id: string;
name: string;
status: 'created' | 'active' | 'completed' | 'failed';
participants: string[];
standards: string[];
createdAt: number;
updatedAt: number;
metadata: Record<string, unknown>;
}
export interface HubEvent {
type: string;
timestamp: number;
source: string;
data: Record<string, unknown>;
}
export interface LLMProvider {
name: string;
chat(messages: LLMMessage[], opts?: LLMOptions): Promise<LLMResponse>;
isAvailable(): Promise<boolean>;
}
export interface LLMMessage {
role: 'system' | 'user' | 'assistant';
content: string;
metadata?: Record<string, unknown>;
}
export interface LLMOptions {
model?: string;
temperature?: number;
maxTokens?: number;
stream?: boolean;
}
export interface LLMResponse {
content: string;
metadata: {
model: string;
tokensUsed: number;
finishReason: string;
};
}
import type { AgentHub } from '../core/agentHub.js';
export type { AgentHub };
//# sourceMappingURL=index.d.ts.map