Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Add NoArgsConstructor to ChatFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoKanning committed Nov 12, 2023
1 parent fee68ba commit a356a2e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import java.util.function.Function;

@Data
@NoArgsConstructor
public class ChatFunction {

@NonNull
Expand Down Expand Up @@ -46,7 +48,8 @@ public <T> Builder executor(Class<T> requestClass, Function<T, Object> executor)
}

public ChatFunction build() {
ChatFunction chatFunction = new ChatFunction(name);
ChatFunction chatFunction = new ChatFunction();
chatFunction.setName(name);
chatFunction.setDescription(description);
chatFunction.setParametersClass(parameters);
chatFunction.setExecutor(executor);
Expand Down

0 comments on commit a356a2e

Please sign in to comment.