Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
*.js.map
5 changes: 3 additions & 2 deletions examples/landlord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// ============================================================

import { ModelMogul } from "../src";
import type { LandlordAlert, InterrogationResult } from "../src/landlord";

// ── Setup with Landlord enabled ───────────────────────────────

Expand All @@ -20,7 +21,7 @@ const mogul = new ModelMogul({
enabled: true,

// Alert callback — wire to Slack/Discord/PagerDuty etc.
alertCallback: async (alert) => {
alertCallback: async (alert: LandlordAlert) => {
const icon = { notice: "👀", warning: "⚠️", eviction: "🚨", outrage: "🔴" }[alert.severity];
console.log(`\n${icon} ALERT [${alert.severity.toUpperCase()}] ${alert.agentId}`);
console.log(` ${alert.message}`);
Expand All @@ -31,7 +32,7 @@ const mogul = new ModelMogul({
},

// Interrogation callback — inject into your agent's next prompt
interrogateCallback: async (interrogation) => {
interrogateCallback: async (interrogation: InterrogationResult) => {
console.log(`\n🎩 Baron is interrogating ${interrogation.agentId}:`);
console.log(` "${interrogation.question}"`);
console.log(`\n [Inject into agent]:\n ${interrogation.expectedResponsePrompt}`);
Expand Down
2 changes: 1 addition & 1 deletion models/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const LOCAL_PORTFOLIO: ModelSpec[] = [
vramGb: 10,
},
{
id: "devstral-small",
id: "devstral-small-local",
name: "Devstral Small (local)",
provider: "local",
baseUrl: "http://localhost:8080/v1",
Expand Down
Loading