WardrikEvents. Timeline
(wardrik_events v0.1.0-rc.1)
Copy Markdown
A view of an agent's conversation: each message people sent, and each run that answered, step by step.
{timeline, cursor} = WardrikEvents.view(MyApp.Events, "acme/triage", WardrikEvents.Timeline)
WardrikEvents.Timeline.items(timeline)Items
Each item is a map with an :id and a :kind.
:user- a message someone sent. Has:text,:senderand:at.:run- the agent's answer. Has:status,:steps(oldest first),:model,:cost_micro_usd,:started_at,:finished_at,:errorand:interrupts.:statusis:running,:completed,:failed,:cancelledor:waiting.
Steps
Each step is a map with a :type.
:thinkingand:text- have:text, and:livewhile it streams.:tool- has:name,:arguments,:status,:resultand:error.:statusis:running,:ok,:erroror:denied.
touched/1 returns the ids of the items the last event changed.