I'm trying to access the state inside a tool of an OpenAI Agent (agent=AgentType.OPENAI_FUNCTIONS) but I'm having trouble accessing it. I know this works with some agents, but I can't figure out how to do it with an OpenAI agent.
Has anyone encountered this issue or knows how to access the state in this case? Any help would be greatly appreciated!