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

io.github.rbajek.rasa.sdk.dto.Domain Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package io.github.rbajek.rasa.sdk.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import java.util.List;
import java.util.Map;

@Getter @Setter @ToString
public class Domain {

    private Config config;
    private List> intents;
    private List entities;
    private Map slots;
    private Map> templates;
    private List actions;

    @Getter @Setter @ToString
    public static class Intent {
        @JsonProperty("use_entities")
        private Object use_entities;
    }

    @Getter @Setter @ToString
    public static class Slot {
        @JsonProperty("auto_fill")
        private Boolean autoFill;

        @JsonProperty("initial_value")
        private String initialValue;

        private String type;

        private List values;
    }

    @Getter @Setter @ToString
    public static class Template {
        private String image;
        private String text;
    }

    @Getter @Setter @ToString
    public static class Config {
        @JsonProperty("store_entities_as_slots")
        private Boolean storeEntitiesAsSlots;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy