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

io.github.sinri.AiOnHttpMix.moonshot.kimi.impl.KimiToolDefinitionImpl Maven / Gradle / Ivy

The newest version!
package io.github.sinri.AiOnHttpMix.moonshot.kimi.impl;

import io.github.sinri.AiOnHttpMix.moonshot.kimi.KimiKit;
import io.vertx.core.json.JsonObject;
import org.jetbrains.annotations.NotNull;

public class KimiToolDefinitionImpl implements KimiKit.ToolDefinition {
    private JsonObject jsonObject;

    public KimiToolDefinitionImpl(JsonObject jsonObject) {
        this.jsonObject = jsonObject;
    }

    public KimiToolDefinitionImpl() {
        this.jsonObject = new JsonObject();
    }

    @Override
    public @NotNull KimiKit.ToolDefinition getImplementation() {
        return this;
    }

    @Override
    public @NotNull JsonObject toJsonObject() {
        return jsonObject;
    }

    @Override
    public @NotNull KimiKit.ToolDefinition reloadDataFromJsonObject(@NotNull JsonObject jsonObject) {
        this.jsonObject = jsonObject;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy