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

io.github.sashirestela.openai.domain.finetuning.Integration Maven / Gradle / Ivy

The newest version!
package io.github.sashirestela.openai.domain.finetuning;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.github.sashirestela.slimvalidator.constraints.Required;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Singular;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Getter
@Builder
@JsonInclude(Include.NON_EMPTY)
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class Integration {

    @Required
    private IntegrationType type;

    @Required
    private WandbIntegration wandb;

    public enum IntegrationType {

        @JsonProperty("wandb")
        WANDB;

    }

    @NoArgsConstructor
    @AllArgsConstructor
    @Getter
    @Builder
    @JsonInclude(Include.NON_EMPTY)
    @JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
    public static class WandbIntegration {

        @Required
        private String project;

        private String name;

        private String entity;

        @Singular
        private List tags;

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy