rskit-agent — turn-based agent loop
rskit-agent runs a bounded agent loop over an injected LLM provider, optional tool registry, and hook registry. It owns turn limits, token budgets, wall-clock budgets, tool-call limits, and context compaction.
Install
[]
= "0.2.0-alpha.1"
= "0.2.0-alpha.1"
= "0.2.0-alpha.1"
= "0.2.0-alpha.1"
Architecture
graph TD
ai[rskit-ai]
llm[rskit-llm]
tool[rskit-tool]
hook[rskit-hook]
errors[rskit-errors]
agent[rskit-agent]
loop[turn loop]
budget[budgets]
compaction[context policy]
app[consumer app]
ai --> agent
llm --> agent
tool --> agent
hook --> agent
errors --> agent
agent --> loop
agent --> budget
agent --> compaction
app --> agent
Quick start
use ;
use user;
use ;
async
When to use
Use rskit-agent when you want the bounded turn loop, tool execution, hook points, and context-budget logic without rebuilding orchestration yourself.