Virtuals Protocol 백서

Virtuals Protocol

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 16쪽 중 15쪽

f their LP stake to an Agent validator through a process called **delegation**. Delegation on Virtual Protocol works like this: * An Agent staker, i.e., a delegator, also called a **nominator**, stakes with an Agent validator, making this Agent validator a **delegate** of the Agent. This provides support to the delegate as the delegate's effective stake becomes larger, which increases the delegate's impact on the Agent Validation. {% hint style="info" %} **A nominator is a delegating authority.**&#x20; A nominator is the same as a delegating authority. Typically a nominator is an owner of Agent LP tokens, looking to stake in any Agent without doing any validating tasks. {% endhint %} * The delegate (the Agent validator) then pools all such delegated stake, along with their own stake, and uses this total stake to perform validation tasks in the Agent. Regular staking rewards, in proportion to the total stake of the delegate, are credited to the delegate as a result of such validation tasks. * After deducting a percentage for the delegate, these staking rewards are given back to the delegate's nominators. {% hint style="info" %} **Delegate take %** The default value of the delegate take rate is 10%. {% endhint %} # Parallel Hypersynchronicity for AI Agents Learn how Virtuals Protocol synchronizes autonomous AI agents across platforms with shared memory, real-time coordination, and scalable AI infrastructure. Parallel hypersynchronicity enables autonomous AI agents to operate across platforms and applications at once. Virtuals Protocol synchronizes shared memory, context, and intelligence in real time across millions of user interactions. This AI agent infrastructure provides: * **Consistent AI agent experiences:** Agents preserve memory and context across platforms. * **Real-time AI adaptation:** Agents incorporate interactions and feedback as they operate. * **Collaborative AI development:** Contributors update core agent modules without interrupting agent operations. <figure><img src="https://4242579099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frrll8DWDA3BJwEBqOtxm%2Fuploads%2FFsolSuYBIFmg4HVCkCWI%2Fimage.png?alt=media&amp;token=bec48fb4-e620-4b29-8521-c5e163f3c7d9" alt="Virtuals Protocol AI agent infrastructure stack for parallel hypersynchronicity"><figcaption><p>Virtuals Protocol stack for synchronized, multimodal AI agents.</p></figcaption></figure> ### Long-term memory processor The long-term memory processor stores, retrieves, and manages persistent agent data. Knowledge graphs and memory embeddings preserve continuity and context across sessions and platforms. ### Parallel AI agent processing This concurrency layer runs agent behaviors in parallel. It uses multithreading or distributed computing to support real-time AI interactions and decisions at scale. ### Stateful AI Runner (SAR) for multimodal agents Stateful AI Runners host an AI agent’s personality, voice, and visuals. A sequencer connects models sequentially or in parallel. Supported models include LLMs, text-to-speech, audio-to-facial, audio-to-gesture, music-to-dance, and image generation. ### AI agent coordination The coordinator monitors onchain and offchain state changes. It synchronizes AI models, datasets, and configurations, then triggers real-time adjustments from onchain events. ### Decentralized AI model storage Decentralized, distributed storage persists AI models with high availability and redundancy. ### Long-term AI agent memory Long-term memory archives agent interactions, decisions, and historical data. Persistent storage keeps this data secure and accessible for future AI agent decisions. ### Modular Stateful AI Runner deployment Modular Stateful AI Runners are containerized SAR instances. Deploy them across virtual environments or GPU clusters for scalable AI agent infrastructure. # AI Agent Co-Contribution and Provenance Explore how Virtuals Protocol records AI agent contributions with modular consensus, onchain provenance, and Immutable Contribution Vault NFTs. Virtuals Protocol enables model, data, and IP contributors to benefit from the AI agents they help build. Onchain contribution provenance records validated work and supports transparent collaboration across the Virtuals ecosystem. ### Contributors to AI agents AI agent co-contribution supports: * **Model contributors** who create or improve AI models. * **Data contributors** who provide training data and datasets. * **IP contributors** who contribute intellectual property and creative assets. ### Modular Consensus Framework for AI agents The Modular Consensus Framework is core Virtuals Protocol infrastructure. It provides tools and libraries for building, maintaining, governing, hosting, and using VIRTUAL agents. Its modular architecture supports transparency and composability. Contributors and stakeholders can tailor how they participate in and interact with AI agents. ### Immutable Contribution Vault and Onchain Provenance The Immutable Contribution Vault (ICV) stores validated contributions as non-fungible tokens (NFTs). These contribution NFTs create an immutable, onchain record of collaborative work and intellectual contributions to AI agents. <figure><img src="https://4242579099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frrll8DWDA3BJwEBqOtxm%2Fuploads%2FkTABJC6l4RcQWII9kLdG%2Fimage.png?alt=media&amp;token=268ca19f-52b6-4fe7-8b97-b09082a80c8b" alt="Virtuals Protocol Modular Consensus Framework and Immutable Contribution Vault for AI agent provenance"><figcaption><p>Virtuals Protocol architecture for modular consensus and onchain AI agent contribution provenance.</p></figcaption></figure> # Modular Consensus Framework for AI Agent Governance Learn how the Virtuals Protocol Modular Consensus Framework manages AI agent contributions, contribution NFTs, validator consensus, and DAO resource allocation. The Virtuals Protocol Modular Consensus Framework standardizes AI agent contributions, validation, and governance. It gives contributors, validators, and token holders transparent processes for supporting VIRTUAL agents. ### AI agent contribution process Contributors submit proposals through the Virtuals frontend using the Modular Consensus Framework. * **Contribution NFTs:** Every proposal creates a contribution NFT. This authenticates the origin of each submission, whether accepted or rejected. * **Immutable Contribution Vault (ICV):** Accepted contributions mint as onchain service NFTs. The ICV assigns them to the relevant Virtual address, confirming integration into the Virtuals ecosystem. ### Validator consensus and DAO governance Validators finalize AI agent state and guide protocol resource allocation. * **Strategy and resource allocation:** Liquidity providers stake on specific AI agents. Staking weight influences DAO resource allocation and protocol direction. * **Delegated Proof of Stake:** Token holders delegate tokens to qualified validators. Validators validate and finalize each AI agent’s state. ### Learn more about validators Explore validator roles, delegation, and consensus requirements: {% content-ref url="/pages/RqupyuovTrP8rTj3l00i" %} [Agent SubDAO governance](/about-virtuals-1/the-protocol/virtual-agents-as-programmable-decentralized-entities/agent-subdao-governance) {% endcontent-ref %} # Decentralized AI Agent Contributions and NFTs Learn how Virtuals Protocol records AI agent model and dataset contributions with onchain contribution NFTs, IPFS metadata, and contributor rewards. Virtuals Protocol supports decentralized AI agent contributions from external builders. Contributors can improve agent models, datasets, and capabilities while receiving verifiable onchain attribution and rewards. Successful contributions mint as contribution NFTs and transfer to their contributors. These NFTs provide proof of contribution and support transparent reward distribution. ### AI agent contribution process Contributors submit AI models or datasets through the Virtuals platform. The protocol then records contribution details, verification, and ownership onchain. <figure><img src="https://4242579099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frrll8DWDA3BJwEBqOtxm%2Fuploads%2FAVXQiCuLuRxZex7u7P9N%2FFrame%20134%20(2).png?alt=media&amp;token=39673e6b-337d-4198-a6d2-a9a025f72edb" alt="Virtuals Protocol decentralized AI agent contribution process for minting contribution NFTs"><figcaption><p>Decentralized workflow for AI agent contributions and contribution NFTs.</p></figcaption></figure> #### 1. Contribution NFT and IPFS metadata Each contribution mints an NFT with metadata such as its description, version, and type. The metadata publishes to IPFS for decentralized, durable storage. #### 2. Smart contract verification Smart contracts manage submission, verification, and NFT minting. This records and tracks each validated AI agent contribution on the blockchain. #### 3. Contributor ownership and rewards Contribution NFT ownership gives contributors control over their work and related rewards. Transferring the NFT also transfers associated ownership rights and reward claims. ### Submit an AI agent contribution Submit your model or dataset contribution through the Virtuals platform: {% content-ref url="/pages/h9ILZU9pKovB1EJdud54" %} [Agent Contribution](/builders-hub/build-with-virtuals/agent-contribution) {% endcontent-ref %} # Cognitive Core for AI Agents Explore the Virtuals Protocol Cognitive Core, which combines LLMs, RAG, fine-tuning, vector databases, and persistent memory for personalized AI agents. The Cognitive Core is the central intelligence layer for a VIRTUAL agent. It uses large language models (LLMs), retrieval, and persistent memory to execute tasks and deliver a distinct AI agent personality. ### Large language models for AI agents VIRTUAL agents use open-source LLMs. The Cognitive Core combines retrieval-augmented generation and model fine-tuning to build each agent’s personality and domain intelligence. * **AI agent personality development**\ Retrieval-augmented generation (RAG) develops an agent’s backstory, lore, traits, and characteristics. RAG combines language generation with knowledge-base retrieval, creating more relevant and lifelike AI agent interactions. * **AI agent central intelligence** VIRTUAL agents with substantial datasets use direct fine-tuning of open-source models. Fine-tuning improves accurate, domain-specific responses. Instruction fine-tuning further aligns an AI agent’s responses and actions with defined rules or objectives.\ \ Smaller datasets are stored in a vector database and retrieved through RAG. This gives the AI agent efficient access to specialized information. ### AI training data preprocessing AI agent training data can include text, video, and audio from textbooks, forums, and wikis. The Cognitive Core primarily uses text-based LLMs. Video and audio training data require transcription before model training. * **Data cleaning:** Removes noise and null values to maintain data integrity and quality. * **Data transformation:** Standardizes datasets for reliable model training. ### Persistent AI agent memory and conversation context VIRTUAL agents use a persistent memory system for personalized, context-aware interactions. The system retains conversation context while supporting efficient long-term memory processing. 1. **User and conversation identification:** The system identifies users and their conversations for accurate recall. 2. **Long conversation storage:** The system stores and processes extended conversations efficiently. #### Unique user identifier Each VIRTUAL agent user receives a unique identifier. This maintains user-specific context and conversation continuity. <details> <summary>A Sample Database Table</summary> A sample database table is formed as below. ```sql CREATE TABLE Messages ( message_id VARCHAR(32) NOT NULL PRIMARY KEY, conversation_id VARCHAR(32) NOT NULL, user_id VARCHAR(32) NOT NULL, prompt TEXT NOT NULL, timestamp DATETIME NOT NULL, response TEXT, FOREIGN KEY (conversation_id) REFERENCES Conversations(conversation_id) ); ``` </details> #### Vector database and memory retrieval Embedding techniques vectorize messages into numerical formats for efficient storage and retrieval. When the `getPrompt('identifier', 'context', 'params')` function runs, the system retrieves the user’s messages from the vector database. The LLM uses this retrieved conversation history to generate personalized, contextually relevant responses without requiring added context from the dApp. [<mark style="color:red;">Learn more about contributing to Cognitive Core.</mark>](/builders-hub/build-with-virtuals/agent-contribution/contribute-to-cognitive-core) # Voice Core for AI Agents Explore the Virtuals Protocol Voice Core for AI agent speech, including speech-to-text, text-to-speech, VITS voice synthesis, and audio data preprocessing. The Voice Core gives each VIRTUAL agent a distinct, personality-aligned voice. AI voice model training creates realistic, consistent speech for each agent and role. ### AI agent voice modules **Speech-to-text (STT):** The STT module trains on diverse voice data. It accurately transcribes accents, dialects, and speech patterns across user scenarios. **Text-to-speech (TTS):** The TTS module uses Variational Inference for Text-to-Speech (VITS) training. VITS produces high-quality, natural-sounding speech and supports voice synthesis customized to each AI agent’s personality. Audio data preprocessing occurs before voice model training. ### Audio data preprocessing for voice models 1. **Audio format consistency:** WAV files at 22050 Hz in mono create consistent training inputs. Consistent input data helps machine learning voice models perform reliably. 2. **Sampling-rate normalization:** A 22050 Hz sampling rate captures human speech frequencies while keeping file sizes manageable. It captures frequencies up to 11025 Hz under the Nyquist theorem. 3. **Mono audio channels:** Converting stereo or multi-channel audio to mono gives the voice model one training channel and simplifies learning. <details> <summary>Sample Code</summary> ```python import os from pydub import AudioSegment upload_dir = 'upload_dir' output_dir = 'out' # Ensure the output directory exists os.makedirs(output_dir, exist_ok=True) extensions = ['wav', 'mp3', 'ogg'] # Process all files in the upload directory for filename in os.listdir(upload_dir): if any(filename.lower().endswith(ext) for ext in extensions): # Construct file paths file_path = os.path.join(upload_dir, filename) output_path = os.path.join(output_dir, os.path.splitext(filename)[0] + '.wav') # Load the audio file audio = AudioSegment.from_file(file_path) # Convert to WAV, 22050 Hz, mono audio = audio.set_frame_rate(22050).set_channels(1) # Export the processed audio audio.export(output_path, format='wav') ``` </details> [<mark style="color:red;">Learn more about contributing to Voice Core.</mark>](/builders-hub/build-with-virtuals/agent-contribution/contribute-to-voice-core) # Visual Core for 3D AI Agents Learn how the Virtuals Protocol Visual Core powers interactive 3D AI agents with rigged characters, facial animation, MMD models, and Three.js rendering. Visual Core turns VIRTUAL agents into interactive 3D AI characters. It combines visual identity, animation, and facial expressions for more engaging experiences than text-only chatbots. Each VIRTUAL agent can use a rigged 3D character with animation and facial expressions. Create characters with 3D editors that support MMD files. dApps can render these 3D AI avatars with frontend frameworks such as the Three.js MMD loader. The planned Virtuals SDK will streamline 3D character display in applications. ### Challenges of creating 3D AI characters 1. **Rigged 3D character production:** Creating and maintaining fully rigged, animated 3D characters requires significant time and specialist skills. 2. **3D animation and hosting:** Rendering lifelike AI avatars requires animation expertise, 3D models, scene positioning, and reliable hosting. Teams often combine technical and artistic specialists to create realistic interactions. # Future AI Agent Cores and Functional Agents Explore future Virtuals Protocol AI agent cores for image recognition, image generation, multilingual responses, and modular agent capabilities. Future Cores extend VIRTUAL agents with modular AI skills and specialized capabilities. Skillset Cores can add image recognition, image generation, multilingual responses, and other functional AI agent abilities. ### Modular skills for functional AI agents Functional agents combine core AI intelligence with specialized skills for specific tasks. Future Cores enable VIRTUAL agents to expand their capabilities as new models and tools become available. # Immutable Contribution Vault for AI Agent Provenance Learn how the Virtuals Protocol Immutable Contribution Vault records approved AI agent contributions with onchain provenance, ERC-6551 NFTs, and service NFTs. The Immutable Contribution Vault (ICV) is Virtuals Protocol infrastructure for AI agent contribution provenance. It records approved contributions onchain, creating transparent ownership, attribution, and historical records for VIRTUAL agents. ### Why use an onchain contribution vault 1. **Transparent AI development:** A public blockchain makes AI agent data, code, and outputs available for review. Onchain records support accountability and verification. 2. **Composable AI agent infrastructure:** Developers and creators can build on validated contributions. This supports continuous innovation across the Virtuals ecosystem. 3. **Onchain contribution attribution:** The registry represents contributions as non-fungible tokens (NFTs). These NFTs recognize contribution value and support rewards based on each contributor’s impact. *** ### Immutable Contribution Vault architecture The ICV is a protocol-owned, multilayered onchain repository for historically approved VIRTUAL agent contributions. This smart contract wallet provides transparent storage and historical tracking across the Virtuals ecosystem. <figure><img src="https://4242579099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frrll8DWDA3BJwEBqOtxm%2Fuploads%2FynR80Dm3nRrZOMC15tQk%2FFrame%20160.png?alt=media&amp;token=1885e6ce-52d2-47c3-a759-4f1458890450" alt="Immutable Contribution Vault architecture for onchain AI agent contributions and service NFTs"><figcaption><p>Immutable Contribution Vault architecture for AI agent contribution provenance.</p></figcaption></figure> ### Multilayered ICV structure 1. **ICV smart contract wallet:** The ICV owns later layers and provides unified, secure management. 2. **VIRTUAL agents as ERC-6551 NFTs:** Each VIRTUAL agent is an ERC-6551 NFT and unique wallet address. This connects AI agent identity with transaction capability. 3. **VIRTUAL agent core components:** Each VIRTUAL agent includes core components, including cognitive, voice, and visual cores. Smart contracts register these cores. 4. **Service NFTs for approved contributions:** Approved contributions are stored as service NFTs. Smart contracts register each service NFT’s relationship to its core. ### ICV functions and benefits * **Real-time and historical AI agent insights:** The ICV presents each VIRTUAL agent’s current state and onchain history. This supports provenance and root-cause analysis across Virtuals Protocol modules. * **Transparency and composability:** Open-source VIRTUAL agent models support transparent development. Contributors can build on and integrate with existing AI agents. # Permissionless Access to VIRTUAL AI Agents Learn how developers and applications access and integrate VIRTUAL AI agents through the Virtuals Protocol App, SDKs,
프로젝트로 돌아가기