mirror of
https://gitee.com/agents-flex/agents-flex.git
synced 2024-12-02 03:48:11 +08:00
refactor: remove InputWrapper.java
This commit is contained in:
parent
0082ffb21c
commit
3d59a0c70e
@ -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 +
|
||||
'}';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,48 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2023-2025, Agents-Flex (fuhai999@gmail.com).
|
||||
* <p>
|
||||
* 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
|
||||
* <p>
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* <p>
|
||||
* 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<Parameter> parameters;
|
||||
|
||||
public InputWrapper(AgentNode agentNode, List<Parameter> parameters) {
|
||||
this.agentNode = agentNode;
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
public AgentNode getAgentNode() {
|
||||
return agentNode;
|
||||
}
|
||||
|
||||
public void setAgentNode(AgentNode agentNode) {
|
||||
this.agentNode = agentNode;
|
||||
}
|
||||
|
||||
public List<Parameter> getParameters() {
|
||||
return parameters;
|
||||
}
|
||||
|
||||
public void setParameters(List<Parameter> parameters) {
|
||||
this.parameters = parameters;
|
||||
}
|
||||
}
|
@ -57,8 +57,6 @@ public class LoopChain extends BaseChain {
|
||||
for (int i = currentIndex; i < nodes.size(); i++) {
|
||||
try {
|
||||
ChainNode node = nodes.get(i);
|
||||
|
||||
|
||||
Map<String, Object> result = null;
|
||||
try {
|
||||
notifyEvent(new OnNodeStartEvent(node));
|
||||
|
@ -56,7 +56,6 @@ public class SequentialChain extends BaseChain {
|
||||
for (int i = currentIndex; i < getNodes().size(); i++) {
|
||||
try {
|
||||
ChainNode node = nodes.get(i);
|
||||
|
||||
Map<String, Object> result = null;
|
||||
try {
|
||||
notifyEvent(new OnNodeStartEvent(node));
|
||||
|
Loading…
Reference in New Issue
Block a user