import sutro as so
customer_support_conversations = ... # (code to retrieve customer support conversations from a database)
json_schema = {
"type": "object",
"properties": {
"was_handled_properly": {
"type": "boolean"
}
}
}
system_prompt = """
You are a overseeing customer support agents.
Your job is to review dialogues between customers and customer support agents, and ensure that they were handled properly.
You will be provided a dialogue, and you should respond with True if the dialogue was handled properly, and False otherwise."
"""
results = so.infer(
inputs=dialogues,
system_prompt=system_prompt,
output_schema=json_schema
)
print(results)