nathanborror / swift-gen-kit

GenKit is a library that abstracts away all the differences across generative AI platforms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift GenKit

GenKit is a library that abstracts away all the differences across generative AI platforms. It's sort of like a lightweight LangChain for Swift. The goal is to make native Swift development with generative AI fast, easy and fun!

Features

Sessions

Sessions are the highest level of abstraction and the easiest to use. They run in a loop and call out to tools as needed and send tool responses back to the model until it completes its work.

Services

Services are a common interface for working across many platforms. They allow you to seamlessly switch out the underlying platform without changing any code.

Supported Providers

Provider packages are swift interfaces that talk directly to model provider REST APIs. You can use these directly but their APIs vary slightly.

Example Usage

Heat is a good example of how GenKit can be used.

About

GenKit is a library that abstracts away all the differences across generative AI platforms.

License:MIT License


Languages

Language:Swift 99.9%Language:Makefile 0.1%