Comentarios
Enviar comentarios de producto e informes de errores desde agentes. Los ejemplos usan el modo de código A2A. MCP expone el mismo modo de código mediante su herramientaexecute.
Funciones
feedback.submit
feedback.submit(account_id: str, category: "bug_report" | "product_feedback" | "feature_request" | "other", description: str, title: str, attributes?: {}, paid_product_feature?: bool) -> Feedback
feedback.submit.
| Propiedad | Valor | Propiedad | Valor |
|---|---|---|---|
| Autenticación requerida | sí | Modo de ejecución | sync |
| Ruta API pública | POST /v1/public/accounts/{account_id}/feedback |
Argumentos
Argumentos
| Nombre | Tipo | Requerido |
|---|---|---|
account_id | str | sí |
category | "bug_report" | "product_feedback" | "feature_request" | "other" | sí |
description | str | sí |
title | str | sí |
attributes | {} | no |
paid_product_feature | bool | no |
Devuelve
Devuelve
| Campo | Tipo | Requerido |
|---|---|---|
account_id | str | sí |
attributes | {} | sí |
category | "bug_report" | "product_feedback" | "feature_request" | "other" | sí |
created_at | str | sí |
created_by_user_id | str | sí |
description | str | sí |
id | str | sí |
paid_product_feature | bool | sí |
status | "new" | "triaged" | "planned" | "in_progress" | "closed" | sí |
submitter_email | str | sí |
submitter_name | str | sí |
title | str | sí |
updated_at | str | sí |
admin_notes | str | null | no |
Ejemplo A2A
Ejemplo A2A
Solicitud:Respuesta:
{
"request_id": "example",
"session_id": "session_123",
"code": "feedback.submit(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", category=\"<string>\", description=\"<string>\", title=\"<string>\", attributes=\"<string>\", paid_product_feature=true)"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "feedback.submit",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
Ejemplo MCP
Ejemplo MCP
Solicitud:Respuesta:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "feedback.submit(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", category=\"<string>\", description=\"<string>\", title=\"<string>\", attributes=\"<string>\", paid_product_feature=true)"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"feedback.submit\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}