{"author":"sukit","children":[{"author":"android521","children":[],"created_at":"2025-06-23T11:31:09.000Z","created_at_i":1750678269,"id":44354618,"options":[],"parent_id":44353964,"points":null,"story_id":44353964,"text":"you&#x27;re better off just implementing the logic yourself as it is more flexible.","title":null,"type":"comment","url":null},{"author":"codingwagie","children":[],"created_at":"2025-06-23T20:10:08.000Z","created_at_i":1750709408,"id":44359557,"options":[],"parent_id":44353964,"points":null,"story_id":44353964,"text":"OpenAI SDK is much simpler to use and understand than langchain etc. I havent deployed really complicated agents, but I have a number of simple use cases that work just fine","title":null,"type":"comment","url":null},{"author":"pancsta","children":[],"created_at":"2025-06-26T11:30:07.000Z","created_at_i":1750937407,"id":44386335,"options":[],"parent_id":44353964,"points":null,"story_id":44353964,"text":"I agree with the debugging part - we need a new approach to handle these abstractions, and a regular code-stepping or reading logs isn&#x27;t enough in the case of agents. It&#x27;s all about managing state, and most ppl here say to avoid it. What I say is that if you go all-in and unify the architecture from the bottom layer, it&#x27;s actually easier in the long run, but you&#x27;ll need dedicated devtools for that.<p>This is precisely why I&#x27;ve created AI-gent Workflows (launched on HN today [0]), which comes with a purpose-built state machine and devtools. Unlike LangGraph, it starts already in the lowest layer and everything is state-based. You can time travel and even modify states of a live agent.<p>[0] <a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=44386314\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=44386314</a>","title":null,"type":"comment","url":null}],"created_at":"2025-06-23T09:49:43.000Z","created_at_i":1750672183,"id":44353964,"options":[],"parent_id":null,"points":8,"story_id":44353964,"text":"I&#x27;m exploring building a simple agent-based app and came across OpenAI&#x27;s Agent SDK: https:&#x2F;&#x2F;openai.github.io&#x2F;openai-agents-js&#x2F; . From what I understand, it wraps a lot of functionality \u2014 like the agent loop, function calling, and integration with the OpenAI MCP server \u2014 which could potentially save me a lot of work compared to using the plain OpenAI SDK.<p>However, I&#x27;m wondering:<p>Is the Agent SDK too abstracted or hard to debug?<p>Has anyone actually used it in a real production app yet?<p>Would I be better off just implementing the logic myself on top of the plain OpenAI SDK for more control and transparency?<p>Appreciate any insights.","title":"Ask HN: Anyone using OpenAI's Agent SDK in production?","type":"story","url":null}
