AI-NFT Metadata
Penciptaan AI-NFTs adalah serupa dengan penciptaan NFTs tradisional, dengan satu medan tambahan yang dipanggil ai_agent, yang menggambarkan konfigurasi agen IA dan mekanisme yang digunakan, disimpan dalam metadata.
Mekanisme IA yang Disokong
Mekanisme IA yang Disokong
ai_agent
object
Konfigurasi yang menentukan agen IA yang disambungkan ke NFT ini.
engine (string): Mekanisme yang digunakan untuk menjalankan agen IA. Secara lalai "eliza".
character (object): Fail JSON watak yang menggambarkan agen IA.Lihat di sini
name
string
Nama aset.
description
string
Penerangan tentang aset.
image
string
URI yang menunjuk ke logo aset.
animation_url
string
URI yang menunjuk ke animasi aset.
external_url
string
URL luaran yang menentukan aset.
attributes
array
Senarai atribut yang menentukan ciri-ciri aset.
trait_type (string): Jenis atribut.
value (string): Nilai bagi atribut ini.
properties
object
Hartanah tambahan yang menentukan aset.
files (array): Fail tambahan untuk disertakan bersama aset.
uri (string): URI fail.
type (string): Jenis fail. Contoh:
image/png
,video/mp4
, dsb.cdn (boolean, pilihan): Menunjukkan sama ada fail dihantar melalui CDN.
category (string): Kategori media untuk aset. Contoh:
video
,image
, dsb.
Example
{
// 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',
},
}
Last updated
Was this helpful?