aiwg
Version:
Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo
56 lines • 1.55 kB
TypeScript
/**
* Grounding Agent Types
*
* Interfaces for domain knowledge injection agents that verify claims,
* retrieve knowledge, and ground conversations with factual context.
*
* @module agents/grounding/types
* @issue #184
* @research REF-022 AutoGen (ALFChat case study — 40% domain accuracy improvement)
*/
export interface VerificationResult {
claim: string;
verified: boolean;
confidence: number;
sources: string[];
correction?: string;
}
export interface KnowledgeFragment {
content: string;
source: string;
relevance_score: number;
metadata?: Record<string, string>;
}
export interface GroundingAgent {
/** Domain this agent covers (security, performance, compliance, technology) */
domain: string;
/** Verify a claim against the knowledge base */
verify_claim(claim: string): Promise<VerificationResult>;
/** Retrieve relevant domain knowledge for a query */
retrieve_knowledge(query: string, options?: {
limit?: number;
}): Promise<KnowledgeFragment[]>;
}
export interface KnowledgeEntry {
id: string;
topic: string;
content: string;
source: string;
keywords: string[];
related?: string[];
}
export interface KnowledgeBase {
domain: string;
version: string;
entries: KnowledgeEntry[];
}
export interface GroundingConfig {
enabled: boolean;
agents: Array<{
domain: string;
apply_to: string[];
trigger: 'auto' | 'manual';
knowledge_path: string;
}>;
}
//# sourceMappingURL=types.d.ts.map