package com.yaoyicloud.ai.pipeline.fc;

import com.aliyun.fc.runtime.Context;
import com.aliyun.fc.runtime.PojoRequestHandler;

public class PreProcessHandler implements PojoRequestHandler<TaskContentMsgsWithFeature, TaskContentMsgs> {

	@Override
	public TaskContentMsgs handleRequest(TaskContentMsgsWithFeature request, Context context) {
		System.out.println("write to search db");
		return new TaskContentMsgs(
			request.getItems(),
			request.getIndexField()
		);
	}

}
