Developers
SDKs
Idiomatic clients for the Orvine API with built-in retries, signed-webhook verification, and typed resources.
Official SDKs
JavaScript and TypeScript
install
npm install @orvine/sdk
# or pnpm add @orvine/sdk
# or yarn add @orvine/sdkusage
import { Orvine } from "@orvine/sdk";
const orvine = new Orvine({
apiKey: process.env.ORVINE_API_KEY!,
});
// Ask a question
const answer = await orvine.search.ask({
query: "How do we close month-end revenue?",
});
for (const c of answer.citations) {
console.log(c.uri, c.score);
}
// Start an interview
const session = await orvine.sessions.create({
template: "operational_workflow",
intervieweeEmail: "aria@acme.com",
title: "Month-end revenue close",
});Python
install
pip install orvine
# or uv add orvineusage
import os
from orvine import Orvine
orvine = Orvine(api_key=os.environ["ORVINE_API_KEY"])
answer = orvine.search.ask(query="How do we close month-end revenue?")
for c in answer.citations:
print(c.uri, c.score)
session = orvine.sessions.create(
template="operational_workflow",
interviewee_email="aria@acme.com",
title="Month-end revenue close",
)Go
install
go get github.com/orvine/orvine-gousage
package main
import (
"context"
"fmt"
"os"
"github.com/orvine/orvine-go"
)
func main() {
client := orvine.New(os.Getenv("ORVINE_API_KEY"))
ctx := context.Background()
ans, err := client.Search.Ask(ctx, &orvine.AskRequest{
Query: "How do we close month-end revenue?",
})
if err != nil { panic(err) }
for _, c := range ans.Citations { fmt.Println(c.URI, c.Score) }
}Coverage
All three SDKs are generated from the same OpenAPI specification and ship with retry, rate-limit, and webhook-verification helpers. The TypeScript and Python clients include first-class streaming support for chat and audit endpoints.