Dữ liệu AI-NFT
Việc tạo ra AI-NFT giống như việc tạo NFT truyền thống, với một trường bổ sung ai_agent
mô tả cấu hình của tác nhân AI và động cơ mà nó sử dụng, được lưu trữ trong dữ liệu metadata.
Các Động Cơ AI Hỗ Trợ
Dữ liệu AI-NFT JSON
ai_agent (Mới thêm)
object
Cấu hình xác định tác nhân AI kết nối với NFT này.
engine (string): động cơ được sử dụng để vận hành tác nhân AI. Mặc định là "eliza".
character (object): tệp JSON mô tả nhân vật của tác nhân AI. Xem tại đây.
name
string
Tên của tài sản.
description
string
Mô tả về tài sản.
image
string
URI chỉ đến logo của tài sản.
animation_url
string
URI chỉ đến hoạt ảnh của tài sản.
external_url
string
URI chỉ đến một URL ngoài để định nghĩa tài sản — ví dụ: trang web chính của trò chơi.
attributes
array
Mảng các thuộc tính xác định đặc điểm của tài sản.
trait_type (string): Loại thuộc tính.
value (string): Giá trị của thuộc tính đó.
properties
object
Các thuộc tính bổ sung xác định tài sản.
files (array): Các tệp bổ sung để kèm theo tài sản.
uri (string): URI của tệp.
type (string): Loại tệp. Ví dụ:
image/png
,video/mp4
, v.v.cdn (boolean, tùy chọn): Liệu tệp có được phục vụ từ một CDN hay không.
category (string): Danh mục phương tiện của tài sản. Ví dụ:
video
,image
, v.v.
Ví Dụ
{
// Trường tác nhân AI
ai_agent: {
engine: "eliza",
character: {
// tên tác nhân
name:"eliza",
// câu giới thiệu
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 từ https://github.com/elizaOS/eliza/tree/main/characters
}
},
// Dữ liệu metadata NFT chuẩn
name: 'My NFT',
description: 'Đây là một NFT trên 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?