Hi everyone! since August I've been building Freyja, mostly because I wanted to learn how this whole AI agent world works, and building it in Rust has been a lot of fun.

The idea is simple: you write an agent once, and Freyja talks to OpenAI, Anthropic, Gemini or anything OpenAI-compatible like Ollama. Switching provider is one line. Tools are plain Rust functions:

#[tool(description = "adds two numbers")] fn add(a: i64, b: i64) -> i64 { a + b } let client = Client::from_env(EndpointPreset::Anthropic)?; let agent = Agent::new(client).tool(add); let run = agent.ask("What is 20 + 22?").await?; 

What I tried to do differently is keep the core small and make every part a trait (Model, Tool, Storage, VectorStore, Embedder, Memory, Hook), so you can plug in your own pieces instead of waiting for me to add them. The catch is that it doesn't come with many integrations yet, and it's still before 1.0, so things will change.

It's a learning project first, so I'd really like to hear what you think: what feels nice, what feels weird, and what you'd do differently.

1 post - 1 participant

Read full topic