4 ms·
I decided just to look at the code for a moment and discovered ChainMap in Python.
by codedokode 1y ago
I decided just to look at the code for a moment and discovered ChainMap in Python.
- ddtaylor 1y agoThis is excellent for some of my usages. I want to have my AI agents "fork" their context in some ways, this could be useful for that instead of juggling a tree of dictionaries.
- bjackman 1y agoHa, that's cool. I have implemented a crappy and probably broken version of this type before. Next time I won't have to!