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.model.chat.tool;
017
018import java.io.Serializable;
019
020public abstract class BaseTool implements Tool, Serializable {
021
022    protected String name;
023    protected String description;
024    protected Parameter[] parameters;
025
026    @Override
027    public String getName() {
028        return name;
029    }
030
031    public void setName(String name) {
032        this.name = name;
033    }
034
035    @Override
036    public String getDescription() {
037        return description;
038    }
039
040    public void setDescription(String description) {
041        this.description = description;
042    }
043
044    @Override
045    public Parameter[] getParameters() {
046        return parameters;
047    }
048
049    public void setParameters(Parameter[] parameters) {
050        this.parameters = parameters;
051    }
052}