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).
This commit is contained in:
2026-03-21 20:58:25 +00:00
parent d5eb16dffc
commit a29c3c0109
15 changed files with 2721 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ async fn test_client_chat_async() {
expect!(response.choices[0]
.message
.content
.clone()
.text()
.contains("Tower"))
.to_be(true);