diff --git a/agents-flex-core/src/main/java/com/agentsflex/chain/Chain.java b/agents-flex-core/src/main/java/com/agentsflex/chain/Chain.java index 78d81fd..7c523da 100644 --- a/agents-flex-core/src/main/java/com/agentsflex/chain/Chain.java +++ b/agents-flex-core/src/main/java/com/agentsflex/chain/Chain.java @@ -355,8 +355,16 @@ public abstract class Chain implements Serializable { public String toString() { return "Chain{" + "id=" + id + + ", memory=" + memory + + ", eventListeners=" + eventListeners + + ", inputListeners=" + inputListeners + + ", outputListeners=" + outputListeners + + ", nodes=" + nodes + + ", parent=" + parent + + ", children=" + children + + ", status=" + status + + ", message='" + message + '\'' + + ", waitInputParameters=" + waitInputParameters + '}'; } - - } diff --git a/agents-flex-core/src/main/java/com/agentsflex/chain/InputWrapper.java b/agents-flex-core/src/main/java/com/agentsflex/chain/InputWrapper.java deleted file mode 100644 index a947b0f..0000000 --- a/agents-flex-core/src/main/java/com/agentsflex/chain/InputWrapper.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2023-2025, Agents-Flex (fuhai999@gmail.com). - *

- * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.agentsflex.chain; - -import com.agentsflex.agent.Parameter; -import com.agentsflex.chain.node.AgentNode; - -import java.util.List; - -public class InputWrapper { - - private AgentNode agentNode; - private List parameters; - - public InputWrapper(AgentNode agentNode, List parameters) { - this.agentNode = agentNode; - this.parameters = parameters; - } - - public AgentNode getAgentNode() { - return agentNode; - } - - public void setAgentNode(AgentNode agentNode) { - this.agentNode = agentNode; - } - - public List getParameters() { - return parameters; - } - - public void setParameters(List parameters) { - this.parameters = parameters; - } -} diff --git a/agents-flex-core/src/main/java/com/agentsflex/chain/LoopChain.java b/agents-flex-core/src/main/java/com/agentsflex/chain/LoopChain.java index 7d9d9ca..a590af6 100644 --- a/agents-flex-core/src/main/java/com/agentsflex/chain/LoopChain.java +++ b/agents-flex-core/src/main/java/com/agentsflex/chain/LoopChain.java @@ -57,8 +57,6 @@ public class LoopChain extends BaseChain { for (int i = currentIndex; i < nodes.size(); i++) { try { ChainNode node = nodes.get(i); - - Map result = null; try { notifyEvent(new OnNodeStartEvent(node)); diff --git a/agents-flex-core/src/main/java/com/agentsflex/chain/SequentialChain.java b/agents-flex-core/src/main/java/com/agentsflex/chain/SequentialChain.java index e0d4cd7..c888040 100644 --- a/agents-flex-core/src/main/java/com/agentsflex/chain/SequentialChain.java +++ b/agents-flex-core/src/main/java/com/agentsflex/chain/SequentialChain.java @@ -56,7 +56,6 @@ public class SequentialChain extends BaseChain { for (int i = currentIndex; i < getNodes().size(); i++) { try { ChainNode node = nodes.get(i); - Map result = null; try { notifyEvent(new OnNodeStartEvent(node));