xNomad AI
ภาษาไทย
ภาษาไทย
  • บทนำ
  • ทําไมต้อง AI-NFT?
  • AI-NFT ทํางานอย่างไร?
  • Metadata ของ AI-NFT
  • Github
  • X
Powered by GitBook
On this page
  • AI Engine ที่รองรับ
  • AI-NFT Metadata JSON
  • ตัวอย่าง

Was this helpful?

Metadata ของ AI-NFT

การสร้าง AI-NFT นั้นคล้ายกับการสร้าง NFT แบบดั้งเดิม โดยมีฟิลด์เพิ่มเติม ai_agent ที่อธิบายการตั้งค่าของ AI Agent และ engine ที่ใช้งาน ซึ่งถูกจัดเก็บไว้ใน metadata

AI Engine ที่รองรับ

Engine
ชื่อ Engine
ไฟล์ตัวละคร

eliza

AI-NFT Metadata JSON

ฟิลด์
ประเภท
คำอธิบาย

ai_agent (Newly added)

object

การตั้งค่าที่กำหนด AI Agent ที่เชื่อมโยงกับ NFT นี้

  • engine (string): เอนจินที่ใช้ในการรัน AI Agent ค่าเริ่มต้นคือ "eliza"

name

string

ชื่อของสินทรัพย์

description

string

คำอธิบายของสินทรัพย์

image

string

URI ที่ระบุไปยังโลโก้ของสินทรัพย์

animation_url

string

URI ที่ระบุไปยังแอนิเมชันของสินทรัพย์

external_url

string

URI ที่ระบุไปยัง URL ภายนอกที่อธิบายสินทรัพย์ — เช่น เว็บไซต์หลักของเกม

attributes

array

Array ของ Attributes ที่กำหนดลักษณะเฉพาะของสินทรัพย์

  • trait_type (string): ประเภทของ attributes

  • value (string): ค่าที่กำหนดให้กับ attribute นั้น

properties

object

คุณสมบัติเพิ่มเติมที่กำหนดลักษณะของสินทรัพย์

  • files (array): ไฟล์เพิ่มเติมที่ต้องการรวมเข้ากับสินทรัพย์

    • uri (string): URI ของไฟล์

    • type (string): ประเภทของไฟล์ เช่น image/png, video/mp4 เป็นต้น

    • cdn (boolean, optional): ระบุว่าไฟล์ถูกให้บริการจาก CDN หรือไม่

  • category (string): หมวดหมู่มีเดียของสินทรัพย์ เช่น video, image เป็นต้น

ตัวอย่าง

{
  // AI agent field
  ai_agent: {
    engine: "eliza",
    character: {
      // agent name
      name:"eliza",
      // background statements
      bio: [
        "Bio lines are each short snippets which can be composed together in a random order.",
        "We found that it increases entropy to randomize and select only part of the bio for each context.",
        "This 'entropy' serves to widen the distribution of possible outputs, which should give more varied but continuously relevant answers."
      ],
      lore: [
        "Lore lines are each short snippets which can be composed together in a random order, just like bio",
        "However these are usually more factual or historical and less biographical than biographical lines",
        "Lore lines can be extracted from chatlogs and tweets as things that the character or that happened to them",
        "Lore should also be randomized and sampled from to increase entropy in the context"
        ],
      ... //xxx.character.json from https://github.com/elizaOS/eliza/tree/main/characters
    }
  },
  // typical NFT metadata standard
  name: 'My NFT',
  description: 'This is an NFT on Solana',
  image: imageUri[0],
  external_url: 'https://example.com',
  attributes: [
    {
      trait_type: 'trait1',
      value: 'value1',
    },
    {
      trait_type: 'trait2',
      value: 'value2',
    },
  ],
  properties: {
    files: [
      {
        uri: imageUri[0],
        type: 'image/jpeg',
      },
    ],
    category: 'image',
  },
}
PreviousAI-NFT ทํางานอย่างไร?

Last updated 4 months ago

Was this helpful?

โดย ElizaOS

character (object): ไฟล์ JSON ของตัวละครที่อธิบาย AI Agent ดูรายละเอียดเพิ่มเติมได้

Eliza
เอกสารประกอบการใช้งาน
เทมเพลต
ตัวอย่าง
ที่นี่