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

com.github.hakenadu.javalangchains.chains.llm.openai.OpenAiResponse Maven / Gradle / Ivy

package com.github.hakenadu.javalangchains.chains.llm.openai;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Model class for the response body of an OpenAI request
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class OpenAiResponse {

	/**
	 * All contained choice instances of the response.
	 */
	private final List choices;

	/**
	 * @param choices {@link #choices}
	 */
	protected OpenAiResponse(final List choices) {
		this.choices = choices;
	}

	/**
	 * @return {@link #choices}
	 */
	public List getChoices() {
		return choices;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy