Show HN: Clark-agent, a Rust library for LLM tool loops(github.com)1 points·by stan_kirdey·2 เดือนที่ผ่านมา·0 commentsgithub.comShow HN: Clark-agent, a Rust library for LLM tool loopshttps://github.com/clark-labs-inc/clark-agentHi HN,I wrote clark-agent, a small Rust library for running LLM tool loops.The loop is:context -> model -> tool call -> tool result -> repeatThe parts I wanted typed were:- transcript messages - tool calls - tool results - stream events - tool schemasThe model/provider boundary is a StreamFn trait. Tools implement AgentTool. There are hooks for things like context transforms, tool gates, observers, and follow-up messages.0 commentsPost comment—
I wrote clark-agent, a small Rust library for running LLM tool loops.
The loop is:
context -> model -> tool call -> tool result -> repeat
The parts I wanted typed were:
- transcript messages - tool calls - tool results - stream events - tool schemas
The model/provider boundary is a StreamFn trait. Tools implement AgentTool. There are hooks for things like context transforms, tool gates, observers, and follow-up messages.