Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nope, I "borrowed" the system prompt and all the tool descriptions / tool schemas. I then re-implementing all the tools based on those descriptions and input schemas. I then used the OpenAI Agent SDK to give a model all the tools. Very conveniently the OpenAI Agent SDK supports different providers, namely the Vercel AI SDK ones, so it can be used with non-OpenAI models. The Vercel SDK has an Anthropic provider so that's how I used it to test.

This could have been somewhat trivial to implement from scratch too (not using the Agent/Vercel SDKs), but it sure made it convient! It's basically one run({model:'sonnet4', prompt: systemPrompt, tools: [tool1, tool2, tool3]}) call. Much nicer than implementing a loop and all that logic by hand.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: