Documentation
¶
Overview ¶
chatbot is an interactive Q&A loop over an embedded markdown corpus.
The knowledge files under knowledge/ are compiled into the binary using the embed package. The agent only sees read-tools (read_file, list_files, search) — write_file and delete_file are not registered, so the corpus is immutable at runtime. Defense in depth: vfs/embedfs also rejects mutations.
go run ./examples/chatbot
Set OPENROUTER_API_KEY in the environment first.
Click to show internal directories.
Click to hide internal directories.