Hi, I'm wondering how would I enable Restate's durable agent with AG-UI support? I'm using Pydantic-ai, so the AG-UI part is documented here. My first thought would be to let my run handler return the StreamingResponse, is it the proper way to go? Or should I use pubsub to emit event as agent loop goes, and implement the AG-UI part from the pubsub? But I'd prefer to rely on pydantic-ai's AG-UI impl if I could. Could you clarify it for me, thanks!
Hi, I'm wondering how would I enable Restate's durable agent with AG-UI support? I'm using Pydantic-ai, so the AG-UI part is documented here. My first thought would be to let my
runhandler return theStreamingResponse, is it the proper way to go? Or should I use pubsub to emit event as agent loop goes, and implement the AG-UI part from the pubsub? But I'd prefer to rely on pydantic-ai's AG-UI impl if I could. Could you clarify it for me, thanks!