MCP.so
登录

npcpy

@cagostino

关于 npcpy

The python library for research and development in NLP, multimodal LLMs, Agents, ML, Knowledge Graphs, and more.

基本信息

分类

其他

许可证

MIT

运行时

python

传输方式

stdio

发布者

cagostino

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is npcpy?

npcpy is a Python library that provides key primitives for research and development with multimodal language models, agentic AI, and knowledge graphs. It supports both local providers (ollama, llama.cpp, onnx, LM Studio) and cloud providers, and enables building multi‑agent teams with a Context‑Agent‑Tool data layer that enforces compliance through software rather than prompts.

How to use npcpy?

Install with pip install npcpy. Then import the library to create NPC personas, run direct LLM calls, build agents with built‑in or custom tools, orchestrate multi‑agent debates via NPCArray, or manage knowledge graphs with sleep/dream lifecycle functions. Example code is provided for each major feature.

Key features of npcpy

  • Primitives for multimodal LLMs, agentic AI, and knowledge graphs
  • Support for local and cloud model providers
  • Multi‑agent debate and orchestration via NPCArray
  • Context‑Agent‑Tool data layer for safety compliance
  • Pre‑built agent tools: shell, Python, edit_file, web_search
  • CodingAgent for automated code execution

Use cases of npcpy

  • Build multi‑agent teams to debate and reach consensus on complex problems
  • Create persona‑based NPCs for interactive storytelling or simulations
  • Fine‑tune diffusion models with agent‑driven data collection and training
  • Simplify context engineering for large language model applications
  • Generate and execute code with the auto‑executing CodingAgent

FAQ from npcpy

What is the NPC Context-Agent-Tool data layer?

It is a framework within npcpy that structures interactions between personas (NPCs), agents, and tools to ensure compliance with directives through software rather than relying solely on prompts.

How do I install npcpy?

Run pip install npcpy in your environment.

What model providers does npcpy support?

npcpy supports local providers such as ollama, llama.cpp, onnx, and LM Studio, as well as cloud providers (e.g., ollama’s cloud models).

How do I run multi-agent debates with npcpy?

Use the NPCArray class to create a team of NPC objects, then call team.infer() with a prompt, optionally followed by chain() for iterative refinement. The README includes a full example with role‑based personas and debate rounds.

评论

其他 分类下的更多 MCP 服务器