Skip to main content

Module agent

Module agent 

Source
Expand description

Pawan Agent — core tool-calling loop and session management.

Houses PawanAgent, all LLM backends, session persistence, and the event stream. Wire types live in types.

Re-exports§

pub use events::AgentEvent;
pub use events::FinishReason;
pub use events::ThinkingDeltaEvent;
pub use events::ToolApprovalEvent;
pub use events::ToolCompleteEvent;
pub use events::ToolStartEvent;
pub use events::TokenUsageInfo;
pub use events::TurnEndEvent;
pub use events::TurnStartEvent;
pub use events::SessionEndEvent;
pub use types::*;

Modules§

backend
LLM Backend trait and implementations
events
Typed event stream for agent UI rendering.
git_session
Git-backed session store — conversation trees with fork/lineage/leaves
session
Session persistence — save and resume conversations
types
Core wire types for the agent protocol.

Structs§

PawanAgent
The main Pawan agent — handles conversation, tool calling, and self-healing.