nano bots spec
Nano Bots 3.2.0
ภาพที่สร้างขึ้นโดย Midjourney ผ่านคำสั่งที่สร้างขึ้นโดย Nano Bot ที่เชี่ยวชาญใน Midjourney
Nano Bots เป็นข้อมูลจำเพาะแบบเปิดที่สามารถนำไปใช้ในภาษาการเขียนโปรแกรมใด ๆ มันระบุไฟล์การกำหนดค่าที่มีคำแนะนำที่มนุษย์อ่านได้สำหรับการสร้างบอท AI ขนาดเล็กและพิเศษที่สามารถแชร์ได้อย่างง่ายดายเป็นไฟล์เดียวที่มีน้ำหนักเบา
การใช้งานข้อกำหนดนี้:
นี่คือสิ่ง ที่คาร์ทริดจ์ บอทนาโนมีลักษณะอย่างไร:
---
meta :
symbol : ?
name : Nano Bot Name
author : Your Name
version : 1.0.0
license : CC0-1.0
description : A helpful assistant.
behaviors :
interaction :
directive : You are a helpful assistant.
provider :
id : openai
credentials :
address : ENV/OPENAI_API_ADDRESS
access-token : ENV/OPENAI_API_KEY
settings :
user : ENV/NANO_BOTS_END_USER
model : gpt-4oนี่คือสิ่งที่การใช้งานอย่างสมบูรณ์ของบอทนาโนรู้สึกเหมือน:
nb - - eval " hello "
# => Hello! How may I assist you today?
nb to-en-us-translator.yml - eval " Salut, comment ça va? "
# => Hello, how are you doing?
nb midjourney.yml - eval " happy cyberpunk robot "
# => A cheerful and fun-loving robot is dancing wildly amidst a
# futuristic and lively cityscape. Holographic advertisements
# and vibrant neon colors can be seen in the background.
nb lisp.yml - eval " (+ 1 2) "
# => 3
cat article.txt |
nb to-en-us-translator.yml - eval |
nb summarizer.yml - eval
# -> LLM stands for Large Language Model, which refers to an
# artificial intelligence algorithm capable of processing
# and understanding vast amounts of natural language data,
# allowing it to generate human-like responses and perform
# a range of language-related tasks. nb - - repl
nb assistant.yml - repl ?> Hi, how are you doing?
As an AI language model, I do not experience emotions but I am functioning
well. How can I assist you?
?> |
บอทนาโนสามารถขับเคลื่อนด้วย เครื่องมือ (ฟังก์ชั่น):
---
tools :
- name : random-number
description : Generates a random number between 1 and 100.
fennel : |
(math.random 1 100) ?> please generate a random number
random-number {} [yN] y
random-number {}
59
The randomly generated number is 59.
?> |
ตรวจสอบข้อกำหนดทั้งหมดสำหรับบอทนาโน: https://spec.nbots.io