Skip to content

Commit fff6b90

Browse files
author
Milder Hernandez Cagua
committed
Add EI_EXPOSE_REP updates
1 parent 3c0f255 commit fff6b90

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

agents/semantickernel-agents-core/src/main/java/com/microsoft/semantickernel/agents/chatcompletion/ChatCompletionAgent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.microsoft.semantickernel.services.chatcompletion.ChatCompletionService;
2020
import com.microsoft.semantickernel.services.chatcompletion.ChatHistory;
2121
import com.microsoft.semantickernel.services.chatcompletion.ChatMessageContent;
22+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2223
import reactor.core.publisher.Flux;
2324
import reactor.core.publisher.Mono;
2425

@@ -230,6 +231,7 @@ public Builder withKernel(Kernel kernel) {
230231
*
231232
* @param KernelArguments The kernel arguments to use.
232233
*/
234+
@SuppressFBWarnings("EI_EXPOSE_REP2")
233235
public Builder withKernelArguments(KernelArguments KernelArguments) {
234236
this.kernelArguments = KernelArguments;
235237
return this;

agents/semantickernel-agents-core/src/main/java/com/microsoft/semantickernel/agents/chatcompletion/ChatHistoryAgentThread.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.microsoft.semantickernel.builders.SemanticKernelBuilder;
66
import com.microsoft.semantickernel.services.chatcompletion.ChatHistory;
77
import com.microsoft.semantickernel.services.chatcompletion.ChatMessageContent;
8+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
89
import reactor.core.publisher.Mono;
910

1011
import javax.annotation.Nonnull;
@@ -35,6 +36,7 @@ public ChatHistoryAgentThread(String id, @Nullable ChatHistory chatHistory) {
3536
*
3637
* @return The chat history.
3738
*/
39+
@SuppressFBWarnings("EI_EXPOSE_REP")
3840
public ChatHistory getChatHistory() {
3941
return chatHistory;
4042
}
@@ -100,6 +102,7 @@ public Builder withId(String id) {
100102
* @param chatHistory The chat history.
101103
* @return The builder instance.
102104
*/
105+
@SuppressFBWarnings("EI_EXPOSE_REP2")
103106
public Builder withChatHistory(ChatHistory chatHistory) {
104107
this.chatHistory = chatHistory;
105108
return this;

0 commit comments

Comments
 (0)