Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 2.84 KB

File metadata and controls

73 lines (55 loc) · 2.84 KB

Agent Documentation

Contents

Architecture

Express Server
├── GraphQL API (Pothos + Prisma)
└── n8n Integration
    ├── Custom Nodes (AgentOrchestrator)
    └── Workflows (agent-factory)

Agents

  • Chat Agent — Main user interface
  • Web Search Agent — Internet search (Perplexity, authenticated users only)

Custom Nodes

Located in server/n8n/custom-nodes/:

  • AgentOrchestrator — AI agent with OpenAI SDK integration
  • ToolCallsMemory — In-memory storage for tool execution history
  • AgentWorld — Agent knowledge graph management

Workflow Factory

Located in server/n8n/workflows/agent-factory/:

  • Generates n8n workflows from TypeScript
  • hasTools flag for models without tool support
  • Nodes store with Proxy for convenient access by name (this.nodes['Node Name'])
  • Custom systemMessage via agent credentials (gitignored, allows individual tuning)

Knowledge Base (KB)

Agent's knowledge storage system with concepts and facts.

KB Tools (Chat Agent)

Located in server/n8n/workflows/agent-chat/nodes/:

  • KB/KBConcept/ — CRUD workflow factories for concepts
  • execTool/tools/KB/ — Tool node definitions for ExecTool proxy

GraphQL Queries

  • concepts / myConcepts — read concepts with optional detailedInfo for content
  • createConcept / updateConcept / deleteConcept — mutations

UI Components

Located in src/components/pages/KnowledgeBase/View/:

  • ConceptCard — concept display with nested facts
  • FactCard — fact display with participations and projections
  • ParticipationCard / ProjectionCard / SpaceCard — nested entity cards