agentai-core 0.6.0

Shared building blocks of the AgentAI crates, such as the HTTP client abstraction.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# agentai-core

Shared building blocks of the [AgentAI](https://crates.io/crates/agentai) crates. You rarely
need it directly: it is a dependency of crates such as
[`agentai-image`](https://crates.io/crates/agentai-image).

It currently holds the HTTP client abstraction, `HttpClient`, so the crates can later run on
other HTTP stacks (for example in WebAssembly). `ReqwestClient` (feature `reqwest`, on by
default) implements it with `reqwest`.

TLS is chosen with features: `rustls-ring` (default), `rustls-aws-lc` or `native-tls` (with
`default-features = false`), plus `system-proxy` (default). With `rustls-ring`, call
`agentai_core::tls::install_crypto_provider()` before building your own `reqwest::Client`.