2024-03-03 15:20:30 +01:00
|
|
|
[package]
|
|
|
|
|
name = "mistralai-client"
|
|
|
|
|
description = "Mistral AI API client library for Rust (unofficial)."
|
|
|
|
|
license = "Apache-2.0"
|
feat: add Agents API, Conversations API, and multimodal support (v1.1.0)
Agents API (beta): create, get, update, delete, list agents with tools,
handoffs, completion args, and guardrails support.
Conversations API (beta): create, append, history, messages, restart,
delete, list conversations. Supports agent-backed and model-only
conversations with function calling and handoff execution modes.
Multimodal: ChatMessageContent enum (Text/Parts) with ContentPart
variants for text and image_url. Backwards-compatible constructors.
new_user_message_with_images() for mixed content messages.
Chat: reasoning field on ChatResponseChoice for Magistral models.
HTTP: PATCH methods for agent updates.
81 tests (30 live API integration + 35 serde unit + 16 existing).
2026-03-21 20:58:25 +00:00
|
|
|
version = "1.1.0"
|
2024-03-03 15:39:16 +01:00
|
|
|
|
2024-03-03 15:20:30 +01:00
|
|
|
edition = "2021"
|
2024-03-03 15:39:16 +01:00
|
|
|
rust-version = "1.76.0"
|
|
|
|
|
|
2026-03-20 18:23:17 +00:00
|
|
|
authors = ["Sunbeam Studios <hello@sunbeam.pt>"]
|
2024-03-03 15:39:16 +01:00
|
|
|
categories = ["api-bindings"]
|
2026-03-20 18:23:17 +00:00
|
|
|
homepage = "https://sunbeam.pt"
|
2024-03-03 15:43:18 +01:00
|
|
|
keywords = ["mistral", "mistralai", "client", "api", "llm"]
|
2024-03-03 15:39:16 +01:00
|
|
|
readme = "README.md"
|
2026-03-20 18:11:26 +00:00
|
|
|
repository = "https://src.sunbeam.pt/studio/mistralai-client-rs"
|
|
|
|
|
publish = ["sunbeam"]
|
2024-03-03 15:20:30 +01:00
|
|
|
|
|
|
|
|
[dependencies]
|
2026-03-20 17:54:09 +00:00
|
|
|
async-stream = "0.3"
|
|
|
|
|
async-trait = "0.1"
|
|
|
|
|
env_logger = "0.11"
|
|
|
|
|
futures = "0.3"
|
|
|
|
|
log = "0.4"
|
|
|
|
|
reqwest = { version = "0.12", features = ["json", "blocking", "stream", "multipart"] }
|
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
|
serde_json = "1"
|
|
|
|
|
thiserror = "2"
|
|
|
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
|
tokio-stream = "0.1"
|
2024-03-03 15:20:30 +01:00
|
|
|
|
|
|
|
|
[dev-dependencies]
|
2026-03-20 17:54:09 +00:00
|
|
|
jrest = "0.2"
|