Model Integration

PromptHub is designed with a flexible architecture that enables integration with various AI model providers and protocols. This model-agnostic approach allows PromptHub to connect with different language models through standardized interfaces, providing compatibility across the AI ecosystem.

Component
Role in Model Integration

PromptModule

Serves as the standard execution interface that exposes specific prompts as capabilities through standardized protocols. Each module defines resources that can be accessed by different AI models.

PromptCall

Implements the connection pattern between prompts and models, where PromptHub manages both requesting capabilities and maintaining connections with execution environments.

PromptSig

Extends the integration with cryptographic verification, recording signed execution logs of each prompt invocation for auditing and verification.

PromptRouter

Functions as a coordination router, connecting LLMs to the appropriate PromptModules based on context needs and capabilities.

PromptVault

Manages the registration and versioning of prompt modules, adding on-chain governance and economic layers.

PromptHub supports various model interaction standards, including but not limited to the Model Context Protocol (MCP). When integrated with MCP-compatible systems, PromptHub can function within that ecosystem, but its architecture remains independent and versatile.

The Model Context Protocol (MCP) is an open protocol standard that defines how applications provide context to large language models. It creates a consistent interface for connecting various AI models with different data sources while maintaining a uniform context framework. MCP allows for standardized communication between prompts, models, and external resources, which is essential for building reliable AI systems that can work across different model providers.

This flexible integration approach provides PromptHub with several key advantages:

  • Model flexibility: Switch between different LLM providers while using the same prompt infrastructure

  • Pre-built integrations: Access a growing ecosystem of compatible tools and data sources

  • Security best practices: Follow established patterns for securing data within your infrastructure

Together, these components allow PromptHub to create a seamless bridge between the decentralized blockchain world and various AI model interactions, making prompts truly portable and model-agnostic.

Last updated