Chat notebook¶
A marimo notebook that puts a chat box in front of the real ebaml-chat command. The agent is a
language model that reads an EBM through the tools of the ebaml-mcp server. Ask about the model or about one row of the
data, and ask follow-up questions. Each answer shows the tools that the agent called.
- The notebook fits a small EBM on made-up data and starts the chat with no key. The chat writes its first line without a request to an LLM.
- Each message in the chat box sends real requests to the LLM, one for each round of tool calls. The default model
needs
OPENROUTER_API_KEY. You can type a key in the notebook. Without a key, a message shows the error of a missing key, and the chat goes on. - The notebook needs the BAML toolchain (
baml, version 0.25 or later) and themcpextra:pip install "ebaml[mcp]".
The page below is the notebook with the output of its cells, exported when the docs are built. The exported page has no live chat, because the chat box needs a running notebook. To run it:
uv run marimo edit notebooks/chat.py
The guide explains the command and its options.
Open the notebook in its own page