{"repo":"liushuangls/go-anthropic","free":true,"listed":false,"github":"https://github.com/liushuangls/go-anthropic","clone":"git clone https://github.com/liushuangls/go-anthropic.git","description":"Anthropic Claude API wrapper for Go","language":"Go","stars":175,"topics":["ai","anthropic","claude","golang","vision","llm","claude-ai","claude-api","function-calling","tool-use"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"go-anthropic Anthropic Claude API wrapper for Go (Unofficial). This package has support for: - Completions - Streaming Completions - Messages - Streaming Messages - Message Batching - Vision and PDFs - Tool use (with computer use) - Prompt Caching - Token Counting Installation Currently, go-anthropic requires Go version 1.21 or greater. Usage Messages example usage: Messages stream example usage: Other examples: Messages Vision example Messages Tool use example Prompt Caching doc: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching VertexAI example If you are using a Google Credentials file, you can use the following code to create a client: Message Batching doc: https://docs.anthropic.com/en/docs/build-with-claude/message-batches Token Counting example doc: (https://docs.anthropic.com/en/docs/build-with-claude/token-counting)[https://docs.anthropic.com/en/docs/build-with-claude/token-counting] Beta features Anthropic provides several beta features that can be enabled using the following beta version identifiers: Beta Version Identifier Code Constant Description ----------------------------------- --------------------------------- --------------------------------- tools-2024-04-04 BetaTools20240404 Initial tools beta tools-2024-05-16 BetaTools20240516 Updated tools beta prompt-caching-2024-07-31 BetaPromptCaching20240731 Prompt caching beta message-batches-2024-09-24 BetaMessageBatches20240924 Message batching beta token-counting-2024-11-01 BetaTokenCounting20","default_branch":null,"files":null,"tree":[],"storefront":"/r/liushuangls","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/liushuangls/go-anthropic/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}