ritual-dapp-llm

Orchestrate TEEs-verified LLM inference on Ritual Chain 1979 with streaming responses.

62|56|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/ritual-foundation/ritual-dapp-skills --skill ritual-dapp-llm
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ritual-dapp-llm
Source: https://github.com/ritual-foundation/ritual-dapp-skills/tree/main/skills/ritual-dapp-llm
Command: npx skills add https://github.com/ritual-foundation/ritual-dapp-skills --skill ritual-dapp-llm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a standardized pattern to perform LLM inference on-chain for Ritual dApps using a TEEs-verified precompile, enabling streaming responses and secure off-chain conversation history integration.

Core Features & Use Cases

  • On-chain precompile interaction (0x0802) with commitment/replay settlement and streaming output.
  • Off-chain conversation history storage via GCS, HuggingFace, or Pinata, accessible to the precompile.
  • Model policy pinning and deterministic configuration for reliable agent behavior in dApps.

Quick Start

Provide a ready-to-run blueprint to deploy and query the Ritual LLM precompile for on-chain inference.

Frequently Asked Questions about ritual-dapp-llm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does on-chain LLM inference work for Ritual dApps?▼

On-chain LLM inference for Ritual dApps works by orchestrating off-chain model execution with a TEEs-verified precompile, enabling streaming responses and deterministic settlement within Ritual Chain 1979. It uses the 0x0802 precompile for commitment and replay settlement.

How do I store conversation history for on-chain AI inference?▼

You can store conversation history for on-chain AI inference off-chain using GCS, HuggingFace, or Pinata. This data is made accessible to the precompile through proper StorageRef-based convoHistory and TTL parameters.

Can I stream LLM responses directly on-chain using a precompile?▼

Yes, you can stream LLM responses directly on-chain by interacting with the 0x0000000000000000000000000000000000000802 precompile. This precompile manages commitment and replay settlement for interactive dApps.

Does Ritual Chain 1979 support deterministic model configuration for agents?▼

Yes, Ritual Chain 1979 supports deterministic agent behavior through model policy pinning. It requires pinning the zai-org/GLM-4.7-FP8 model and configuring proper model-ABI parameters for reliable execution.

What is the best way to deploy an interactive dApp with on-chain AI inference?▼

The best way to deploy an interactive dApp with on-chain AI inference is to use a standardized pattern that queries the Ritual LLM precompile. This involves pinning the model policy and configuring StorageRef-based history for secure settlement.

Why do I need a TEEs-verified precompile for on-chain LLM execution?▼

You need a TEEs-verified precompile for on-chain LLM execution to ensure secure off-chain model processing and deterministic settlement. This guarantees reliable agent behavior and verifiable computation within dApps.