Get started with LangWatch Skills in seconds: Set up evals, scenario tests, and tracing just by asking your AI coding assistant.
import requests
url = "https://app.langwatch.ai/api/dataset/{slug}/entries"
payload = { "entries": [
{
"input": "hi",
"output": "Hello, how can I help you today?"
}
] }
headers = {
"X-Auth-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Add entries to a dataset
import requests
url = "https://app.langwatch.ai/api/dataset/{slug}/entries"
payload = { "entries": [
{
"input": "hi",
"output": "Hello, how can I help you today?"
}
] }
headers = {
"X-Auth-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?