← Lesson
A Blackboard, Not a Group Chat
Joeven
Run
Reset
Python loads on first run
def new_board(goal): return { "goal": goal, "plan": [], "artifacts": {}, "decision": None, } def put_artifact(board, aid, blob): arts = dict(board["artifacts"]) arts[aid] = blob nxt = dict(board) nxt["artifacts"] = arts return nxt def get_artifact(board, aid): return board["artifacts"].get(aid) b = new_board("quote refund delay") b = put_artifact(b, "kb-44", {"doc": "5-7 days"}) print("has kb-44", get_artifact(b, "kb-44") is not None) print("missing", get_artifact(b, "kb-99")) print("keys", list(b.keys()))
Run to execute this in your browser. Nothing is sent to a server.