Repository navigation
margin 0.1.2
A new agent, and agents can now stop to ask you questions.
pip install margin-cli margin-data-storyteller
margin run data-storyteller sales.csv --set stop_after=story
Data Storyteller (new, experimental). Give it a spreadsheet or data file and it gives back a clean table, a report of every change and why, and a short story about what's in the data, with charts. When the file can be read two ways (is 1.234 a thousand or one point two? is 01/02 January or February?), it asks instead of guessing. Every number in the story is computed twice, once in pandas and once in DuckDB from separate SQL, and the run fails if they disagree. A model writes the words but never types a number, and without a model the story is written from a template. In the web UI, click any number in the story to see how it was computed. More in its README.
Agents can ask questions. An agent can now pause and ask the person running it. margin run asks in the terminal. In the web UI the run waits, shows a form, and gives up its place in the queue until you answer. You can also give the answers up front, or take every suggested answer with assume_defaults; those are marked as not confirmed in the result.
Also fixed: opening a run page directly from a link, or reloading it, showed "Can't reach the API" when the web UI was served by margin-api (the Docker image).
For anyone building on margin: there's a new waiting run status in the API, so a client that handles every status needs to handle this one too.
Versions: margin-core 0.1.2, margin-cli 0.1.1, margin-api 0.1.1 and margin-data-storyteller 0.1.0. margin-ai-code-detector is unchanged at 0.2.1.