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
//! Groq provider implementation for ADK.
//!
//! This module provides support for Groq's ultra-fast LLM inference, with presets for
//! Groq's production models:
//! - `openai/gpt-oss-120b` ([`GroqConfig::gpt_oss_120b`], the default)
//! - `openai/gpt-oss-20b` ([`GroqConfig::gpt_oss_20b`], faster and lower cost)
//!
//! Any other model Groq serves works through [`GroqConfig::new`].
//!
//! # Features
//!
//! - **Ultra-Fast Inference**: Groq's LPU architecture delivers industry-leading speed
//! - **Tool Calling**: Full function/tool calling support
//! - **Streaming**: Real-time streaming responses
//! - **Reasoning**: Optional reasoning mode with `include_reasoning`
//!
//! # Example
//!
//! ```rust,ignore
//! use adk_model::groq::{GroqClient, GroqConfig};
//!
//! // GPT-OSS 120B, the production default
//! let client = GroqClient::new(GroqConfig::gpt_oss_120b(
//! std::env::var("GROQ_API_KEY").unwrap()
//! ))?;
//!
//! // GPT-OSS 20B, faster and lower cost
//! let fast = GroqClient::new(GroqConfig::gpt_oss_20b(
//! std::env::var("GROQ_API_KEY").unwrap()
//! ))?;
//! ```
pub use GroqClient;
pub use ;