From 169e1f452f338b258cf5a24032082b673848579c Mon Sep 17 00:00:00 2001 From: Morgan Funtowicz Date: Thu, 1 Aug 2024 11:59:14 +0000 Subject: [PATCH] (server) expose new SchedulingError --- router/src/infer/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/router/src/infer/mod.rs b/router/src/infer/mod.rs index 896f4f43..39b6f8cf 100644 --- a/router/src/infer/mod.rs +++ b/router/src/infer/mod.rs @@ -357,6 +357,8 @@ pub enum InferError { ToolError(String), #[error("Stream event serialization error")] StreamSerializationError(String), + #[error("Scheduling error: {0}")] + SchedulingError(String), } impl InferError { @@ -371,6 +373,7 @@ impl InferError { InferError::MissingTemplateVariable(_) => "missing_template_variable", InferError::ToolError(_) => "tool_error", InferError::StreamSerializationError(_) => "stream_serialization_error", + InferError::SchedulingError(_) => "schedling" } } }