{ "agents": [123], "name": "Booking confirmed", "type": "llm_judge", "eval_type": "boolean", "prompt": "Did the agent confirm a booking and read back the date and time?"}
Apply:
cekura metrics create --from-file metric.json
from cekura import Cekuraclient = Cekura()# LLM-judge metricmetric = client.metrics.create( agents=[123], name="Booking confirmed", type="llm_judge", eval_type="boolean", prompt="Did the agent confirm a booking and read back the date and time?",)# Python (custom code) metricclient.metrics.create( agents=[123], name="Hold duration > 30s", type="python", eval_type="boolean", code="""def evaluate(call):return any(seg['duration'] > 30 for seg in call.get('hold_segments', []))""",)
# Create several at oncecekura metrics bulk-create --from-file metrics.json# Bulk-attach metrics across agentscekura metrics bulk-manage-agents \ --metric-ids 55,56 \ --agents-to-add 123,124# Toggle active state on many metricscekura metrics bulk-toggle-settings --metric-ids 55,56 --is-active true
# Create several at onceclient.metrics.bulk_create(metrics=[ {"name": "Greeting present", "type": "llm_judge", "prompt": "...", "agents": [123]}, {"name": "Closing present", "type": "llm_judge", "prompt": "...", "agents": [123]},])# Attach / detach metrics across agentsclient.metrics.bulk_manage_agents( metric_ids=[55, 56], agents_to_add=[123, 124], agents_to_remove=[],)# Toggle settings on many metrics at onceclient.metrics.bulk_toggle_settings( metric_ids=[55, 56], is_active=True,)