LLM • Rust AI Agent SDK
LLM Provider abstraction for PraisonAI
llm
Rust AI Agent SDK
LLM Provider abstraction for PraisonAI
This module provides the LLM provider trait and implementations. Uses rig-core for multi-provider support (OpenAI, Anthropic, Ollama, etc.)
Import
use praisonai::llm::*;Classes
Message
A message in a conversation
ToolCallFunctionFunction details within a tool call
ToolCallA tool call made by the LLM
LlmResponseLLM response
UsageToken usage statistics
LlmConfigLLM configuration
OpenAiProviderOpenAI-compatible LLM provider
MockLlmProviderMock LLM provider for testing (no API calls)
LlmProviderTrait for LLM providers
RoleMessage role in a conversation