Re: secrets, just some thoughts…
FWIW I think nobody has fully solved this yet 😅
Well 🤔 re: the problem, I’m afraid it’s more than a (finite) number of tools; the LLM can whip up some Python to read just for fun.
But yes… so if it becomes part of an Observation, kill it… There shouldn’t then be a need to do the same on a future Action, aka LLM response, because, well… the LLM wouldn’t know it.
Simon has a topic somewhere on the sdk where we looked into secrets, and drafted a solution to use a broker that allows to have only short-lived tokens in the env. That, however, is not exactly against the agent, it’s against mistakes/misses in the _application_(s).
However, once in place, it seems to allow us to do other things like:
• have a file system watcher
• (or event listener, but also for logging actions or system level writes)
• when the watcher sees we logged a secret or it became part of an event or otherwise on disk, invalidate it 🤔
Or maybe I’m missing something? So it would be invalidated after the fact, but, hey, it’s invalid