From fc641d54fd396589b5048bfcb7edb0af61842b6d Mon Sep 17 00:00:00 2001 From: 0007 <0007@qq.com> Date: Wed, 27 Aug 2025 19:58:50 +0800 Subject: [PATCH] Add File --- .../com/agentsflex/core/chain/RefType.java | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 agents-flex-core/src/main/java/com/agentsflex/core/chain/RefType.java diff --git a/agents-flex-core/src/main/java/com/agentsflex/core/chain/RefType.java b/agents-flex-core/src/main/java/com/agentsflex/core/chain/RefType.java new file mode 100644 index 0000000..d0d9412 --- /dev/null +++ b/agents-flex-core/src/main/java/com/agentsflex/core/chain/RefType.java @@ -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; + } +}