1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//! Meta Muse provider implementation for ADK.
//!
//! This module provides support for Meta's Muse Spark models through the Meta
//! Model API (`https://api.meta.ai/v1`), which is drop-in compatible with the
//! OpenAI Chat Completions format:
//! - `muse-spark-1.3` ([`MuseConfig::spark_1_3`], the default, recommended for new work)
//! - `muse-spark-1.2` ([`MuseConfig::spark_1_2`], the previous version)
//! - `muse-spark-1.1` ([`MuseConfig::spark_1_1`], the original version)
//!
//! Any other model the API serves works through [`MuseConfig::new`], including
//! the `-contributor` checkpoints. Contributor pricing is discounted in exchange
//! for permission to train on request content, so no preset selects one.
//!
//! # Features
//!
//! - **Agentic Workflows**: Spark 1.3 is tuned for tool calling and multi-step agents
//! - **Tool Calling**: Full function/tool calling support
//! - **Streaming**: Real-time streaming responses
//! - **Long Context**: 1,048,576-token context window across the Spark line
//!
//! # Responses mode
//!
//! [`MuseConfig::with_api`]`(`[`MuseApi::Responses`]`)` drives `/responses` through the shared
//! Open Responses engine ([`OpenAIResponsesClient`](crate::openai::OpenAIResponsesClient)),
//! streamed or not, with the same `Llm` surface; responses are attributed and priced as
//! `muse`. It needs the `muse-responses` feature. Request options travel in
//! `GenerateContentConfig::extensions["muse"]`: `previous_response_id`, `store`, `reasoning`
//! (`effort`, `summary`), `include` and `background`. Combinations the API rejects —
//! `background` with streaming, `top_logprobs`, reasoning effort `none`,
//! `reasoning.encrypted_content` with `previous_response_id`, stop sequences, penalties —
//! fail with `model.unsupported_config` before any request is sent.
//!
//! # Beyond chat
//!
//! [`MuseResponsesClient`] drives the stateful Responses API (reasoning carried
//! across turns, stored responses, background runs). [`MuseImagesClient`],
//! [`MuseFilesClient`], and [`MuseAsrClient`] cover `muse-image-1.0` generation
//! and edits, the Files API, and `muse-voice-transcribe-1.0` transcription;
//! `MuseRealtimeAsrClient` (feature `muse-realtime`) transcribes live audio over the
//! realtime WebSocket.
//!
//! # Example
//!
//! ```rust,ignore
//! use adk_model::muse::{MuseClient, MuseConfig};
//!
//! // Muse Spark 1.3, the recommended default
//! let client = MuseClient::new(MuseConfig::spark_1_3(
//! std::env::var("META_API_KEY").unwrap()
//! ))?;
//!
//! // Muse Spark 1.2, the previous version
//! let previous = MuseClient::new(MuseConfig::spark_1_2(
//! std::env::var("META_API_KEY").unwrap()
//! ))?;
//! ```
pub use ;
pub use ;
pub use MuseClient;
pub use ;
pub use ;
pub use ;
pub use ;