Add tool quality report contract
This commit is contained in:
@@ -64,6 +64,18 @@ pub async fn create_operation(
|
||||
Ok(Json(json!(created)))
|
||||
}
|
||||
|
||||
pub async fn analyze_operation_quality(
|
||||
Path(path): Path<WorkspacePath>,
|
||||
State(state): State<AppState>,
|
||||
Json(payload): Json<OperationPayload>,
|
||||
) -> Result<Json<Value>, ApiError> {
|
||||
let report = state
|
||||
.service
|
||||
.analyze_operation_quality(&path.workspace_id.as_str().into(), payload)
|
||||
.await?;
|
||||
Ok(Json(json!(report)))
|
||||
}
|
||||
|
||||
pub async fn get_operation(
|
||||
Path(path): Path<WorkspaceOperationPath>,
|
||||
State(state): State<AppState>,
|
||||
|
||||
Reference in New Issue
Block a user