This commit is contained in:
2025-08-27 19:58:50 +08:00
parent bcf8b7d21b
commit fc641d54fd

View File

@@ -0,0 +1,35 @@
package com.agentsflex.core.chain;
import com.alibaba.fastjson.annotation.JSONType;
@JSONType(typeName = "RefType")
public enum RefType {
REF("ref"),
FIXED("fixed"),
INPUT("input"),
;
private final String value;
RefType(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return value;
}
public static RefType ofValue(String value) {
for (RefType type : RefType.values()) {
if (type.value.equals(value)) {
return type;
}
}
return null;
}
}