Basics
The smallest working CodeMode agent, and shell cells.
Content
Basics
The smallest working CodeMode agent, and shell cells.
basic.py— oneCodeMode()toolkit, no options. The agent computes over 200 Fibonacci numbers that never enter the transcript; only the conclusion does.with_shell.py—%%bashcells. Each is a throw-away subshell, socddoes not carry over;%cdandos.environ[...]are kernel-level and do. Passallow_shell=Falseto strip the magic.
Run:
python cookbook/code/01_basics/basic.pySource and license
- Source
- Agno
- Original
- agno-agi/agno/cookbook/code/01_basics
- License
- Apache-2.0