Source

Browse The Code.

A built-in, GitHub-style explorer. Pick a repository, dig through the file tree, read the code — all without leaving the site.

iris-md/core / src/main.rs
MIT • main
1use iris_core::{Agent, Config, Runtime};
2
3#[tokio::main]
4async fn main() -> anyhow::Result<()> {
5 let config = Config::from_env()?;
6 let runtime = Runtime::new(config).await?;
7
8 let agent = Agent::builder()
9 .with_memory(runtime.memory())
10 .with_scheduler(runtime.scheduler())
11 .build();
12
13 println!("iris :: agent online");
14 agent.run_forever().await
15}