# agent-event-emit
[](https://crates.io/crates/agent-event-emit)
Structured event emitter for agent runs. JSON-line-ready Events with
monotonic ids, run id, and ms timestamps. No sink chosen; you write
the line where you want.
```rust
use agent_event_emit::Emitter;
use serde_json::json;
let mut e = Emitter::new("run-123");
let ev = e.emit("tool_call", json!({"name": "read_file"}));
println!("{}", ev.to_json_line());
```
MIT or Apache-2.0.