Claude Skill
openclaw/Tachikoma
Tachikoma 是一个 Swift SDK,提供单一接口对接多个 AI 模型提供商,简化 iOS 和 macOS 应用的开发。
概览
仓库信息
安装这个 Skill
git clone https://github.com/openclaw/Tachikoma.gitRegistry 信息
项目简介
Tachikoma 是一个 Swift SDK,提供统一的接口来对接多个 AI 模型提供商,简化集成并减少样板代码。
One interface, every AI model. A Swift SDK to interface with AI providers.
要点
- 跨多个 AI 提供商的统一 API
- 纯 Swift 编写,原生支持 iOS/macOS 集成
- 轻量级,易于集成
- 为现代 Swift 并发设计
使用场景
- 构建支持 AI 的 iOS/macOS 应用
- 使用不同 AI 模型快速原型开发
- 无需修改代码即可切换 AI 提供商
- 创建具备 AI 能力的跨平台 Swift 应用
README 摘要
<div align="center"> <img src="assets/logo.png" width="180" alt="Tachikoma Logo"> # Tachikoma — Swift AI SDK <p align="center"> <a href="https://swift.org"><img src="https://img.shields.io/badge/Swift-6.0+-FA7343?style=for-the-badge&logo=swift&logoColor=white" alt="Swift 6.0+"></a> <a href="https://github.com/steipete/Tachikoma"><img src="https://img.shields.io/badge/platforms-macOS%20%7C%20iOS%20%7C%20tvOS%20%7C%20watchOS%20%7C%20visionOS%20%7C%20Linux-blue?style=for-the-badge" alt="Platforms"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=for-the-badge" alt="MIT License"></a> <a href="https://github.com/steipete/Tachikoma/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/steipete/Tachikoma/ci.yml?branch=main&style=for-the-badge&label=tests" alt="CI Status"></a> </p>  Modern, Swift-native APIs for text, vision, tools, and realtime voice. </div> ## Install Swift Package Manager: ```swift .package(url: "https://github.com/steipete/Tachikoma.git", branch: "main"), ``` ```swift .product(name: "Tachikoma", package: "Tachikoma"), ``` ## Quick Start ```swift import Tachikoma let text = try await generate("Write a haiku about Swift.", using: .anthropic(.opus45)) print(text) ``` ### Streaming ```swift import Tachikoma let stream = try await stream("Explain actors in Swift.", using: .openai(.gpt54)) for try await delta in stream { print(delta.content ?? "", terminator: "") } ``` ### Conversation ```swift import Tachikoma let conversation = Conversation() conversation.addUserMessage("You are a concise assistant.") conversation.addUserMessage("Summarize Swift concurrency in 3 bullets.") let reply = try await conversation.