@Zohar You can do that by passing AI Agent as a tool to the main AI Agent, like:
And by using ResponsesAPI this switches the chat model from classic chat Completions to the Responses endpoint and exposes the model side state options. Also i recommend reading this conversation: