dartantic_interface library
Classes
- BatchEmbeddingsResult
- Result for batch embeddings operations.
- ChatMessage
- A message in a conversation between a user and a model.
-
ChatModel<
TOptions extends ChatModelOptions> - Chat model base class.
- ChatModelOptions
- Generation options to pass into the Chat Model.
-
ChatResult<
T extends Object> - Result returned by the Chat Model.
- DataPart
- A data part containing binary data (e.g., images).
-
EmbeddingsModel<
TOptions extends EmbeddingsModelOptions> - Embeddings model base class.
- EmbeddingsModelOptions
- Base class for embeddings model options.
- EmbeddingsResult
- Result returned by embeddings providers.
-
LanguageModelResult<
TOutput extends Object> - Result returned by the model.
- LanguageModelUsage
- Usage stats for the generation.
- LinkPart
- A link part referencing external content.
- ModelInfo
- Model metadata for provider model listing.
- Part
- Base class for message content parts.
-
Provider<
TChatOptions extends ChatModelOptions, TEmbeddingsOptions extends EmbeddingsModelOptions> - Provides a unified interface for accessing all major LLM, chat, and embedding providers in dartantic_ai.
- TextPart
- A text part of a message.
-
Tool<
TInput extends Object> - A tool that can be called by the LLM.
- ToolPart
- A tool interaction part of a message.
Enums
- ChatMessageRole
- The role of a message author.
- FinishReason
- The reason the model stopped generating tokens.
- ModelKind
- The kind of model supported by a provider.
- ProviderCaps
- Capabilities of a chat provider.
- ToolPartKind
- The kind of tool interaction.
Extensions
-
MessagePartHelpers
on Iterable<
Part> - Static helper methods for extracting specific types of parts from a list.