Expand description
Language model abstractions for FerricLink Core
This module provides the core abstractions for language models, including base traits for LLMs and chat models.
Structs§
- Generation
- A generation result from a language model
- Generation
Config - Configuration for language model generation
- LLMResult
- A result containing multiple generations
- Mock
Chat Model - A simple mock chat model for testing
- MockLLM
- A simple mock LLM for testing
Traits§
- Base
Chat Model - Trait for language models that work with chat messages
- BaseLLM
- Trait for language models that generate text from text input
- Base
Language Model - Base trait for all language models
Functions§
- mock_
chat_ model - Helper function to create a mock chat model
- mock_
llm - Helper function to create a mock LLM