feat: add agent API and operational analytics
This commit is contained in:
1 parent
720ea0652a
commit
e8b730b592
65 files changed
+2650
-1214
No files matched your search
@@ -14,6 +14,7 @@ export function createTestDb(): Database.Database {
|
||||
// Disable FK for tests - we manage referential integrity manually
|
||||
db.pragma('foreign_keys = OFF');
|
||||
runMigrations(db);
|
||||
db.pragma('foreign_keys = OFF');
|
||||
return db;
|
||||
}
|
||||
|
||||
@@ -77,6 +78,7 @@ export function getTestConfig(overrides?: Partial<Config>): Config {
|
||||
strategies: {
|
||||
explorationRate: 0.2,
|
||||
minSamples: 5,
|
||||
responseWindowHours: 48,
|
||||
variants: [
|
||||
{ id: 'variant-a', weight: 1, promptOverride: 'Be direct' },
|
||||
{ id: 'variant-b', weight: 1, promptOverride: 'Be teasing' },
|
||||
@@ -86,6 +88,7 @@ export function getTestConfig(overrides?: Partial<Config>): Config {
|
||||
chatStrategies: {
|
||||
explorationRate: 0.2,
|
||||
minSamples: 5,
|
||||
responseWindowHours: 48,
|
||||
variants: [],
|
||||
...overrides?.chatStrategies,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user