Quick Setup with Python Client Library
Installation
pip install vysp-pythonBasic Usage
from vysp import VYSPClient
# Initialize the client
client = VYSPClient(tenant_api_key='your_tenant_key', gate_api_key='your_gate_key')
prompt = 'What is VYSP.AI?'
# Perform an input check
input_response = client.check_input(client_ref_user_id='123', prompt=prompt)
print(response)
model_output = 'VYSP.AI is a product that allows you to configure AI guardrails easier.'
# Perform an output check
output_response = client.check_output(client_ref_user_id='123', prompt=prompt, model_output=model_output)
print(response)
Last updated