AI & research · One purpose, multiple implementations
Dynamically switch between LLMs Template
Adapt the published “Dynamically switch between LLMs Template” workflow to other implementations while preserving its documented behavior.
The source contains 15 executable nodes and 15 connections. This draft is derived from the n8n export; it needs a human-reviewed purpose, input/output contract, and behavioral tests before a port can claim equivalence.
Open agent files on GitHub ↗Shared workflow
This initial Mermaid diagram shows observed connections from the n8n source, including model and tool dependencies. Unresolved connections are listed under Evidence. It is a starting point for the shared design; it does not execute the agent or establish correctness.
Rendering the workflow diagram…
Read the Mermaid source
flowchart LR n0["When chat message received"] n1["Switch Model"] n2["Set LLM index"] n3["Increase LLM index"] n4["No Operation, do nothing"] n5["Check for expected error"] n6["Loop finished without results"] n7["Unexpected error"] n8["Return result"] n9["OpenAI 4o-mini"] n10["OpenAI 4o"] n11["OpenAI o1"] n12["OpenAI Chat Model"] n13["Validate response"] n14["Generate response"] n10 -->|"ai_languageModel out 0 to in 0"| n1 n11 -->|"ai_languageModel out 0 to in 0"| n1 n1 -->|"ai_languageModel out 0 to in 0"| n14 n2 -->|"main out 0 to in 0"| n14 n9 -->|"ai_languageModel out 0 to in 0"| n1 n14 -->|"main out 0 to in 0"| n13 n14 -->|"main out 1 to in 0"| n5 n12 -->|"ai_languageModel out 0 to in 0"| n13 n13 -->|"main out 0 to in 0"| n8 n13 -->|"main out 1 to in 0"| n3 n3 -->|"main out 0 to in 0"| n4 n5 -->|"main out 0 to in 0"| n6 n5 -->|"main out 1 to in 0"| n7 n4 -->|"main out 0 to in 0"| n2 n0 -->|"main out 0 to in 0"| n2
Implementations
Each implementation shares the agent’s purpose. Available source, planned ports, and verified results are labeled separately.
n8n
Source available · not runtime-tested
Read setup and source ↗Inspect the n8n canvas and download JSON →Build or operate with an assistant
Each prompt includes separate build and operating instructions tailored to this agent. They are untested instructions, not working implementations. Check the chosen product’s actual capabilities before using it.
Evidence and remaining work
The bulk collection has publication checks, not live-service testing. Diagrams and prompts are documentation. A port needs reviewed schemas, fixtures, actual execution results, and explicit limits before claiming equivalent behavior.
- Define input/output schemas and expected outputs.
- Review source expressions, external actions, and failure behavior.
- Determine whether model judgment is required or deterministic rules suffice.
Curated by Nik Bear Brown. Preserve each implementation’s original attribution and license. These source templates are separate from the audited Claude directory.