A Tiny Python client for EvalsOne API
pip install evalsonefrom evalsone import EvalsOne
# api_key and sample_list_id should be replaced with your own
eo_client = EvalsOne(api_key='your_api_key', sid='your_dataset_id')
sample_data = {'messages': [{"role": "user", "content": "What's the capital of France?"}], 'ideal': ['Paris']}
response = eo_client.add_sample(sample_data)https://docs.evalsone.com/Faq/Samples/api_usage_in_programming_languages/