I thought client[.]runs[.]wait would actually return the result of my agent's work

I’m trying to get the result of my Fleet agent’s competitor research work as JSON but I think using client[.]runs[.]wait isn’t the right way to do that because I’m expecting to get insights about 3 competitors in a JSON just like I described in my system prompt for the agent. I tested that in the chat in Langsmith UI and it works but invoking my agent from my code with the sdk just doesn’t work or I should use another function maybe. Anybody can help please?

hi @AmineAouragh

I think it’s all about a structured output - let me see how to configure it in Fleet

hi man thanks for your time

i’m at a point right now where i can’t think properly.