from bespokelabs import BespokeLabs
client = BespokeLabs() # reads BESPOKE_API_KEY
response = client.nimble.system_one(
model="nimble-latest",
state="The customer was charged twice and asks for a refund. The service still works.",
questions={
"refund": {
"type": "noul",
"instructions": "Does the customer request a refund?",
},
"department": {
"type": "choice",
"instructions": "Which department should handle this request?",
"criteria": {
"billing": "Charges, payments and refunds",
"technical": "Software bugs and outages",
},
},
},
)
print(response.answers)