Developers
SDKs
Client libraries for TypeScript, Python, and Go. All SDKs support the full mantle API with type safety and streaming.
TypeScript
Install:
$ npm install @mantle/sdk
Usage:
import { Mantle } from '@mantle/sdk'
const mantle = new Mantle(process.env.MANTLE_API_KEY)
const ctx = await mantle.search('Q3 revenue by region')
console.log(ctx.objects) // 12 matched objects
console.log(ctx.quality) // 0.94Python
Install:
$ pip install mantle-sdk
Usage:
from mantle import Mantle
mantle = Mantle(api_key=os.environ["MANTLE_API_KEY"])
ctx = mantle.search("Q3 revenue by region")
print(ctx.objects) # 12 matched objects
print(ctx.quality) # 0.94Go
Install:
$ go get github.com/mantleai/mantle-go
Usage:
import "github.com/mantleai/mantle-go"
client := mantle.New(os.Getenv("MANTLE_API_KEY"))
ctx, err := client.Search("Q3 revenue by region")
fmt.Println(ctx.Objects) // 12 matched objects
fmt.Println(ctx.Quality) // 0.94Feature Support
| Feature | TypeScript | Python | Go |
|---|---|---|---|
| Search | ✓ | ✓ | ✓ |
| Entity Resolution | ✓ | ✓ | ✓ |
| Streaming | ✓ | ✓ | ✓ |
| MCP Protocol | ✓ | ✓ | ✓ |
| Webhooks | ✓ | ✓ | ✓ |
| Batch Queries | ✓ | ✓ | ✓ |