feat(manifest): expose tool usage guidance

This commit is contained in:
jade
2026-08-17 15:12:05 +09:00
parent 6ad5c31986
commit 113bf0395b
2 changed files with 7 additions and 2 deletions

View File

@@ -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<String> tags,
String legacyInterfaceId,
List<String> requiredEnvKeys,
String ownerOrg) {
String ownerOrg,
@JsonProperty("when_to_use") String whenToUse,
@JsonProperty("when_not_to_use") String whenNotToUse,
@JsonProperty("io_limits") String ioLimits) {
}

View File

@@ -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<ToolManifestItem> tools) {