Annotation Interface ChatMemorySupplier
Marks a method as a supplier of chat memory that an agent can utilize during its operation.
The annotated method must be static, with no arguments, and return an instance of
ChatMemory
.
Example:
public interface SupportAgent {
@Agent("A customer support agent")
String assist(@V("customerQuery") String customerQuery);
@ChatMemorySupplier
static ChatMemory chatMemory() {
return MessageWindowChatMemory.withMaxMessages(10);
}
}