pub enum AgentVariant {
Show 20 variants
OpenAI(Agent<CompletionModel>),
ResponsesOpenAI(Agent<ResponsesCompletionModel>),
Ollama(Agent<CompletionModel>),
Bigmodel(Agent<CompletionModel>),
OpenRouter(Agent<CompletionModel>),
Anthropic(Agent<CompletionModel>),
Cohere(Agent<CompletionModel>),
Gemini(Agent<CompletionModel>),
Huggingface(Agent<CompletionModel>),
Mistral(Agent<CompletionModel>),
Together(Agent<CompletionModel>),
XAI(Agent<CompletionModel>),
Azure(Agent<CompletionModel>),
DeepSeek(Agent<CompletionModel>),
Galadriel(Agent<CompletionModel>),
Groq(Agent<CompletionModel>),
Hyperbolic(Agent<CompletionModel>),
Mira(Agent<CompletionModel>),
Mooshot(Agent<CompletionModel>),
Perplexity(Agent<CompletionModel>),
}Expand description
所有 Provider 的统一枚举
Variants§
OpenAI(Agent<CompletionModel>)
ResponsesOpenAI(Agent<ResponsesCompletionModel>)
Ollama(Agent<CompletionModel>)
Bigmodel(Agent<CompletionModel>)
OpenRouter(Agent<CompletionModel>)
Anthropic(Agent<CompletionModel>)
Cohere(Agent<CompletionModel>)
Gemini(Agent<CompletionModel>)
Huggingface(Agent<CompletionModel>)
Mistral(Agent<CompletionModel>)
Together(Agent<CompletionModel>)
XAI(Agent<CompletionModel>)
Azure(Agent<CompletionModel>)
DeepSeek(Agent<CompletionModel>)
Galadriel(Agent<CompletionModel>)
Groq(Agent<CompletionModel>)
Hyperbolic(Agent<CompletionModel>)
Mira(Agent<CompletionModel>)
Mooshot(Agent<CompletionModel>)
Perplexity(Agent<CompletionModel>)
Implementations§
Source§impl AgentVariant
impl AgentVariant
Source§impl AgentVariant
impl AgentVariant
pub async fn stream_prompt<R>(
&self,
prompt: impl Into<Message> + Send,
) -> Result<AnyMultiStream<R>, PromptError>where
R: DeserializeOwned + Send + 'static,
Trait Implementations§
Source§impl Clone for AgentVariant
impl Clone for AgentVariant
Source§fn clone(&self) -> AgentVariant
fn clone(&self) -> AgentVariant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentVariant
impl !RefUnwindSafe for AgentVariant
impl Send for AgentVariant
impl Sync for AgentVariant
impl Unpin for AgentVariant
impl !UnwindSafe for AgentVariant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more