@wink-ai/agent-bus-core
v1.0.3
Published
Agent-Bus core interfaces, types and utilities
Maintainers
Readme
@agent-bus/core
Core interfaces and types for agent-bus.
Installation
pnpm add @agent-bus/coreTypes
ProviderType
Supported provider types:
'claudecode''cursor''opencode''trae'
AIProvider
Main provider interface that all providers implement:
interface AIProvider {
initialize(): Promise<void>;
isInitialized(): boolean;
cleanup(): Promise<void>;
createSession(config?: SessionConfig): Promise<Session>;
getSession(id: string): Session | undefined;
closeSession(id: string): Promise<void>;
sendMessage(sessionId: string, content: string): Promise<MessageResponse>;
sendMessageStream(sessionId: string, content: string): AsyncGenerator<MessageChunk>;
getConfig(): ProviderConfig;
updateConfig(config: Partial<ProviderConfig>): void;
}License
MIT
