Skip to main content

Crate rskit_agent

Crate rskit_agent 

Source
Expand description

Agentic loop — Provider + Tools + Hooks in a turn-based execution engine.

The Agent drives a multi-turn loop: it sends messages to an LLM rskit_llm::Provider, executes any requested tool calls, emits hook events at each lifecycle point, and manages context size via a pluggable ContextStrategy.

Re-exports§

pub use agent::Agent;
pub use command::Command;
pub use command::CommandHandler;
pub use command::CommandRegistry;
pub use command::register_builtins;
pub use config::AgentConfig;
pub use hooks::OnError;
pub use hooks::OnEvent;
pub use hooks::OnMCPCall;
pub use hooks::OnMCPResult;
pub use hooks::PostLLMCall;
pub use hooks::PostToolCall;
pub use hooks::PreLLMCall;
pub use hooks::PreToolCall;
pub use hooks::TurnEnd;
pub use hooks::TurnStart;
pub use hooks::on_error_type;
pub use hooks::on_event_type;
pub use hooks::on_llm_call_type;
pub use hooks::on_llm_response_type;
pub use hooks::on_mcp_call_type;
pub use hooks::on_mcp_result_type;
pub use hooks::on_tool_call_type;
pub use hooks::on_tool_result_type;
pub use hooks::on_turn_complete_type;
pub use hooks::on_turn_start_type;
pub use hooks::post_llm_call_type;
pub use hooks::post_tool_call_type;
pub use hooks::pre_llm_call_type;
pub use hooks::pre_tool_call_type;
pub use hooks::turn_end_type;
pub use hooks::turn_start_type;
pub use memory::InMemoryStore;
pub use memory::Memory;
pub use memory::SlidingWindowMemory;
pub use types::AgentEvent;
pub use types::AgentResult;
pub use types::ContextStrategy;
pub use types::FailStrategy;
pub use types::StopReason;
pub use types::TruncateStrategy;

Modules§

agent
Agent — the multi-turn agentic execution loop.
command
Slash-command registry for interactive agent sessions.
config
Agent runtime configuration.
context
Agent context compaction integration.
hooks
Domain-specific hook event types for the agentic pipeline.
memory
Conversation memory — store and retrieve message history per session.
types
Agent result types, events, and context strategies.