Zig-anthropic

This is a new library for interacting with anthropic’s streaming and non-streaming chat APIs. Supports zig 0.14 and tool use.

8 Likes

So with this code, I could pick and choose which AI, I would like to integrate into my program/app for an interaction with a chatbot? Is that it’s main purpose (the anthropic library)?

Good job bro, thanks for the showcase!

Super cool! Do you plan to support MCP?

It does have support for sending requests with tool definitions, yes it could be used with MCP.

1 Like

Great work! I’ve been wanting some example code to see how this could be done. I appreciate that this code is quite readable.

Would it be the user’s responsibility to interpret tool requests from the LLM, and to match Call_Ids between requests and responses ? Do you have any example code that does that too ?

Thanks!