Files
letta-code/src/tests/agent/subagent-builtins.test.ts
2026-03-11 18:39:45 -07:00

19 lines
704 B
TypeScript

import { describe, expect, test } from "bun:test";
import { getAllSubagentConfigs } from "../../agent/subagents";
describe("built-in subagents", () => {
test("includes reflection subagent in available configs", async () => {
const configs = await getAllSubagentConfigs();
expect(configs.reflection).toBeDefined();
expect(configs.reflection?.name).toBe("reflection");
});
test("parses subagent mode and defaults missing mode to stateful", async () => {
const configs = await getAllSubagentConfigs();
expect(configs.reflection?.mode).toBe("stateless");
expect(configs["general-purpose"]?.mode).toBe("stateful");
expect(configs.memory?.mode).toBe("stateful");
});
});