Why would you choose api vs sdk . Sdk in a sandbox feels much better .

https://developers.openai.com/api/docs/guides/agents#compare...

I get it why do I want to use your managed session , what do you win ? Any examples ?

I’m trying to understand the use case but it seems weird middle ground in a way .

Ease of setup and accepting the lock-in; in exchange for OpenAI handling security-patching the environment, scaling containers, etc. It's an option.

Because how does OpenAI earn more money then? At least to me it seems to try more vendor lock in, but I might mistaken on how easy it would be to just be another level of abstraction in an agent system.

To save yourself the hassle of running your own sandboxed VM.

Not sure I exactly trust OAI to do that right.

I assume you'd develop via the SDK, then deploy it via the API.