{"repo":"aaronrussell/anthropix","free":true,"listed":false,"github":"https://github.com/aaronrussell/anthropix","clone":"git clone https://github.com/aaronrussell/anthropix.git","description":"Unofficial Anthropic API client for Elixir. Integrate Claude, Anthropic's powerful language model, into your applications.","language":"Elixir","stars":54,"topics":["ai","anthropic","api-client","claude-ai","elixir","llms"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"Anthropix Anthropix is an open-source Elixir client for the Anthropic API, providing a simple and convenient way to integrate Claude, Anthropic's powerful language model, into your applications. - ✅ API client fully implementing the Anthropic API - 🧰 Tool use (function calling) - 🧠 Extended thinking - ⚡ Prompt caching - 📦 Message batching - 🛜 Streaming API requests - Stream to an Enumerable - Or stream messages to any Elixir process Installation The package can be installed by adding anthropix to your list of dependencies in mix.exs . Quickstart [!NOTE] #### Beta features Anthropic frequently ship new features under a beta flag, requiring headers to be added to your requests to take advantage of the feature. If required, beta headers can be added with init/2 . For more examples, refer to the Anthropix documentation. Initiate a client. See Anthropix.init/2 . Chat with Claude See Anthropix.chat/2 . Streaming A streaming request can be initiated by setting the :stream option. When :stream is true a lazy t:Enumerable.t/0 is returned which can be used with any Stream functions. Because the above approach builds the t:Enumerable.t/0 by calling receive , using this approach inside GenServer callbacks may cause the GenServer to misbehave. Setting the :stream option to a t:pid/0 returns a t:Task.t/0 which will send messages to the specified process. License This package is open source and released under the Apache-2 License. © Copyright 2024 Push Code Ltd.","default_branch":null,"files":null,"tree":[],"storefront":"/r/aaronrussell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aaronrussell/anthropix/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."}