from vlmrun.client import VLMRun
client = VLMRun(api_key="<VLMRUN_API_KEY>")
response = client.feedback.submit(
request_id="<request_id>",
response={"name": "John Doe", "date_of_birth": "1955-01-01", "email": "john@doe.com"},
notes="Excellent prediction quality"
)
import { VlmRun } from "vlmrun";
const client = new VlmRun({apiKey: "<VLMRUN_API_KEY>"});
const response = await client.feedback.submit({
requestId: "<request_id>",
response: {"name": "John Doe", "date_of_birth": "1955-01-01", "email": "john@doe.com"},
notes: "Excellent prediction quality"
});
console.log(response);
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"request_id": "<string>",
"agent_execution_id": "<string>",
"chat_id": "<string>",
"notes": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Feedback
Submit Feedback
Submit feedback for a request, execution, or chat by its ID.
POST
/
v1
/
feedback
/
submit
from vlmrun.client import VLMRun
client = VLMRun(api_key="<VLMRUN_API_KEY>")
response = client.feedback.submit(
request_id="<request_id>",
response={"name": "John Doe", "date_of_birth": "1955-01-01", "email": "john@doe.com"},
notes="Excellent prediction quality"
)
import { VlmRun } from "vlmrun";
const client = new VlmRun({apiKey: "<VLMRUN_API_KEY>"});
const response = await client.feedback.submit({
requestId: "<request_id>",
response: {"name": "John Doe", "date_of_birth": "1955-01-01", "email": "john@doe.com"},
notes: "Excellent prediction quality"
});
console.log(response);
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"request_id": "<string>",
"agent_execution_id": "<string>",
"chat_id": "<string>",
"notes": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Submit feedback for a prediction to help improve model performance through fine-tuning.
from vlmrun.client import VLMRun
client = VLMRun(api_key="<VLMRUN_API_KEY>")
response = client.feedback.submit(
request_id="<request_id>",
response={"name": "John Doe", "date_of_birth": "1955-01-01", "email": "john@doe.com"},
notes="Excellent prediction quality"
)
import { VlmRun } from "vlmrun";
const client = new VlmRun({apiKey: "<VLMRUN_API_KEY>"});
const response = await client.feedback.submit({
requestId: "<request_id>",
response: {"name": "John Doe", "date_of_birth": "1955-01-01", "email": "john@doe.com"},
notes: "Excellent prediction quality"
});
console.log(response);
Authorizations
Body
application/json
Request model for submitting feedback.
Response
Successful Response
Response model for feedback operations.