langchain4d_core 0.1.0
langchain4d_core: ^0.1.0 copied to clipboard
Core abstractions for LangChain4d - a Dart implementation of LangChain framework for building LLM applications
langchain4d_core #
Core abstractions for LangChain4d - a Dart implementation of LangChain framework for building LLM applications.
Features #
- Core interfaces for LLM interactions (
ChatModel,EmbeddingModel) - Vector store abstractions (
VectorStore) - Chain and agent interfaces (
Chain,Agent) - Memory management (
Memory) - Prompt templates (
PromptTemplate) - Tool system (
Tool) - Callback system (
CallbackHandler) - Base message types and data structures
Usage #
import 'package:langchain4d_core/langchain4d_core.dart';
// Use core abstractions
final chatModel = ...; // Implement ChatModel
final response = await chatModel.generate([HumanMessage(content: 'Hello')]);
Documentation #
See the main documentation for more information.