Skip to content

Submit Routing Feedback

POST
/api/agents/routing-feedback

Submit feedback on routing decisions for ML learning.

Allows submission of routing outcomes to improve future routing decisions through pattern learning and algorithm optimization.

Request Body: RoutingFeedbackRequest with outcome, quality_score, and notes

Returns: RoutingFeedbackResponse confirming feedback receipt

Raises: HTTPException 500: For unexpected errors

RoutingFeedbackRequest

Request model for routing feedback submission.

Allows submission of routing decision outcomes for ML learning and routing algorithm optimization.

Fields: routing_id: Original routing decision identifier agent_id: Agent that handled the task task_description: Original task description outcome: Outcome of the routing decision (success/partial/failed) quality_score: Quality score (0.0-1.0) completion_time_ms: How long task took to complete feedback_notes: Optional additional feedback

Usage: POST /api/agents/routing/routing-feedback

object
routingId
Any of:
string
agentId
required
Agentid

Agent that handled task

string
taskDescription
required
Taskdescription

Task description

string
outcome
required
Outcome

Routing outcome

string
qualityScore
Any of:
number
completionTimeMs
Any of:
number
feedbackNotes
Any of:
string

Successful Response

RoutingFeedbackResponse

Response model for routing feedback submission.

Confirms feedback receipt and provides learning status.

Fields: status: Operation status feedback_id: Unique identifier for this feedback learning_applied: Whether feedback was applied to learning system acknowledgment: Confirmation message

object
status
Status

Operation status

string
default: success
feedbackId
required
Feedbackid

Feedback identifier

string
learningApplied
required
Learningapplied

Learning applied

boolean
acknowledgment
required
Acknowledgment

Confirmation message

string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object