AI Developer Experience | OpenAI SDKs, AI API Integrations & LLM Observability
I build and document AI API integrations, test failure paths, and explore LLM observability and evaluation. I write about what breaks when AI meets real applications, how I investigate it, and what makes integrations easier for developers to use and trust.
Markdown supported · ⌘↵ to post
Capturing tool selection, external API payloads, and handoffs inside one parent trace is the only way to answer why a customer got the wrong delivery status. When you only inspect the final LLM call, a stale response from the upstream order API looks indistinguishable from a hallucinated date.
Attaching structured span attributes for retry counts, truncated tool outputs, and context token counts also makes post-incident triage much faster: you can filter across thousands of runs for every trace where a tool errored and the agent kept going on partial state.
Salman Parvez | ML Systems
The incorrect delivery status example makes the case well: five different places the error could have started, and the final response looks the same for all of them. Coming from construction, that's why a job keeps a daily log and not only a final inspection. When something is wrong at the end, the log tells you which trade and which day. I'd add one field to the spans: where each piece of information came from, and whether it was returned by a tool or inferred by the model. A trace tells you the order things happened in. It doesn't tell you which values anyone checked, and that's often the question the customer is really asking.