public class RailBot {
private final EventChatV2 ec;
private String context;
public RailBot(int limit) {
ec = new EventChatV2(limit);
}
public RailBot() {
this(5);
}
public void setContext(String context) {
if (context.isEmpty()) {...
public class RailBot {
private final EventChatV2 ec;
private String context;
public RailBot(int limit) {
ec = new EventChatV2(limit);
}
public RailBot() {
ec = new EventChatV2(5);
}
public void setContext(String context) {
if...
:s36:pathfinders aren't good for small talk because they would funnel inputs to dead ends in convos.
pathfinders rely on the environment being static, while convos are pretty much like an exchange of real-world twits
1 a-b a-c a-a(a-a must be filtered)
2 a-n a-g a-r
would an Eliza replacer be an overkill
shit aaaaaAAAAAAAAAAAAAAAAAAAAAAAAAASSSSSSsssssssssss
shit asss shouryuken shit asses asss asss asasasasasasas asssed asses of FURY!!!
def initialize_babble2(self) -> None:
# Adding phrase matchers for various patterns and responses to enhance conversation logic
# Description
self.add_phrase_matcher(
r"(.*) is (.*)",
"what is {0}", "{0} is {1}",
"explain {0}", "{0} is {1}"
)
#...
class ElizaDBWrapper {
// this (function wrapper) class adds save load functionality to the ElizaDeducer Object
/*
ElizaDeducer ed = new ElizaDeducerInitializer(2);
ed.getEc2().addFromDB("test","one_two_three"); // manual load for testing
Kokoro k = new Kokoro(new...
class ElizaDeducerInitializer: ElizaDeducer {
init(lim: Int) {
// recommended lim = 5; it's the limit of responses per key in the eventchat dictionary
// the purpose of the lim is to make saving and loading data easier
super.init(lim: lim)
initializeBabble2()...
class ElizaDeducer {
/*
* this class populates a special chat dictionary
* based on the matches added via its addPhraseMatcher function
* see subclass ElizaDeducerInitializer for example:
* ElizaDeducer ed = new ElizaDeducerInitializer(2); // 2 = limit of replies per input...
class LimUniqueResponder {
private var responses: [String] = []
private var urg: UniqueRandomGenerator
private let lim: Int
// Constructor
init(lim: Int) {
self.lim = lim
self.urg = UniqueRandomGenerator(range: 0)
}
// Method to get a response...
public class ElizaDBWrapper
{
// This (function wrapper) class adds save/load functionality to the ElizaDeducer Object.
// Example usage:
// var ed = new ElizaDeducerInitializer(2);
// ed.GetEc2().AddFromDB("test", "one_two_three"); // Manual load for testing
// var k = new...