Repository navigation
Showcase: inspect agent events in marimo without rerunning the job #12005
jiangxingfan1-coder
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I wanted to inspect an agent's streamed events in a reactive notebook without starting another agent run every time I changed the view. This small marimo notebook puts the POST behind
mo.ui.run_button. A separate cell reads the captured events and applies the filter. It displays the stored events after the stream finishes, rather than rendering tokens live.Checked in Chromium with marimo 0.25.2: opening the notebook created zero jobs; clicking once produced one completed run and 21 events; switching to Lifecycle or Text deltas showed 3 or 4 events with the same run ID. The gateway still recorded one job. The example uses a fixed-response sample and a local caller key, so no model key or quota is needed.
@akshayka, thanks for adding
run_button. For a notebook like this that later gains a few request parameters, would you keep the button and an independent filter, or usemo.ui.formto snapshot the parameters on submit? The distinction is helpful when a reactive rerun has a real cost.I maintain Open Agent API, the gateway used here. The notebook was prepared with AI assistance and tested locally. If it helps with your own integration, a Star on the project is appreciated.
All reactions