Crate omni_llm_kit

Crate omni_llm_kit 

Source

Re-exports§

pub use http;
pub use model::*;

Modules§

anthropic
model
openai

Macros§

anyhow
Construct an ad-hoc error from a string or existing non-anyhow error value.

Structs§

AnthropicEventMapper
AnthropicLanguageModelProvider
AnthropicModel
AnthropicSettings
AsyncBody
Based on the implementation of AsyncBody in https://github.com/sagebind/isahc/blob/5c533f1ef4d6bdf1fd291b5103c22110f41d0bf0/src/body/mod.rs.
AvailableModel
BlockedHttpClient
FollowRedirects
HttpClientWithProxy
An HttpClient that may have a proxy.
HttpClientWithUrl
An HttpClient that has a base URL.
Method
The Request Method (VERB)
OpenAiLanguageModel
OpenAiLanguageModelProvider
OpenAiSettings
Request
Represents an HTTP request.
ReqwestClient
Response
Represents an HTTP response
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
ToolRegistry
Uri
The URI component of a request.
Url
A parsed URL record.

Enums§

Inner
ModelMode
RedirectPolicy
ToolResultContent
ToolSource
ToolUseStatus

Traits§

HttpClient
HttpRequestExt
Tool
A tool that can be used by a language model.
ToolDyn

Functions§

count_anthropic_tokens
into_anthropic
into_open_ai
poll_read_buf
Implementation from https://docs.rs/tokio-util/0.7.12/src/tokio_util/util/poll_buf.rs.html Specialized for this use case
read_proxy_from_env

Type Aliases§

Result
Result<T, Error>