Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

1.9 KB
Raw Blame

LLM Council

An eve and Next.js demo that sends one prompt to four models in parallel, streams their answers, and asks a judge model for a concise answer with per-model agreement scores.

The council uses:

  • SpaceXAI Grok 4.7
  • Anthropic Claude Opus 5
  • OpenAI GPT-5.6 Sol
  • Moonshot AI Kimi K3
LLM council showing four model responses and a synthesized answer

Architecture

The application follows one simple flow:

prompt → four parallel council members → judge answer + agreement scores

The root eve agent delegates the same prompt to four declared subagents. Each subagent has a fixed AI Gateway model and runs in its own durable session. The Next.js client follows those child session streams so every response appears independently as it is generated.

After all four members finish, the root agent returns a concise answer and per-model agreement scores using a structured output schema. useEveAgent() calls the eve service through the shared Vercel deployment.

The main pieces are:

  • agent/instructions.md — fan-out and judging behavior
  • agent/subagents/ — the four fixed council members
  • agent/lib/schemas.ts — final answer and score schema
  • apps/web/app/council-app.tsx — submission, child streaming, and rendering

Run locally

pnpm install
pnpm dev

Run the complete Vercel service graph with:

pnpm dev:all

pnpm dev:all starts without a linked Vercel project. To use the AI Gateway models, link a project with pnpm exec eve link; that also pulls the required credentials. Open the local URL printed by Next.js.

Checks

pnpm typecheck
pnpm build