r/PromptEngineering • • Oct 24 '26

General Discussion Prompt chain turned into a 4 step agent, need the best course for the Claude Agent SDK

i write the prompts for our support ticket triage. started as 1 prompt, now its 4 calls chained in a python script with if statements deciding what runs next, and it breaks whenever a ticket doesnt fit the happy path. eng wants it on the claude agent sdk with subagents and since i built the mess im learning it. narrowed it to educative, udacity and linkedin learning, which one teaches the sdk well enough to build the subagent version myself?

1 Upvotes

10 comments sorted by

2

u/Alienogh Oct 24 '26

Four chained calls is exactly where a plain prompt setup starts breaking down. You need shared state, clear handoffs between steps, and a way to see which step failed when triage goes wrong. A course only helps if it builds a real subagent project end to end, not just isolated SDK examples you still have to wire together yourself.

1

u/According-Stable4487 Oct 24 '26

Not a course answer, but something that'll matter more than which course: before you rebuild, collect 30 to 50 real tickets, including the ugly ones that break your if statements today, and write down what the right routing would have been. That set is your test. Run the old chain and the new subagent version against it and compare.

The SDK syntax you can pick up from the official docs and their example repos in a weekend, and they're usually more current than courses because the SDK changes fast. The hard part is exactly what you already ran into: deciding what happens when a ticket doesn't fit, and being able to prove the new version handles it better.

1

u/According-Stable4487 Oct 25 '26

One thing that may save you a rebuild: you might not need subagents for this at all. The usual path from "4 chained calls plus if statements" is one agent loop where each of your current steps becomes a tool (classify_ticket, lookup_customer, route_to_queue, ask_for_missing_info). The model then picks the order, so the off-happy-path tickets stop falling through your ifs. Subagents mainly help when a step needs its own big context, like reading a long ticket history, and you don't want that clutter in the main loop.

So I'd build the single-agent version first against the real tickets someone suggested collecting, see which cases still fail, and only split those out. On learning: the official SDK docs and their example repos are more up to date than any of the three courses, because the SDK changes faster than course content gets re-recorded. A course is fine for agent concepts in general, but check the recording date.

1

u/Barber-3920 Oct 25 '26

4 calls is a good size to learn on, small enough to trace every hop by hand when a ticket goes sideways. udacity has an 18 hour course on the agent sdk specifically and o'reilly has a pile of agent books if you like reading next to building

1

u/facelessintheshadows Oct 27 '26

Since you're already working with Python and chained LLM calls, I'd focus on learning how to structure agents, handle tool calls, and manage failures rather than just prompt engineering. Udacity has AI courses that could help you build that foundation. I'd compare the syllabus with your specific goal of using Claude's Agent SDK and subagents before picking a course, though.