Transformers Agent Chat State
Experimenting with Transformer Agent – specifically running thecolab notebook.When usingchatmode (i.e.,agent.chat), when isagent.chat_stateupdated?  Traced through thesource codeand can’t seem to find when this internal state is updated to include the result of the lasttoolresult.  Specifically, thechatfunctionis pretty straightforward and directly returns the result of theevaluatecall.In the Colab notebook, there is a series of prompts demonstratingchatmode.  After eachchatcall, if we examineagent.chat_state, we can see that it contains the results of the lasttoolcall.