|
1 | 1 | // ABOUTME: ReAct agent implementations for different providers |
2 | 2 |
|
| 3 | +#[cfg(any(feature = "openai", feature = "anthropic", feature = "ollama", feature = "xai"))] |
3 | 4 | use crate::agent::api::{AgentEvent, RigAgentTrait}; |
| 5 | +#[cfg(any(feature = "openai", feature = "anthropic", feature = "ollama", feature = "xai"))] |
4 | 6 | use crate::tools::GraphToolFactory; |
| 7 | +#[cfg(any(feature = "openai", feature = "anthropic", feature = "ollama", feature = "xai"))] |
5 | 8 | use anyhow::{anyhow, Result}; |
| 9 | +#[cfg(any(feature = "openai", feature = "anthropic", feature = "ollama", feature = "xai"))] |
6 | 10 | use async_trait::async_trait; |
| 11 | +#[cfg(any(feature = "openai", feature = "anthropic", feature = "ollama", feature = "xai"))] |
7 | 12 | use codegraph_mcp_core::context_aware_limits::ContextTier; |
| 13 | +#[cfg(any(feature = "openai", feature = "anthropic", feature = "ollama", feature = "xai"))] |
8 | 14 | use futures::stream; |
| 15 | +#[cfg(any(feature = "openai", feature = "anthropic", feature = "ollama", feature = "xai"))] |
9 | 16 | use futures::Stream; |
| 17 | +#[cfg(any(feature = "openai", feature = "anthropic", feature = "ollama", feature = "xai"))] |
10 | 18 | use std::pin::Pin; |
11 | 19 |
|
12 | 20 | /// OpenAI-based Rig agent |
|
0 commit comments