/*
 * Copyright 2025 Conductor Authors.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */
package org.conductoross.conductor.ai.model;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import lombok.Data;

@Data
public class LLMWorkerInput {

    private Map<String, String> integrationNames = new HashMap<>();
    private String llmProvider;
    private String integrationName;
    private String model;

    private String prompt;
    private Integer promptVersion;
    private Map<String, Object> promptVariables;

    private Double temperature;
    private Double frequencyPenalty;
    private Double topP;
    private Integer topK;
    private Double presencePenalty;
    private List<String> stopWords;
    private Integer maxTokens = 8192;
    private int maxResults = 1;
    private boolean allowRawPrompts;

    public Map<String, String> getIntegrationNames() {
        if (llmProvider != null && !integrationNames.containsKey("AI_MODEL")) {
            integrationNames.put("AI_MODEL", llmProvider);
        }
        return integrationNames;
    }
}
