Evals
Liste os alertas de desvio de qualidade em todos os monitores visíveis
Retorna alertas de desvio visíveis ao inquilino em todos os monitores de qualidade visíveis ao chamador, do mais recente para o mais antigo.
GET
/
api
/
v1
/
llm
/
evals
/
monitors
/
alerts
CSharp (SDK)
using MeetKai.MKA1;
using MeetKai.MKA1.Types.Components;
var sdk = new SDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
var res = await sdk.Llm.Evals.ListAllQualityDriftAlertsAsync(limit: 20);
// handle responsefrom meetkai_mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.evals.list_all_quality_drift_alerts(limit=20)
# Handle response
print(res)import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.llm.evals.listAllQualityDriftAlerts({});
console.log(result);
}
run();package main
import(
"context"
mka1 "github.com/MeetKai/mka1-sdks/go"
"log"
)
func main() {
ctx := context.Background()
s := mka1.New(
mka1.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
res, err := s.Llm.Evals.ListAllQualityDriftAlerts(ctx, mka1.Pointer[int64](20), nil, nil, nil)
if err != nil {
log.Fatal(err)
}
if res.QualityDriftAlertList != nil {
// handle response
}
}curl --request GET \
--url https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "qalert_aa87e2b1112a455b8deabed7",
"object": "eval.quality_drift_alert",
"monitor_id": "qmon_aa87e2b1112a455b8deabed7",
"monitor_name": "Support agent live quality",
"metric_id": "helpfulness_relevance",
"evaluator_id": "helpfulness_relevance",
"status": "active",
"breach_reason": "drop_from_baseline",
"baseline_score": 0.91,
"current_score": 0.71,
"delta": -0.2,
"threshold": 0.15,
"sample_count": 15,
"window_start": 1764513600,
"window_end": 1764600000,
"sample_ids": [
"qsmp_aa87e2b1112a455b8deabed7"
],
"triggered_at": 1764600000,
"notified_at": 1764600000,
"acknowledged_at": null,
"acknowledged_by": null,
"resolved_at": null,
"resolution_reason": null
}
],
"first_id": "qalert_aa87e2b1112a455b8deabed7",
"last_id": "qalert_aa87e2b1112a455b8deabed7",
"has_more": false
}Autorizações
Parâmetros de consulta
Esta página foi útil?
⌘I
CSharp (SDK)
using MeetKai.MKA1;
using MeetKai.MKA1.Types.Components;
var sdk = new SDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
var res = await sdk.Llm.Evals.ListAllQualityDriftAlertsAsync(limit: 20);
// handle responsefrom meetkai_mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.evals.list_all_quality_drift_alerts(limit=20)
# Handle response
print(res)import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.llm.evals.listAllQualityDriftAlerts({});
console.log(result);
}
run();package main
import(
"context"
mka1 "github.com/MeetKai/mka1-sdks/go"
"log"
)
func main() {
ctx := context.Background()
s := mka1.New(
mka1.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
res, err := s.Llm.Evals.ListAllQualityDriftAlerts(ctx, mka1.Pointer[int64](20), nil, nil, nil)
if err != nil {
log.Fatal(err)
}
if res.QualityDriftAlertList != nil {
// handle response
}
}curl --request GET \
--url https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.mka1.com/api/v1/llm/evals/monitors/alerts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "qalert_aa87e2b1112a455b8deabed7",
"object": "eval.quality_drift_alert",
"monitor_id": "qmon_aa87e2b1112a455b8deabed7",
"monitor_name": "Support agent live quality",
"metric_id": "helpfulness_relevance",
"evaluator_id": "helpfulness_relevance",
"status": "active",
"breach_reason": "drop_from_baseline",
"baseline_score": 0.91,
"current_score": 0.71,
"delta": -0.2,
"threshold": 0.15,
"sample_count": 15,
"window_start": 1764513600,
"window_end": 1764600000,
"sample_ids": [
"qsmp_aa87e2b1112a455b8deabed7"
],
"triggered_at": 1764600000,
"notified_at": 1764600000,
"acknowledged_at": null,
"acknowledged_by": null,
"resolved_at": null,
"resolution_reason": null
}
],
"first_id": "qalert_aa87e2b1112a455b8deabed7",
"last_id": "qalert_aa87e2b1112a455b8deabed7",
"has_more": false
}