Expand description
§funera
High-level LLM agent framework for Rust. Build AI agents with tools, skills, middleware, and pluggable LLM backends — all with multi-layered security.
§Quick Start
ⓘ
use funera::{Agent, AgentRuntime, DeepSeekProvider};
let runtime = AgentRuntime::<DeepSeekProvider>::builder()
.api_key(std::env::var("DEEPSEEK_API_KEY")?)
.model("deepseek-v4-flash")
.build()?;
let agent = Agent::builder()
.system_prompt("You are a helpful assistant.")
.build();
let resp = agent.fire("Hello!", &runtime).await?;
println!("{}", resp.content);§Security Configuration
Enable the security feature to restrict tool execution:
ⓘ
use funera::{AgentRuntime, DeepSeekProvider, ToolPolicy, ShellPolicy};
let runtime = AgentRuntime::<DeepSeekProvider>::builder()
.api_key(std::env::var("DEEPSEEK_API_KEY")?)
.model("deepseek-v4-flash")
.with_tool_policy(ToolPolicy::strict())
.build()?;See the examples/tool_policy.rs example for a comprehensive walk-through
of all policy configuration options.
§Accessing the core layer
Lower-level APIs from funera_core are available under core:
ⓘ
use funera::core::re_act::tool::Tool;
use funera::core::security::policy::ToolPolicy;
use funera::core::middleware::MiddlewareChain;Re-exports§
pub use funera_core as core;
Modules§
- agent
- Re-export of the public orchestration API.
- dispatcher
- Re-export of the public orchestration API.
- error
- Re-export of the public orchestration API.
- event
- Re-export of the public orchestration API.
- response
- Re-export of the public orchestration API.
- runtime
- Re-export of the public orchestration API.
- send_
handle - Re-export of the public orchestration API.
Structs§
- Acquired
- Re-export of the public orchestration API.
- Agent
- Re-export of the public orchestration API.
- Agent
Builder - Re-export of the public orchestration API.
- Agent
Runtime - Re-export of the public orchestration API.
- Agent
Runtime Builder - Re-export of the public orchestration API.
- Callback
Registry - Re-export of the public orchestration API.
- Chat
Response - Re-export of the public orchestration API.
- Deep
Seek Provider - Re-export of the public orchestration API.
- Fire
Stream Handle - Re-export of the public orchestration API.
- Idle
- Re-export of the public orchestration API.
- Send
Handle - Re-export of the public orchestration API.
- Send
Stream Handle - Re-export of the public orchestration API.
- Tool
Call Error Info - Re-export of the public orchestration API.
- Tool
Call Info - Re-export of the public orchestration API.
- Tool
Call Request - Re-export of the public orchestration API.
- Tool
Call Response - Re-export of the public orchestration API.
Enums§
- Agent
Event - Re-export of the public orchestration API.
- EnvState
Event - Re-export of the public orchestration API.
- Orchestrate
Error - Re-export of the public orchestration API.
- RawAgent
Event - Re-export of the public orchestration API.
- React
Event - Re-export of the public orchestration API.
- Token
Event - Re-export of the public orchestration API.