diff --git a/dap-was-lib/src/main/java/io/shinhanlife/dap/lib/manifest/ToolManifestMeta.java b/dap-was-lib/src/main/java/io/shinhanlife/dap/lib/manifest/ToolManifestMeta.java index f21ba07ee..817b8d896 100644 --- a/dap-was-lib/src/main/java/io/shinhanlife/dap/lib/manifest/ToolManifestMeta.java +++ b/dap-was-lib/src/main/java/io/shinhanlife/dap/lib/manifest/ToolManifestMeta.java @@ -1,5 +1,6 @@ package io.shinhanlife.dap.lib.manifest; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Operational metadata exposed by the Tool Service manifest. */ @@ -11,5 +12,8 @@ public record ToolManifestMeta( List tags, String legacyInterfaceId, List requiredEnvKeys, - String ownerOrg) { + String ownerOrg, + @JsonProperty("when_to_use") String whenToUse, + @JsonProperty("when_not_to_use") String whenNotToUse, + @JsonProperty("io_limits") String ioLimits) { } diff --git a/dap-was-lib/src/main/java/io/shinhanlife/dap/lib/manifest/ToolManifestService.java b/dap-was-lib/src/main/java/io/shinhanlife/dap/lib/manifest/ToolManifestService.java index c76a47264..5215ee99b 100644 --- a/dap-was-lib/src/main/java/io/shinhanlife/dap/lib/manifest/ToolManifestService.java +++ b/dap-was-lib/src/main/java/io/shinhanlife/dap/lib/manifest/ToolManifestService.java @@ -68,7 +68,8 @@ public class ToolManifestService { tool.getTimeoutMillis() == null ? DEFAULT_TIMEOUT_MILLIS : tool.getTimeoutMillis(), tool.getEnabled() == null || tool.getEnabled(), defaultList(tool.getExampleQueries()), defaultList(tool.getTags()), - tool.getMciServiceId(), defaultList(tool.getRequiredEnvKeys()), tool.getOwnerOrg())); + tool.getMciServiceId(), defaultList(tool.getRequiredEnvKeys()), tool.getOwnerOrg(), + tool.getWhenToUse(), tool.getWhenNotToUse(), tool.getIoLimits())); } private void validate(List tools) {