99 percentfunction-calling success rate
Agent harness · Anthropic and OpenAI SDKs
- What I ran into
- Wrapper frameworks added dependencies and unpredictability, and hid the steps I most needed to see when an agent went wrong.
- What I did
- Wrote an agent harness from scratch over the native Anthropic and OpenAI SDKs rather than on a general-purpose agent framework, replacing an earlier DSPy pipeline with a single
AgentBuilderfactory. Constrained decoding against Pydantic v2 schemas reached a 99% function-calling success rate and removed 35% of runtime dependencies. - What I took from it
- A framework is a fine way to start and an expensive thing to debug. Once agents are the product, owning the loop, the tool calls, and the output schemas is what makes them predictable.