1
Setup the SDK
First, ensure you have installed the IBM WatsonX SDK and Lunary. Set your environment variables for IBM authentication.Configure your environment variables:
IBM_API_KEY
: your IBM API keyIBM_PROJECT_ID
: your IBM project id
2
Monitor IBM WatsonX calls
Wrap your WatsonX model instance with Lunary’s
monitor
method to automatically track your calls.3
Tag requests and identify users
Optionally, pass extra parameters to track details such as tags and user information by including additional arguments to the chat call.