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 irc::IrcHub;
pub use irc::IrcMessage;
pub use irc::IrcRelay;
pub use events::AgentEvent;
pub use events::FinishReason;
pub use events::SessionEndEvent;
pub use events::ThinkingDeltaEvent;
pub use events::TokenUsageInfo;
pub use events::ToolApprovalEvent;
pub use events::ToolCompleteEvent;
pub use events::ToolStartEvent;
pub use events::TurnEndEvent;
pub use events::TurnStartEvent;
pub use types::*;

Modules§

backend
LLM Backend trait and implementations
definitions
Agent definition loading and parsing (YAML frontmatter + Markdown body).
events
Typed event stream for agent UI rendering.
git_session
Git-backed session store — conversation trees with fork/lineage/leaves
irc
IRC-style message relay between named agents in one process.
pool
session
Agent session and conversation history management.
session_store
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.
ToolDefinition
Tool definition — re-exported from thulp_core so pawan and the rest of the dirmacs stack share a single source of truth for tool metadata.