001/* 002 * Copyright (c) 2023-2026, Agents-Flex (fuhai999@gmail.com). 003 * <p> 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * <p> 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * <p> 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package com.agentsflex.core.agent.react; 017 018public class ReActStep { 019 020 private String thought; 021 private String action; 022 private String actionInput; 023 024 public ReActStep() { 025 } 026 027 public ReActStep(String thought, String action, String actionInput) { 028 this.thought = thought; 029 this.action = action; 030 this.actionInput = actionInput; 031 } 032 033 public String getThought() { 034 return thought; 035 } 036 037 public void setThought(String thought) { 038 this.thought = thought; 039 } 040 041 public String getAction() { 042 return action; 043 } 044 045 public void setAction(String action) { 046 this.action = action; 047 } 048 049 public String getActionInput() { 050 return actionInput; 051 } 052 053 public void setActionInput(String actionInput) { 054 this.actionInput = actionInput; 055 } 056 057 058 @Override 059 public String toString() { 060 return "ReActStep{" + 061 "thought='" + thought + '\'' + 062 ", action='" + action + '\'' + 063 ", actionInput='" + actionInput + '\'' + 064 '}'; 065 } 066}