Skip to main content

Crate chat_rs

Crate chat_rs 

Source
Expand description

§Chat-RS

A multi-provider LLM framework.

This crate provides a unified, type-safe API for interacting with Large Language Models like Google Gemini, Anthropic Claude, and OpenAI. It features compile-time safe builders, automatic retry loops, and native tool execution.

Modules§

prelude
types

Structs§

CallbackRetryContext
Chat
ChatBuilder
ChatFailure
ChatOptions
ChatResponse
Content
EmbeddingsResponse
Messages
Metadata
Parts
Structured
Unstructured

Enums§

ChatError
PartEnum

Traits§

CompletionProvider
EmbeddingsProvider

Type Aliases§

CallbackStrategy
RetryStrategy