Skip to main content

aether_core/core/
mod.rs

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