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

ee.carlrobert.llm.client.you.completion.YouThirdPartySearchResult Maven / Gradle / Ivy

There is a newer version: 0.8.28
Show newest version
package ee.carlrobert.llm.client.you.completion;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class YouThirdPartySearchResult {

  private final List thirdPartySearchResults;

  @JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
  public YouThirdPartySearchResult(
      @JsonProperty("third_party_search_results") List thirdPartySearchResults) {
    this.thirdPartySearchResults = thirdPartySearchResults;
  }

  public boolean hasSearchResults() {
    return thirdPartySearchResults != null && !thirdPartySearchResults.isEmpty();
  }

  public List getThirdPartySearchResults() {
    return thirdPartySearchResults;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy