Skip to content

Commit ae91765

Browse files
author
Milder Hernandez Cagua
committed
Make NEW_MESSAGES_ONLY the default for kernel agent invocation context
1 parent fff6b90 commit ae91765

File tree

1 file changed

+3
-2
lines changed
  • semantickernel-api/src/main/java/com/microsoft/semantickernel/agents

1 file changed

+3
-2
lines changed

semantickernel-api/src/main/java/com/microsoft/semantickernel/agents/KernelAgent.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ protected KernelAgent(
4242
this.name = name;
4343
this.description = description;
4444
this.kernel = kernel;
45-
this.kernelArguments = kernelArguments != null ? kernelArguments.copy() : null;
45+
this.kernelArguments = kernelArguments != null
46+
? kernelArguments.copy() : KernelArguments.builder().build();
4647
this.invocationContext = invocationContext != null
47-
? invocationContext : InvocationContext.builder().withReturnMode(InvocationReturnMode.FULL_HISTORY).build();
48+
? invocationContext : InvocationContext.builder().build();
4849
this.instructions = instructions;
4950
this.template = template;
5051
}

0 commit comments

Comments
 (0)