Skip to content

Commit 8d487d6

Browse files
committed
1886 - Add missing task handler
1 parent 7173d2f commit 8d487d6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright 2023-present ByteChef Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.bytechef.component.ai.text.analysis.task.handler;
18+
19+
import static com.bytechef.component.ai.text.analysis.constant.AiTextAnalysisConstants.SCORE;
20+
import static com.bytechef.platform.component.definition.AiComponentDefinition.AI_TEXT_ANALYSIS;
21+
22+
import com.bytechef.platform.component.facade.ActionDefinitionFacade;
23+
import com.bytechef.platform.component.task.handler.AbstractTaskHandler;
24+
import org.springframework.stereotype.Component;
25+
26+
/**
27+
* @author Ivica Cardic
28+
*/
29+
@Component(AI_TEXT_ANALYSIS + "/v1/" + SCORE)
30+
public class AiTextAnalysisScoreTaskHandler extends AbstractTaskHandler {
31+
32+
public AiTextAnalysisScoreTaskHandler(ActionDefinitionFacade actionDefinitionFacade) {
33+
super(AI_TEXT_ANALYSIS, 1, SCORE, actionDefinitionFacade);
34+
}
35+
}

0 commit comments

Comments
 (0)