@continue-reasoning/mini-agent
Version:
A platform-agnostic AI agent framework for building autonomous AI agents with tool execution capabilities
20 lines • 753 B
JavaScript
/**
* @fileoverview Universal AI Chat Framework Interfaces
*
* This file defines the core abstractions for our chat system that allows
* multiple LLM providers to be unified under a single interface design.
*
* DESIGN PRINCIPLE: We don't adapt to provider APIs - providers adapt to our design.
*/
// ============================================================================
// TYPE GUARDS
// ============================================================================
export function isChat(obj) {
return (typeof obj === 'object' &&
obj !== null &&
'sendMessageStream' in obj &&
'convertFromChunkItems' in obj &&
'getHistory' in obj &&
'addHistory' in obj);
}
//# sourceMappingURL=interfaces.js.map