Only this pageAll pages
Powered by GitBook
1 of 35

Gryphon AI

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

GryphonAI. Executive Summary

Gryphon AI: On-Chain Network for AI Agents

The integration of artificial intelligence (AI) with blockchain technologies presents distinct challenges and opportunities. This whitepaper explores the intricacies of AI and blockchain integration, emphasizing the development and deployment of Gryphon AI—a decentralized protocol that enables seamless connectivity between blockchain technologies and AI capabilities.

This whitepaper introduces Gryphon AI, an advanced framework designed for the integration of Large Language Models (LLMs) and AI agents within the blockchain and Web 3.0 domains. Gryphon AI enables developers to integrate their AI solutions into the Web 3.0 environment. The Gryphon AI protocol simplifies the process of developing, deploying, and monetizing AI agents by offering seamless access to both centralized and distributed AI services.

Decentralized AI Network: Developers and their agents can seamlessly access AI Services and LLMs from both centralized entities (such as OpenAI, Anthropic, etc.) and distributed networks (such as FetchAI, Bittensor, etc.) in a permissionless way through Gryphon AI node operators. These node operators act as bridges between on-chain authentication, payments, identity management, and in most cases, centrally hosted AI services.

Identity Management and Reputation Systems: Gryphon AI integrates a decentralized identity management system that supports secure and anonymous participant verification, enabling trust and traceability within its network. This system, coupled with a robust reputation system managed by blockchain, ensures the integrity and reliability of all network transactions and interactions. These systems are designed to maintain a transparent record of agent performance and service quality, facilitating trust and collaboration among developers, service providers, and users.

Blockchain-Based Payment and Access Mechanisms: Gryphon AI utilizes blockchain tokens and NFTs for accessing AI services. By providing blockchain payment railways, traditional payment barriers are circumvented, making it easier for DApps and AI agents to integrate. This approach could be complemented by tokenization and monetization of AI models, allowing for new economic models and a decentralized marketplace for AI capabilities.

Autonomous AI Agent Framework: Distinguishing itself from conventional AI models, Gryphon AI supports semi-autonomous AI agents capable of asynchronous operations within blockchain protocols. This represents a significant evolution in AI agent autonomy and functionality. This framework can be further enriched by leveraging automated smart contracts for complex decision-making, enhancing the sophistication of these AI agents in various applications. Gryphon AI builds out the tooling needed for autonomous agents to act within the blockchain context by providing frameworks and libraries for blockchain-specific tool utilization such as the capabilities of an agent to sign a message, initiate a transfer, check transaction status, etc.

Technical Architecture for Blockchain-AI Synergy: The technical architecture of Gryphon AI combines off-chain AI processing with on-chain blockchain functionalities. This dual structure supports robust and efficient AI operations while leveraging the inherent security and transparency features of blockchain technology.

Decentralized Governance and Operational Transparency: Emphasizing decentralized governance, Gryphon AI proposes a model where users participate in the governance and verification processes. This approach aims to enhance the credibility and ethical standards of AI operations in blockchain.

In summary, Gryphon AI stands as a significant technological advancement in the integration of AI with blockchain, offering solutions that are crucial for the next phase of Web 3.0 evolution. This whitepaper provides a detailed examination of Gryphon AI's technological underpinnings, applications, and its potential to transform the blockchain and AI sectors.

Gryphon AI's Solution

Gryphon AI, fundamentally a decentralized protocol, is designed to seamlessly connect blockchain technology and artificial intelligence. It serves as a foundational system not only for managing and interacting with Large Language Models (LLMs) and AI agents but also for facilitating any AI service across the spectrum.

The platform enables developers and projects to integrate advanced AI capabilities into DApps, smart contracts and agents. This integration process is designed to be seamless and straightforward, much like how businesses today interact with API platforms like OpenAI. However, Gryphon AI emphasizes decentralized, permissionless interactions, which are fundamental to the Web3 ethos.

Furthermore, the platform provides pathways for AI model developers and open-source contributors to effectively monetize their work and derivatives of their work. The platform also encourages the broader community to contribute their expertise, feedback (e.g. through reinforced learning from human feedback – RLHF), and personal data in exchange for compensation.

Gryphon AI accommodates both blockchain-native and traditional providers for computing, storage, and data services, broadening their reach to new audiences. AI agents on the network can utilize various services and protocols and generate revenue by executing tasks for other network participants.

Distinct from conventional AI systems built on centralized architectures, Gryphon AI is engineered as a distributed and permissionless system. Gryphon AI established protocols and interfaces for streamlining the integration of AI capabilities into DApps and agents.

Gryphon AI encompasses four core components:

  1. Decentralized AI Network: Gryphon AI introduces a decentralized network of independent AI Model and Service providers. These providers contribute services such as hosted LLMs, AI models, data sets, APIs, prompt libraries etc. Service providers can be companies, projects and DAOs or individuals. Each provider serves as node operator, running the Gryphon AI protocol software. Users can seamlessly access those AI services through cryptographic primitives as well as APIs.

  2. Identity Management and Reputation Systems: Gryphon AI proposes a decentralized ID Registry as well as a distributed Reputation System. The ID Registry allows network participants to register their ID and public keys for authentication and to validate messages. The reputation system is cruicial for recording and assessing the performance of node operators (Service Provider, Client Provider) and AI agents.

  3. AI Agent Framework: This framework provides creators with the necessary tools and resources to develop and deploy AI agents within the blockchain domain. It contains protocols and tool libraries required by agents to interact with blockchain functions. It establishes an environment where AI agents can autonomously execute their tasks and achieve their objectives.

Each component within Gryphon AI not only fulfills its individual role but also complements and enhances the others. This synergy creates an effective network, driving efficiency and advancing AI integration in the decentralized Web 3.0 space.

Gryphon AI aims not only at simplifying the adoption of AI in the blockchain space but also significantly enhances the overall functionality and potential of the Web3 ecosystem.

Node Architecture

The design of the Full Nodes in the Gryphon AI network is structured into three distinct layers: the Connectivity Layer, the Functional Layer, and the Core Layer. Each layer plays a critical role in the operation of the nodes, specifically designed to handle functions essential to the network's performance and to fulfill the intended purpose of the nodes. An overview of the structure of the node is depicted in the figure below.

Despite the diversity in the roles of node operators – such as Service Providers (SP), Client Providers (CP), and Guardians – the architecture across all full nodes is identical. Role specific requirements are implemented in dedicated modules within the Functional and Core layers.

Network Participants and Contributors

The Gryphon AI network thrives on the diverse roles and contributions of its participants. The ecosystem is broadly categorized into Network Participants, who are integral to the network's daily operation and utilization, and Key Contributors, who play a crucial role in supporting and enhancing the network's capabilities.

The Integration Challenge of AI in Blockchain and Web 3.0

The integration of artificial intelligence (AI) with blockchain technology presents distinct challenges that are pivotal to the evolution of Web 3.0. This section delves into the key issues that currently hinder the seamless incorporation of AI within the blockchain ecosystem.

Complexities in Integrating AI with Decentralized Applications (DApps)

Integrating AI with decentralized applications (DApps) presents considerable challenges due to the inherent differences between traditional AI frameworks and the decentralized nature of blockchain technology. This section draws on the insights of Chu et al., who explore the potential of blockchain to address these integration challenges. The lack of standardized protocols for AI and DApp interaction results in inefficiencies and limits the potential benefits of AI in enhancing DApp functionalities and user experiences. The need for a unified framework to facilitate AI and DApp communication is highlighted as a crucial step towards overcoming these challenges and achieving seamless AI integration across various blockchain platforms.

Domain-Specific Limitations of General AI Models

The adaptability of general AI models to broad applications contrasts with their limitations in specialized domains such as blockchain and cryptocurrency. Ferrag et al. have identified that these models often fail to grasp the intricacies of blockchain technology, leading to suboptimal performance when applied to blockchain-specific tasks. This underscores the importance of developing AI models that are fine-tuned to the unique requirements of the blockchain domain, capable of addressing its specific challenges and leveraging its opportunities effectively.

Shortcomings in Autonomous AI Agent Frameworks

Existing AI agent frameworks fall short of supporting the level of autonomy and asynchronous operation necessary for the dynamic environment of blockchain. Fernández-Becerra et al. point out that current frameworks rely heavily on manual triggers and lack the capability for independent operation, a critical limitation that impedes the potential of AI agents in blockchain applications. Enhancing the autonomy and decision-making capabilities of AI agents is identified as essential for improving their efficiency and effectiveness within the blockchain ecosystem.

Trust and Transparency in AI Operations

In the context of blockchain, where transparency is a fundamental value, the opaque nature of AI operations in model training and decision-making processes raises significant trust concerns. Hawlitschek et al. emphasize the need for transparency in AI operations to build trust and credibility, especially in blockchain applications where integrity and security are paramount. Bridging the cultural and technical gap between the AI community, which often focuses on performance, and the blockchain community, which prioritizes transparency and decentralization, is presented as a critical challenge to be addressed.

Centralized Governance in AI Model Development

The prevailing centralized approach to AI model development stands in contrast to the decentralized ethos of blockchain, leading to potential biases and a disconnect in representing the broader community's interests. O'Leary discusses the risks associated with centralized AI governance, including ethical concerns, censorship, and a misalignment between AI development and user needs. Advocating for a more decentralized governance model is highlighted as crucial for aligning AI development with the principles of blockchain and ensuring a more equitable and inclusive decision-making process.

Sustaining Open-Source Innovation in AI

The AI open-source community consists of skilled individuals and small teams worldwide contributing to platforms like GitHub, Hugging Face, and arXiv. Their work is pivotal in developing AI models, which are often utilized by tech giants and enterprises without compensating the original creators. This leads to two major issues: lack of direct rewards for innovators and a trend of these developers moving to large corporations for financial stability, thereby draining the open-source talent pool. Addressing this imbalance is crucial for maintaining a diverse, innovative, and decentralized AI development environment.

Addressing these challenges is essential for the successful integration of AI in the blockchain and Web 3.0 domains. A solution that can navigate these complexities will not only enhance the capabilities of blockchain applications but also contribute significantly to the advancement of Web 3.0 technologies.

Service Providers (SPs)

SP are individuals, projects, or companies that offer AI services, including middleware services, data sets, libraries, computation, and storage solutions. They might provide a single services or complete orchestration pipelines. SPs typically operate on a pay-as-you-go or subscription basis.

A SP may choose to run their own AI services, for example provide inference on their own model. But they can also choose to act as intermediaries for third-party APIs (such as OpenAI, Anthropic, etc.). SPs are also responsible for running the Gryphon AI software and operating a Full Node.

AI Agent Framework

The integration of AI Agents with blockchain capabilities opens new realm of possibilities. The decentralized nature of blockchain enhances the autonomy and trustworthiness of AI Agents, allowing them to execute tasks with a higher degree of security and efficiency. In the Gryphon AI ecosystem, this translates into more reliable and transparent agent operations, from data handling to transaction execution.

Reflecting principles outlined by AI expert Andrew Ng, the table below presents the essential elements of autonomous agent systems in Gryphon AI: Planning, Reflection, Tools, and Multi-Agent Systems, all adapted for effective blockchain integration.

Gryphon AI Agent Structure

The Gryphon AI Agent framework is designed to facilitate the creation and execution of AI Agents through a combination of Agent Tasks and Tools. These components are integral to defining an Agent (Program), which represents the actual implementation of an agent instance executed within the Gryphon AI physical architecture.

Tools Framework

At the core of the AI Agent framework is the Tools Framework, a robust set of instruments grouped by domains and accessible to every AI Agent in real-time. These tools enable AI Agents to interact with the external world, including blockchain ecosystems, enhancing their capability to perform a wide range of tasks from simple computations to complex blockchain interactions.

AI Crew

For the execution of more complex tasks, AI Agents can be organized into a multi-agent group known as an AI Crew. Within this configuration, agents collaborate to accomplish a defined set of tasks through directed processes. Each AI Crew is designed to operate using "Processes," a platform entity that manages task execution by coordinating agent activities. This setup allows individual agents within the crew to function cohesively, streamlining their efforts to achieve common objectives efficiently.

Process Execution

Managing Identity Verification

In the Gryphon AI network, the verification of identities is a fundamental component ensuring the security and integrity of interactions within the ecosystem. This process uses cryptographic key pairs and is tightly integrated with network activities.

Identity verification within Gryphon AI utilizes public and private keys to authenticate and authorize network actions securely. Each participant, upon entering the network, generates a cryptographic key pair. The private key is securely stored and managed by the participant, ensuring it never transmits across the network. Conversely, the public key is registered in the decentralized ID registry, becoming part of the participant's Gryphon ID. This public key does not disclose the identity of its holder but enables other network participants to verify the authenticity of actions initiated by the holder.

When a service request, particularly for accessing an AI model, is initiated towards a Service Provider (SP), it is imperative for the SP to authenticate and authorize the request effectively. Here’s how the process unfolds:

  1. Signature Requirement: Every request sent to an SP must be cryptographically signed using the private key of a Signer. This signature ensures that the request originates from an authentic source.

Signature Verification: Upon receiving a request, the SP extracts the Signer's public key embedded in the request and verifies the request’s signature against this key. This step confirms that the request was indeed signed by the holder of the corresponding private key.

  • Identity Confirmation: After verifying the request signature, the SP consults the Gryphon distributed database to retrieve the Root Identity ID associated with the Signer. This Root Identity ID acts as a unique identifier for the user within the network.

  • Authorization and Access Control: With the verified identity, the SP can then apply any relevant authorization logic. This might include checking if the user holds a specific NFT required for access, or verifying if the user’s account balance covers the service cost. If the criteria are met, the service is provided; otherwise, access is denied.

  • Balance Adjustment: For services that involve transactional costs, the SP pre-calculates the cost of the request and matches it with the user’s outstanding balance. If sufficient, the balance is reduced accordingly to cover the cost of the executed service.

  • This procedure applies to all sensitive transactions conducted over the network. For example, SPs sign their responses to inference requests using their private keys. The recipient – whether a user or a CP – can then verify the signature against the SP's public key and confirm the associated Gryphon ID. This verification confirms that the response was indeed sent by the designated SP. Combined with a distributed reputation system that evaluates all SPs, this mechanism significantly improves the accountability of SP and trust that users place in these providers. The same applies to other entities offering their services such as CP and AI agents.

    Overview Technical Architecture

    The technical architecture of the Gryphon AI network is organized into three distinct environments, each designed to optimize specific aspects of the network's operations:

    1. On-chain Layer: This layer is dedicated to blockchain interactions and smart contract executions. It provides the backbone for secure transactions, smart contracts, and decentralized applications (DApps) and handles essential operations such identity registration & verification.

    2. Off-Chain Layer: Focused on AI, machine learning, and data computation, this layer operates independently of the blockchain to enhance processing speeds and reduce operational costs. It supports intensive computational tasks that are impractical to perform on-chain due to cost or speed limitations. This separation ensures that AI-driven analyses, model training, and data-intensive operations can proceed efficiently without overloading the blockchain.

    3. Distributed Database: Maintained by a robust network of nodes, this database stores critical operational data necessary for the day-to-day functioning of the network. It ensures that all data – from user transactions to service registry – is reliably stored and readily accessible across the network.

    Node operators serve as essential conduits linking these environments. They facilitate the seamless integration of the on-chain and off-chain layers through a peer-to-peer network that enhances the system's resilience by distributing data and eliminating single points of failure. This configuration not only safeguards the network but also optimizes the efficiency and speed of AI service delivery.

    The identity management system in Gryphon AI utilizes advanced blockchain technology and asymmetric cryptography. By employing public and private key operations, it ensures secure node communication and reliable validation of actions across the network. This system is fundamental for maintaining a secure and trustworthy environment, where each node can verify the identity and authenticity of others without compromising sensitive information.

    Originally developed on Ethereum and Solana, the Gryphon AI network benefits from Ethereum's robust smart contract capabilities and Solana's high-performance transaction processing. Ethereum's well-established platform supports a wide range of decentralized applications, making it a preferred choice for secure smart contract execution. Solana offers distinct advantages for real-time applications with its fast block times and lower transaction costs, ideal for handling micropayments and high-frequency operations within the AI network.

    Looking forward, Gryphon AI plans to expand its compatibility to include all major Layer 1 (L1) and Layer 2 (L2) blockchain solutions. This approach will further enhance the network’s flexibility and accessibility, giving AI Agents and Dapps the means to interact with any major blockchain and protocol.

    Payment Orchestration

    The Payment Orchestration Layer in Gryphon AI underpins crucial smart contract functionalities essential for managing payments, and escrow arrangements. This blockchain layer supports the autonomy of AI agents and DApps, facilitating secure and automated transactions within the network.

    Currently, Gryphon AI does not directly manage the payment processes. Instead, it leverages standard blockchain infrastructures to handle transactions. Although the Gryphon decentralized database records request logs for statistical analysis and dispute resolution, actual payments are executed directly by the network participants.

    Service Providers (SPs) and AI agents are afforded the flexibility to adopt any suitable pricing strategy or payment method. Options include:

    • Pay-as-you-go: Direct payments from end-users or Client Providers (CPs) to SPs.

    • Up-front payments: Users or CPs pay SPs in advance to create a credit balance for future services.

    • Subscription models: Users pay for ongoing access to services.

    • Escrow payments: Funds are held in escrow and released upon service delivery.

    SPs operating a Gryphon Node benefit from integrated functions that simplify ongoing balance calculations, reporting, and usage statistics. This infrastructure alleviates the need for SPs to develop complex billing systems independently. However, it remains the responsibility of SPs to accurately report client balance credits and debits across various billing scenarios.

    Future developments of the network aim to enhance payment capabilities through account abstraction, which will allow payments in any currency across different networks. Additionally, the introduction of Payment Providers (PPs) is anticipated. PPs will facilitate more sophisticated payment mechanisms, extending beyond on-chain transactions to include off-chain methods like credit card payments. These providers will also offer advanced escrow services, further securing and diversifying financial transactions within the Gryphon AI ecosystem.

    Code and Model Creators

    Code and Model creators are individuals or teams utilizing and contributing to Gryphon AI network by developing and providing code, libraries, frameworks, AI models, and machine learning algorithms. These contributions are crucial for enriching the technological stack of Gryphon AI. Besides contributing to the public good, these providers also have the opportunity to offer proprietary services to network participants, and as such monetize on their AI solutions and innovations.

    Community Contributors

    Community Contributors are individuals contributing their expertise, feedback (such as reinforced learning from human feedback - RLHF), test and rate agents and contribute personal data, often in return for compensation. They might also be involved in the training and finetuning of language models. Community Contributors may also render specialized services directly to other network participants, further enhancing the collaborative aspect of the ecosystem.

    Gryphon Nodes

    In the Gryphon AI network, each node plays an essential role as a crucial link connecting users and Client Providers (CPs) to the services they require. Full-nodes operated by active participants such as Service Providers (SPs), Client Providers (CPs), and Guardians, are crucial for the Gryphon network's operation and maintaining its P2P databases. On the other hand, light-nodes provide an accessible option for those with limited resources, enabling participation without the need for extensive infrastructure.

    Full and Light Nodes

    Gryphon AI's network is structured into multiple tiers to cater to varying use cases as well as computational and storage needs:

    • Full Nodes (Lion Client): Operated by active network participants, these nodes are integral to the network’s operation. Full nodes are operated by either SP (mandatory to operate a full-node), CP (optional to operate a full-node, can also run a light-node or SDK) or Gurdians (mandatory to operate a full-node). These nodes connect the operator to the Gryphon Network.

    • Light Nodes (Eagle Client): These nodes provide wider accessibility and are designed for participants with limited resources such as client CP, individual developers and AI agents. Optimized for lower system requirements, these nodes primarily focus on service execution. While limited in functionality, they can access the full Gryphon Network through connected full-nodes.

    The network maintains operational integrity through differentiated staking requirements for these two client types. Node operators are mandated to stake tokens, a mechanism that aligns their operational objectives with the overarching goals of the network and underscores their commitment. Moreover, the network is implementing incentive mechanisms that provide rewards to operators for hosting AI services and actively participating in the governance and maintenance of the network. This approach not only encourages sustained engagement but also fosters a collaborative and stable network.

    Network Design and Functionality

    Gryphon AI's network design and functionality draw from principles originally developed by Filecoin and later open-sourced as the libp2p project. This robust foundation enables Gryphon nodes to establish and maintain a sophisticated peer-to-peer network, enhancing connectivity and operational efficiency within the AI ecosystem. The high-level network structure is depicted in the figure below.

    The execution of tasks within an AI Crew is managed through processes, which can be visualized as a graph containing four essential components:
    • Entry Point: The initiation phase of the process.

    • Agents as Nodes: Each agent involved is represented as a node within the process graph.

    • Orchestration Logic: Directed edges, including conditional edges, represent the orchestration logic guiding the interactions and sequences of tasks among the agents.

    • End Point: The conclusion or output phase of the process.

    Service Discovery

    In the Gryphon AI network, each Service Provider (SP) or Client Provider (CP) must start by creating a Gryphon ID. This Root Identity is then utilized to register a new service through one of the Gryphon Registration Smart Contracts. The network maintains specific registries tailored for various entities: a Service Registry for SPs and CPs operating full nodes, and an Agent Registry for AI Agents. This service registration ensures that each new SP, CP, or agent is discoverable in the network and their details are securely logged on the blockchain.

    During registration, service providers and agents must provide comprehensive information about their offerings. This data includes:

    • Basic Service Information: Service name, owner / provider details, description.

    • Service Classification: Standardized tags that define the type of service, such as image processing, video processing, chatbots, or natural language processing (NLP).

    Core concepts and definitions

    This section outlines the core concepts that define AI agents in Gryphon AI, rooted in foundational principles adapted from widely recognized frameworks in artificial intelligence. “AI Agents” are digital entities with semi-autonomous capabilities, capable of executing designated tasks or services. Gryphon AI develops specialized tools and frameworks tailored for blockchain applications, aimed at augmenting the autonomy of AI Agents within the blockchain ecosystem. To guide AI agent development within Gryphon AI, the following core principles according to Amazon are applied:

    1. Sensory Perception: AI agents must be capable of sensing and perceiving their environment to gather necessary information.

    2. Informed Decision-Making: The agents should use the data obtained from their environment to make informed decisions.

    Documentation: Link to IPFS-hosted documentation on Gryphon distributed database providing further details such as marketing materials, examples of outputs, technical specifications of the model, and service level agreements (SLAs).

    Changes to the services provided necessitate that providers update their documentation in the Gryphon distributed database and submit a mutation log to the Gryphon Registration Smart Contracts. This process ensures that the information remains accurate and current. Additionally, Guardian nodes oversee and verify updates to the registry, maintaining the integrity and reliability of the system.

    Client Providers (CPs) enhance the discoverability of services by creating advanced indices of all service records. They may develop and manage Marketplace-like web applications with features for advanced searching, pinning, and tagging of services. These marketplaces are the main tool for users to browse the service and agent registry, allowing them to find, evaluate, and select services and agents that meet their requirements.

    The Gryphon AI network operates on a permissionless basis, allowing any entity to offer services, operate nodes, or deploy agents. To ensure accountability and build trust, the network assigns unique identities to participants, verifies ownership of these identities through private keys, and records their reliability in a centralized reputation system.

    Guardian nodes are central to the management of the Gryphon AI reputation system. These specialized nodes are responsible for recording and assessing the performance of service providers and AI agents, ensuring that all activities are transparent and accountable. To prevent conflicts of interest and promote impartiality, only Guardian nodes have the authority to write to the reputation system within the Gryphon database.

    Guardian nodes maintain and verify the accuracy of performance metrics, such as service availability and response times. They also aggregate reputation scores provided by network participants. In terms of dispute resolution, Guardian nodes are responsible for addressing and settling conflicts between service providers and users. They have the authority to modify reputation scores, retract negative feedback, or impose bans on Root Identities based on the outcome of their review.

    While the permissionless nature of the network prevents the physical disconnection of non-compliant operators, these operators can be excluded from the Gryphon reputation system. This exclusion acts as a deterrent, making them less visible to new users and signaling potential risks to existing users. That said, Client Providers (CPs) may establish alternative reputation systems with different standards and procedures, tailored to meet the specific needs of their services or community. These systems can vary in their emphasis on security and trust, potentially deviating from the standards set by the Gryphon reputation system.

    This approach to identity verification and the implementation of the Gryphon reputation system create a secure and reliable environment for all users and agents on the Gryphon AI network. Alongside the network's permissionless principles, this setup allows third parties, such as Client Providers (CPs), to operate their own reputation systems. This flexibility supports a censorship-resistant and open network, accommodating diverse needs and enhancing the overall ecosystem.

    Action-Oriented: Decisions must translate into actions that are executed by the agents in the blockchain environment.
  • Rationality: Actions undertaken should be rational, aiming to optimize performance and achieve the most favorable outcomes.

  • Building on these principles, Gryphon AI classifies AI agents into five distinct categories. Each category reflects a different level of capability and intelligence, catering to specific types of tasks within the blockchain framework.

    Decentralized AI Network

    Service providers (SPs) within the Gryphon AI network serve a dual role as node operators, running the Gryphon protocol software. Their primary function is to act as conduits between off-chain AI services and on-chain activities, facilitating a seamless integration of these environments. Each SP operating a node delivers specific services, which can range from providing general inference from hosted Language Models to executing complex, specialized AI orchestrated workflows.

    SPs receive service requests either directly from users or through Client Providers (CPs). These requests could involve inference tasks or other services supported by the SP. In response, SPs activate the appropriate on-chain or off-chain processes and deliver the results back to the users.

    To participate in offering services within the Gryphon AI network, an SP must operate a node. If an AI model provider or another type of service provider is unable or unwilling to run a Gryphon node, an independent SP can be established to create a bridge from the Gryphon network to the AI model provider using off-chain mechanisms.

    Beyond their primary role, SPs are also crucial in the operation and maintenance of the Gryphon network's backbone—the distributed database. By operating nodes, SPs ensure the integrity and continuity of the network, actively participating in the validation and synchronization processes.

    In addition to SP, the Gryphon AI network also incorporates full-nodes operated by Guardians. They are particularly crucial for their role in overseeing and securing network operations, including monitoring for compliance and potential malpractices within the network, ensuring that the ecosystem remains secure and trustworthy.

    Client Providers (CPs), may operate either full- or light-nodes depending on their capacity and the needs of their service offerings, facilitating accessibility and functionality for a broader user base.

    Light Nodes, optimized for lower resource requirements, enable not only CPs but also individual developers, AI agents, and smaller entities to participate actively in the network without the need for extensive infrastructure.

    Reputation System

    The Gryphon AI network operates on a permissionless basis, allowing any entity to offer services, operate nodes, or deploy agents. To ensure accountability and build trust, the network assigns unique identities to participants, verifies ownership of these identities through private keys, and records their reliability in a centralized reputation system.

    Guardian nodes are central to the management of the Gryphon AI reputation system. These specialized nodes are responsible for recording and assessing the performance of service providers and AI agents, ensuring that all activities are transparent and accountable. To prevent conflicts of interest and promote impartiality, only Guardian nodes have the authority to write to the reputation system within the Gryphon database.

    Guardian nodes maintain and verify the accuracy of performance metrics, such as service availability and response times. They also aggregate reputation scores provided by network participants. In terms of dispute resolution, Guardian nodes are responsible for addressing and settling conflicts between service providers and users. They have the authority to modify reputation scores, retract negative feedback, or impose bans on Root Identities based on the outcome of their review.

    While the permissionless nature of the network prevents the physical disconnection of non-compliant operators, these operators can be excluded from the Gryphon reputation system. This exclusion acts as a deterrent, making them less visible to new users and signaling potential risks to existing users. That said, Client Providers (CPs) may establish alternative reputation systems with different standards and procedures, tailored to meet the specific needs of their services or community. These systems can vary in their emphasis on security and trust, potentially deviating from the standards set by the Gryphon reputation system.

    This approach to identity verification and the implementation of the Gryphon reputation system create a secure and reliable environment for all users and agents on the Gryphon AI network. Alongside the network's permissionless principles, this setup allows third parties, such as Client Providers (CPs), to operate their own reputation systems. This flexibility supports a censorship-resistant and open network, accommodating diverse needs and enhancing the overall ecosystem.

    Scope of AI Services

    Gryphon AI introduces a decentralized network architecture designed to host a broad spectrum of AI services and middleware components. This network offers the requisite infrastructure for efficient and secure AI interactions within a decentralized framework.

    At the heart of the network are the AI models, surrounded by a suite of essential services required to build robust applications for end users, such as AI middleware components, data sets and libraries as well as computation and storage solutions. An overview of high-level service categories is provided in the list below.

    AI Models

    This category includes a diverse array of AI offerings such as open-source and proprietary Large Language Models (LLMs), specialized Machine Learning (ML) models, and models for image and video generation, text-to-voice conversion, etc. Additionally, it provides tailored solutions specifically designed for decentralized applications, catering to the unique needs of the blockchain environment.

    Middleware Services

    These services provide the necessary support for seamless AI operations. Key offerings include advanced data retrieval (Vector Search, Web Search), sophisticated context and prompt management, arithmetic computations capabilities, and verification tools functioning both on-chain and off-chain. This layer plays a vital role in connecting raw AI functionalities with practical, application-focused uses.

    Data Sets and Libraries

    Gryphon AI includes comprehensive data sets and libraries crucial for blockchain-centric AI applications and widespread use-case efficiency. These libraries provide standardized, blockchain-focused datasets, ensuring AI models are well-trained, finely tuned, they can also be leveraged for retrieval augmentation.

    Computation and Storage

    Gryphon AI provides flexible solutions in computation and storage, catering to diverse user cases. The platform offers access to both centralized cloud providers and decentralized, blockchain-based networks. This approach empowers users to optimize based on cost, speed, and the degree of decentralization required for their specific applications. Gryphon AI's diverse range of options ensures that users have the freedom and resources to choose the most suitable infrastructure for their needs.

    While initial prototypes for AI Services are developed by Gryphon AI, a broad ecosystem of external service providers is being established. Service providers range from large-scale enterprises and established projects to decentralized autonomous organizations (DAOs) and individual engineers. This diversity ensures a rich pool of services and capabilities.

    Providers may offer specialized services or a comprehensive suite of interconnected functionalities, enabling users to tailor their AI solutions. For instance, users might combine blockchain-specific data and processing services from Gryphon AI with their own LLMs or those from external providers, creating a customized AI solution that best fits their needs.

    This ecosystem is not just about service consumption; entities within Gryphon AI can also contribute and offer services, fostering a collaborative and synergistic environment. This dual role enhances the network's dynamics, encouraging innovation and continuous improvement of services.

    Looking ahead, Gryphon AI envisions an expansive marketplace where third-party DApps and AI Agents can be built upon and interact with this foundational network. These entities will have the capability to communicate and collaborate directly, fostering a dynamic environment where collective goals can be achieved more efficiently.

    Connectivity Layer

    The Connectivity Layer is primarily responsible for the node’s communications, managing both incoming and outgoing messages, such as user inference requests and the signing of response messages. This layer includes adapters that connect to the Gryphon P2P Network, various blockchains, and traditional web APIs, thus facilitating seamless interaction across different platforms.

    User requests can originate from Smart Contracts or Web APIs, and in both scenarios, these adapters function as intermediaries. They handle on-chain verification of messages, payments, and access rights and are also utilized to call off-chain AI services and other functions, ensuring comprehensive connectivity and functionality within the network.

    Peer-to-Peer Network Operations

    The Gryphon AI network employs the libp2p framework to establish a robust peer-to-peer network integral to its operations. This design is crucial for ensuring seamless connectivity among nodes, which is vital for the efficient and secure functioning of the entire system. These capabilities support the network's critical functionalities, are detailed in the list below.

    Network Connectivity

    Gryphon nodes create an internal peer-to-peer network over the Web, facilitating seamless communication and data exchange.

    Node Discovery

    Nodes can identify nearby peers, including those operated by specific service providers or those with traits such as Guardian nodes, ensuring efficient connectivity with relevant entities.

    Gryphon SDK Integration

    The Gryphon SDK allows both internal and third-party applications, like Gryphon Clients and Marketplaces, to connect to the network, expanding the functionalities of Gryphon AI to a wider application range.

    Communication

    Nodes can send and receive requests to and from other nodes, enhancing inter-node communication and coordination within the network.

    Functional Layer

    The Functional Layer serves as the command center for fulfilling role-specific use cases. Central to this layer is the Role Orchestration Subsystem, which contains specialized business logic for each role – SP, CP, and Guardian. Functions managed here include account or service registration, user balance management, and request handling.

    Additionally, the Functional Layer houses the Identity Manager, which acts as a node-local denormalized database for efficient verification of service, client, and user identities. This setup streamlines the verification process while retaining the ability to reference original data sources in the Gryphon P2B Network and blockchain.

    The Node Identity Key Vault within this layer securely stores node credentials, enabling each node to maintain a unique and verifiable identity within the network by signing messages with its registered private key.

    The Eagle Server, an integral module of the full-nodes (Lion Client) enables light-nodes (Eagle Clients) to connect to the broader Giffin network through the full-node. It acts as bridge, allowing light-nodes to effectively access full network data and services.

    Data Handling and System Integrity

    While the peer-to-peer network is pivotal for the internal functioning and integrity of the system, actual data requests between users and AI models typically occur over standard networks. This approach has been chosen to ensure data concealment and optimization of network performance.

    Service providers may define custom API endpoints and advertise these over the Gryphon service registry. Clients then send their requests directly to these endpoints. Meanwhile, crucial functions such as authentication, authorization, usage tracking, and reputational assessments are managed via the peer-to-peer network and recorded in the distributed database.

    This dual-network approach not only maximizes the efficiency and security of the network but also maintains the high performance and scalability required by modern AI applications. Through this design, Gryphon AI ensures that its ecosystem supports high availability and robust service delivery while safeguarding user data and system integrity.

    Users

    Users are individuals, projects, DAOs or other organizational forms utilizing the network's AI models and services. Also, autonomous AI agents might act as users and procure services form the network. Depending on their level of sophistication and requirements, user may interact with the network through different means:

    • utilizing interfaces provided by CPs,

    • directly operate a Gryphon AI node (Full- or Light-Node via API or local application) or

    • use enterprise-level solutions that bypass the need for an active node (by pre-obtaining a secret directly from SP).

    AI Agents

    AI Agents in the Gryphon AI network are semi-autonomous digital entities, capable of executing specific tasks or services with a degree of independence and adaptability. An AI agent typically possesses a sophisticated planning function, enabling it to strategize and make decisions based on its objectives and the data it encounters. The agents hosted on Gryphon AI network are different from the Agents provided via centralized Web2 platforms such as OpenAI, in the way that they are Web3 or smart contract enabled. This means they are equipped with a suite of tools and capabilities, such as a cryptocurrency wallet for transactions, data analysis utilities, and communication protocols. These tools allow the agent to interact effectively within the Gryphon AI ecosystem and the broader blockchain environment.

    AI Agents within Gryphon AI serve not only as users of the network, accessing and utilizing various services – but also as contributors, offering their unique services to other users.

    Client Providers (CPs)

    CPs are apps that provide accessible user interfaces, so their users don’t have to trigger API endpoints. Those apps can be both, either Web2 applications or Web3 / DApps. CPs play an important role in making Gryphon AI accessible to a broad user base. Next to enabling their application and their user base to access AI Services, they may extend their offering to include account management and payment collection.

    Client Provider might offer their users complimentary access to their services to increase the value proposition of their solution – or they might choose to charge their clients fees.

    Moreover, CPs may choose to contribute to the maintenance and stability of the Gryphon AI network by operating a Node, otherwise they can integrate utilizing the Gryphon SDK.

    Blockchain Specific Toolsets and Frameworks

    Gryphon AI is dedicated to filling a significant gap in the AI agent market by developing frameworks tailored specifically for blockchain environments. While existing AI agent frameworks like OpenAI Assistants, AutoGen , CrewAI, Langgraph provide broad capabilities, they typically do not cater to the unique demands of blockchain applications. Gryphon AI addresses this by enhancing the autonomy and functionality of AI Agents and Decentralized Applications (DApps) through specialized blockchain integration.

    Integration with Blockchain Technology

    The blockchain layer of Gryphon AI is crucial for integrating AI agents with blockchain technology, focusing on enabling autonomous operations that are essential for DApps. This layer incorporates advanced smart contract capabilities which allow AI agents to autonomously execute transactions, such as acquiring data or accessing services from Large Language Models (LLMs) within Gryphon AI. Essential functions like payment processing, account abstraction, and escrow account management are also integrated, facilitating the smooth operation of AI agents within the blockchain space.

    Smart Contract Capabilities

    The initial implementation of this blockchain integration layer establishes the foundation for AI agents and DAOs to interact seamlessly within the blockchain environment. The smart contracts central to this layer are designed to support a variety of blockchain interactions, enabling both autonomous and semi-autonomous behaviors. These contracts are crucial for initiating and executing service requests by on-chain entities, ensuring that AI agents operate effectively and securely within the blockchain framework.

    Oracle Integration

    Gryphon AI is actively working on integrating leading oracle protocols to broaden the operational scope of its network. These oracles enable the importation of real-time data feeds and facilitate interactions with external systems, crucial for AI agents and DApps to make informed decisions based on up-to-date, real-world information. This integration enhances the ability of AI agents to automate processes and respond dynamically to changes in their operating environment.

    Looking ahead, Gryphon AI plans to broaden the application of smart contracts within its network. This expansion is expected to cover all major network activities, moving beyond basic functionalities like payments and oracle integration. The development will encompass service agreements, execution, and payment processes, representing a substantial advancement in the network's operational autonomy and efficiency.

    Distributed Database

    The Gryphon AI network utilizes a Distributed Database to store essential service data crucial for network functionality. This database is publicly visible and decentralized, ensuring transparency and accessibility while maintaining security through consistency protocols.

    The integrity of the Distributed Database relies on asymmetric cryptography, a method of encryption that uses a pair of keys (public and private) for secure data transmission and is further supported by the Gryphon Identity Management system. Each record within the database is cryptographically signed by the issuer using this key pair, making the signature an integral part of the record itself. This approach ensures that each signature can be reliably verified and directly correlated with a specific identity within the Gryphon network.

    The consistency of the Distributed Database within the Gryphon AI network is maintained through a series of stringent requirements. These requirements are crucial for ensuring that all data transactions within the network are secure, traceable, and aligned with network policies. The table below summarizes the key consistency requirements.

    To maintain database consistency, nodes within the Gryphon AI network are interconnected, enabling them to share new records either via a pull or push mechanism. Each node can independently verify each new record, thus safeguarding the database against false information. Additionally, each Gryphon node implements a robust firewall mechanism designed to detect and manage misbehaving counterparts. This system is crucial for identifying and isolating any nodes that display abnormal or malicious behavior, ensuring the integrity of the network.

    Guardian Nodes play a pivotal role in enhancing network security. While all nodes can verify records, Guardian Nodes specialize in monitoring the network to detect misbehavior. These nodes work collaboratively to take decisive actions against problematic nodes, including taking them offline, slashing a portion of their staked tokens, downgrading nodes in the reputation system and issuing warnings.

    This distributed security and consistency approach reinforces the database's safety and embodies the decentralized ethos of the Gryphon AI network. By ensuring robust network security and reliable database management, Gryphon AI enhances system reliability and fosters greater user trust.

    Distributed Agent Builder

    The central element of the Gryphon AI Agent framework is its Agent Builder, comprising a suite of programming and user interface (UI) components designed to streamline key functionalities related to AI Agents. These functionalities encompass a broad range of tasks, including agent creation, deployments, monetization, and more. The Gryphon Agent Builder serves as a comprehensive toolkit, empowering users to efficiently construct, deploy, and manage AI Agents across various applications and environments.

    One integral part of this framework is the Gryphon Agent Wizard, which serves as an intuitive interface for agent builders to create and customize their own AI Agents according to customer segment requirements they cater to. Gryphon Agent Wizard consists of a series of user-friendly web forms, crafted to elicit relevant information from agent builders through a structured questionnaire. These forms prompt builders to provide input on various aspects of the required AI Agent's functionality, behavior, and deployment preferences. By guiding builders through a series of questions and options, Gryphon Agent Wizard simplifies the agent creation process, ensuring that key parameters are defined accurately and efficiently. With its user-centric design and interactive interface, Gryphon Agent Wizard makes the process of building AI Agents accessible and approachable, even for users with limited technical expertise.

    Building on top of the Gryphon AI ecosystem, these agents can choose from and access all AI services connected to SP nodes. Utilizing the Gryphon ID, authentication methods, and on-chain payments for seamless integration, AI Agents can leverage the full spectrum of capabilities offered by the Gryphon AI ecosystem. Moreover, utilizing the Gryphon AI agent structure as a framework and leveraging blockchain-specific tools through simple drag-and-drop functionality or injecting custom code allows builders to tailor their AI Agents to meet specific requirements with ease.

    This seamless integration of Gryphon Agent Builder with the Gryphon AI ecosystem and blockchain technology ensures a robust, flexible, and user-friendly platform for building and deploying AI-powered solutions. Also, users can inject custom Python code to extend Agent capabilities, enabling them to incorporate bespoke functionality and algorithms into their AI Agents.

    Gryphon Identity Management and Reputation System

    Gryphon AI introduces a decentralized ID Registry alongside a distributed Reputation System to enhance security and trust within the network. The ID Registry allows network participants to register their IDs and public keys, which facilitates authentication and message validation. Each participant obtains a Gryphon ID that is managed through their private keys, maintaining control and ownership over their identity. Importantly, the Gryphon ID system does not collect actual personal identities; it simply verifies that the user possesses the private key corresponding to the public key listed in the registry.

    The decentralized reputation system assesses the credibility and performance of network participants. Managed by Guardian Nodes, this system evaluates the conduct and reliability of node operators such as Service Providers (SPs), Client Providers (CPs), and AI agents. With many AI services operating off-chain due to computational and storage demands, this reputation system becomes essential for establishing trust. It maintains transparency and reliability by securing tamper-proof records of all activities performed by network participants, ensuring a secure and trustworthy environment within the network.

    Decentralized ID Registry

    The ID Registry is designed with the principle that every network participant must possess a single, stable, and verifiable identity that they fully own. To ensure security and authenticity, the Gryphon ID is managed and secured on-chain using smart contracts, which provide a robust framework for identity verification and management.

    In the Gryphon Ecosystem, identity serves several critical functions as outline below:

    • Billing and Payments: Identity is crucial for managing billing, payments, and the remaining balances of users.

    • Access and Services: It allows for personalized model access and the application of flexible terms of service between SP and user.

    • State Maintenance: Identity helps maintain per-user states, such as conversation logs for chatbots in specific conversations.

    • Counterparty Identification: It is used to identify counterparties in the network, such as Service Providers (SPs), Client Providers (CPs), and AI Agents, and validate the authenticity of their messages.

    • Rating and Reputation: The system helps ascertain who exactly posted a specific rating, enabling the validation of their background and history with the service in question.

    Trust Guardians

    Trust Guardians oversee the entire network and monitor that all nodes operate within set standards and within their Service Level Agreements (SLAs). They continually assess the availability and performance of Service Providers (SPs) and Client Providers (CPs), and record performance metrics and deviations to the reputation system. The reputation system is maintained by all Trust Guardians operating dedicated Guardian Nodes. The data is stored in a distributed database accessible to any network participant and the broad public.

    Core Layer

    The Core Layer includes functionalities required for active participation in the Gryphon P2P Network. It features a Distributed Database that maintains internal synchronization over the Gryphon Network using a consensus-less zero-trust mechanism. This mechanism leverages cryptographic signatures derived from primary records stored on the primary blockchain.

    The Synchronizer module is responsible for polling other nodes over the Gryphon network, downloading newly appeared records, verifying them, and integrating them into the main storage. It also manages the periodic cleanup of outdated or irrelevant records from the database.

    The Validator module handles record validation, untangling chains of signer records, consulting the underlying blockchain, and ensuring compliance with business rules.

    The Node Cluster Manager supports high availability by managing multiple instances of nodes that serve a single purpose. This manager identifies such nodes and builds relationships between them to synchronize processes across nodes of the same vendor and purpose.

    The Blockchain Abstraction Module defines common operations abstracted from specific blockchain implementations, facilitating the execution of blockchain-agnostic strategies.

    The Local Node Cache and the Request Filter act as enhancements to network efficiency and security. The cache supports intelligent caching to manage throughput and latency, while the Request Filter functions similarly to a firewall in the P2P environment, managing traffic from potentially misbehaving or overactive nodes.

    Lastly, the Node Availability Manager is dedicated to self-monitoring, performance, and status reporting, and it implements business processes for entering maintenance mode gracefully.