Skip to main content

aether_core/core/
mod.rs

1mod agent;
2mod agent_builder;
3mod agent_deps;
4mod error;
5mod prompt;
6mod retry_config;
7
8pub use crate::events::{AgentCommand, AgentEvent, Command, UserCommand};
9pub use agent::*;
10pub use agent_builder::*;
11pub use agent_deps::*;
12pub use error::*;
13pub use prompt::*;
14pub use retry_config::RetryConfig;
15
16use llm::StreamingModelProvider;
17use std::sync::Arc;
18
19#[doc = include_str!("../docs/basic_agent.md")]
20pub fn agent(llm: impl StreamingModelProvider + 'static) -> AgentBuilder {
21    AgentBuilder::new(Arc::new(llm))
22}