{"repo":"ClickHouse/ai-sdk-cpp","free":true,"listed":false,"github":"https://github.com/ClickHouse/ai-sdk-cpp","clone":"git clone https://github.com/ClickHouse/ai-sdk-cpp.git","description":"The AI Toolkit for Modern C++. From the engineers at ClickHouse, ai-sdk-cpp is a free, open‑source library for building AI‑powered applications and agents.","language":"C++","stars":181,"topics":["anthropic","artificial-intelligence","cpp","gemini","generative-ai","llm","openai"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"AI SDK CPP The AI SDK CPP is a modern C++ toolkit designed to help you build AI-powered applications with popular model providers like OpenAI and Anthropic. It provides a unified, easy-to-use API that abstracts away the complexity of different provider implementations. Motivation C++ developers have long lacked a first-class, convenient way to interact with modern AI services like OpenAI, Anthropic, and others. AI SDK CPP bridges this gap by providing: - Unified API : Work with multiple AI providers through a single, consistent interface - Modern C++ : Built with C++20 features for clean, expressive code - Minimal Dependencies : Minimal external dependencies for easy integration Installation You will need a C++20 compatible compiler and CMake 3.16+ installed on your development machine. Usage Core API The AI SDK CPP Core module provides a unified API to interact with model providers like OpenAI and Anthropic. OpenAI Integration Anthropic Integration Streaming Responses Multi-turn Conversations Tool Calling The AI SDK CPP supports function calling, allowing models to interact with external systems and APIs. Async Tool Calling For long-running operations, you can define asynchronous tools: Custom Retry Configuration Configure retry behavior for handling transient failures: Using OpenAI-Compatible APIs (OpenRouter, etc.) The OpenAI client can be used with any OpenAI-compatible API by specifying a custom base URL. This allows you to use alternative providers like OpenRouter, whic","default_branch":null,"files":null,"tree":[],"storefront":"/r/ClickHouse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ClickHouse/ai-sdk-cpp/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."}