API Reference LlmEx v0.1.0
View SourceModules
LlmEx is a flexible client for interacting with various LLM providers.
Defines a common behaviour interface for all LLM clients. This module establishes a contract that all LLM client implementations must fulfill.
Defines a common behaviour interface for all LLM providers. This module establishes a contract that all LLM provider implementations must fulfill.
Client for the Anthropic Claude API
Client for communicating with a local LLM server (Ollama). Provides functionality to send prompts and stream responses back to a specified process.
Shared functionality for processing streaming responses from LLM providers. Handles common patterns for streaming responses and managing events.
Shared functionality for handling tools across different LLM clients. Provides common methods for executing tool calls, parsing arguments, and processing results.
Provides a declarative API for defining tool schemas.
Behaviour for LlmEx tools.
Defines standardized types for LLM interactions across different providers.
Configuration for an LLM provider
Event structs for LLM interactions
Event signaling the end of an LLM response
Event for a text response from the LLM
Event for a tool call from the LLM
Represents a message in the LLM conversation
Represents a tool definition for the LLM
Represents a tool call request from the LLM
Defines a common behaviour interface for all LLM clients. This module establishes a contract that all LLM client implementations must fulfill.