io.github.sinri.AiOnHttpMix.moonshot.kimi.impl.KimiToolDefinitionImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AiOnHttpMix Show documentation
Show all versions of AiOnHttpMix Show documentation
A library to handle LLM APIs over HTTP service.
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