跳到主要内容

Core Concepts

Agents

An Agent is an AI-powered assistant configured with a specific purpose, system prompt, LLM provider, and connected tools. NPO supports two types:

  • Single Agent: A standalone agent that operates independently with its own LLM, tools, and skills.
  • Deep Agent: A multi-agent architecture with a Main Agent that delegates tasks to one or more Sub-Agents, each with their own LLM, tools, and skills.

MCP Servers

MCP (Model Context Protocol) Servers provide tools that agents can use to interact with external systems and APIs. MCP Servers can be:

  • Internal: Managed within the NPO platform.
  • External: Connected from third-party services (e.g., Notion, AWS, DuckDuckGo Search).

Skills

Skills are reusable instruction sets (defined in SKILL.md files) that standardize agent behavior. Skills can include workflow definitions, tool usage patterns, and domain-specific knowledge. They are managed through the Skill Registry and can be shared across agents and teams.

Middleware

Middleware layers add processing controls to agent interactions:

  • Human in the Loop: Requires human approval before executing specific tools — with options to Approve, Edit, or Reject tool calls.
  • PII Protection: Automatically detects and redacts sensitive data (emails, credit cards, IPs, MAC addresses, URLs) in inputs, outputs, and tool results.
  • Summarization: Condenses conversation history using LangChain to manage context window limits while preserving important information.

Knowledge DB

Knowledge Databases allow agents to reference uploaded documents (PDF, XLSX, CSV, PPTX) for domain-specific knowledge during conversations.

Object Dependency Summary

ObjectUsed By / Depends On
LLM ProviderAgent LLM Node, Summarization LLM
ModelAgent LLM Node (Default Model), Summarization (Default Model)
API Key (LLM_PROVIDER)Agent LLM Node, Summarization LLM
API Key (BACKEND_SERVER)Backend Server authentication
Kubernetes ClusterMCP Instance provisioning, Agent deployment
Backend ServerMCP Profile (registered as backend)
MCP ProfileMCP Instance (provisioned from profile)
OAuth CredentialsMCP Profile authentication, Playground Connector auth
Tools (API Endpoints)MCP Profile → Agent (exposed as callable tools)
MCP InstanceAgent (provides tools), Human in the Loop (per-tool rules)
External MCPAgent (provides tools via MCP Registry)
Provisioning SpecMCP Instance (Replicas, CPU, Memory, Affinity, Tolerations)
Network SpecMCP Instance (ClusterIP/NodePort, Ingress, TLS)
SkillAgent (attached as modular instruction set)
SKILL.mdSkill (defines behavior and workflow)
Skill FilesSkill (Scripts, References, Assets)
Skill VersionSkill (pinned version used by agents)
TriggerAgent (entry point: Chatbot, Webhook, Scheduler)
Chat MemoryAgent (conversation persistence via PostgreSQL)
UserGroup (membership), Role (assignment), Skill (sharing), Agent (sharing)
GroupUser (contains members), Role (assignment), Skill (sharing), Agent (sharing)
RoleUser (access control), Group (access control)
Human in the LoopAgent Middleware → Tool Permission Rules per MCP Server
PII ProtectionAgent Middleware → scans Input, Output, Tool Results
SummarizationAgent Middleware → uses its own LLM + API Key
PlaygroundAgent (testing), Connectors (MCP auth), Skills (validation)
Published AgentNPO Workspace Chat Interface
Conversation HistoryNPO Workspace (stored per chat session)
Theme / ColorNPO Studio UI personalization