Github
Our SDKs are available on Github:Installation
Usage
To get your workspace API Keys, see API Keys.
# The SDK can be installed with either pip or poetry package managers.
# PIP
pip install orq-ai-sdk
# Poetry
poetry add orq-ai-sdk
import os
from orq_ai_sdk import Orq
client = Orq(
api_key=os.environ.get("ORQ_API_KEY", "__API_KEY__"),
environment="production",
# optionally initiate the contact_id for the session
contact_id=2025
)
invoke()generation = client.deployments.invoke(
key="customer_service",
context={"environments": "production", "country": "NLD"},
inputs={"firstname": "John", "city": "New York"},
metadata={"customer_id": "Qwtqwty90281"},
)
print(generation.choices[0].message.content)
Was this page helpful?