Implement agent node functionality in canvas, including connection policies and UI updates. Add support for agent node type in node catalog, templates, and connection validation. Update documentation to reflect new agent capabilities and ensure proper handling of input sources. Enhance adjustment preview to include crop node. Add tests for agent connection policies.
This commit is contained in:
22
tests/lib/agent-templates.test.ts
Normal file
22
tests/lib/agent-templates.test.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { AGENT_TEMPLATES, getAgentTemplate } from "@/lib/agent-templates";
|
||||
|
||||
describe("agent templates", () => {
|
||||
it("registers the campaign distributor template", () => {
|
||||
expect(AGENT_TEMPLATES.map((template) => template.id)).toEqual([
|
||||
"campaign-distributor",
|
||||
]);
|
||||
});
|
||||
|
||||
it("exposes normalized metadata needed by the canvas node", () => {
|
||||
const template = getAgentTemplate("campaign-distributor");
|
||||
|
||||
expect(template?.name).toBe("Campaign Distributor");
|
||||
expect(template?.color).toBe("yellow");
|
||||
expect(template?.tools).toContain("WebFetch");
|
||||
expect(template?.channels).toContain("Instagram Feed");
|
||||
expect(template?.expectedInputs).toContain("Render-Node-Export");
|
||||
expect(template?.expectedOutputs).toContain("Caption-Pakete");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user