Github
Our SDKs are available on Github:Installation
Usage
You can get your workspace API keys from the settings section in your orq.ai workspace.https://my.orq.ai/<workspace>/settings/developers
Initialize the orq.ai client with your API key:
Ask AI
# The SDK can be installed with either pip or poetry package managers.
# PIP
pip install orq-ai-sdk
# Poetry
poetry add orq-ai-sdk
You can get your workspace API keys from the settings section in your orq.ai workspace.https://my.orq.ai/<workspace>/settings/developers
Initialize the orq.ai client with your API key:
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?