All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.semantickernel.aiservices.openai.chatcompletion.ParsedPrompt Maven / Gradle / Ivy

// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.aiservices.openai.chatcompletion;

import com.azure.ai.openai.models.ChatRequestMessage;
import com.azure.ai.openai.models.FunctionDefinition;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nullable;

class ParsedPrompt {

    private final List chatRequestMessages;
    private final List functions;

    protected ParsedPrompt(List parsedMessages,
        @Nullable List parsedFunctions) {
        this.chatRequestMessages = parsedMessages;
        if (parsedFunctions == null) {
            parsedFunctions = new ArrayList<>();
        }
        this.functions = parsedFunctions;
    }

    public List getChatRequestMessages() {
        return chatRequestMessages;
    }

    public List getFunctions() {
        return functions;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy