@devoy/knowledge-assistant-core
v0.1.1
Published
Provider-agnostic core engine for backend-first, domain-restricted AI assistant interactions.
Downloads
99
Maintainers
Readme
@devoy/knowledge-assistant-core
Provider-agnostic core SDK for backend-first, domain-restricted assistant interactions.
Install
pnpm add @devoy/knowledge-assistant-coreUsage
import { createKnowledgeAssistant } from "@devoy/knowledge-assistant-core";
const assistant = createKnowledgeAssistant({
assistant: {
id: "devoy-public-assistant",
name: "Devoy AI",
purpose: "Answer service questions and collect project enquiries."
},
provider
});
const reply = await assistant.interactions.reply({
mode: "single_question",
message: "Does Devoy build e-commerce websites?"
});The core package does not import OpenAI, Express, React or database clients.
Exports
createKnowledgeAssistantInMemoryConversationStoreDeterministicScopePolicyPolicyEngine- SDK error classes
- Runtime schemas
- Public TypeScript types
