ee.carlrobert.llm.client.you.completion.YouThirdPartySearchResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of llm-client Show documentation
Show all versions of llm-client Show documentation
Java http client wrapped around the OkHttp3 library
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;
}
}