ServiceNow / TapeAgents

TapeAgents is a framework that facilitates all stages of the LLM Agent development lifecycle
https://www.servicenow.com/research/TapeAgentsFramework.pdf
Apache License 2.0
124 stars 11 forks source link

Gradio & Studio update #97

Closed ollmer closed 3 days ago

ollmer commented 3 days ago
ollmer commented 3 days ago

This also closes #81

jpt-sn commented 3 days ago

Do we really need to model_dump and model_validate every time?

From the Gradio documentation it says:

If it holds an object or primitive, a change is triggered if the hash of the value changes. So if you define a custom class and create a gr.State variable that is an instance of that class, make sure that the the class includes a sensible __hash__ implementation.

Have we tried implementing the __hash__ for tape and agent object?

ollmer commented 3 days ago

Yes, I've tried to implement __hash__() for the agent class, which returned agent.model_dump_json(). It didn't help. Also, in case of the absence of a hash method, the state raises an error when created, and we haven't observed such an issue.