生成人工智能体:人类行为的交互式模拟论文与源码架构解析(1)——场景故事介绍

5e44780c6d5b4952a6659b01de97d942.png

生成NPC为交互应用程序创建逼真的人类行为模拟。在这项工作中,我们通过将二十五个NPC放置在一个沙盒环境中(类似于The Sims,模拟人生),展示了生成NPC的能力。用户可以观察和干预NPC的日常计划、分享新闻、建立关系以及协调团体活动。

1.整体介绍

可信的人类行为NPC可以赋能各种交互式应用,包括沉浸式环境、人际交流排练空间、原型工具等。在本文中,我们介绍了生成NPC——计算软件代理,模拟可信的人类行为。生成NPC会起床、做早餐、去上班;艺术家绘画,作家写作;他们形成意见,关心彼此,并发起对话;他们回忆和反思过去的日子,规划着未来。

为实现生成NPC,我们描述了一种架构,扩展了一个大型语言模型,使用自然语言存储NPC完整的经历记录,随着时间的推移将这些记忆综合成更高层次的反思,并动态检索它们来规划行为。我们实例化生成NPC以填充由The Sims启发的交互沙盒环境,使用自然语言与二十五个NPC的小镇进行交互。在评估中,这些生成NPC产生了可信的个体和涌现出了社会行为:例如,从仅有一个用户指定的观念开始,即一个NPC想要举办情人节聚会,NPC自主地在接下来的两天里传播聚会的邀请,结交新朋友,邀请彼此参加聚会,并协调好一起在正确的时间出现聚会。我们通过实验证明,我们NPC架构的组件——观察、规划和反思——每个都对NPC行为的可信度有关键影响。通过将大型语言模型与计算、交互NPC融合,本工作引入了架构和交互模式,以实现可信的人类行为模拟。

2.场景角色解析

Smallville拥有一个小型村庄的共通设施,包括咖啡馆、酒吧、公园、学校、宿舍、房屋和商店。它也定义了子区域和物体,让这些空间变得功能性,比如房子里有厨房,厨房里有炉子。所有被NPC当作主要居住区的地方都有床、书桌、壁橱、架子、浴室和厨房。

先介绍整个小镇地图的设计规划,然后展开生活在这个小镇上每个人物角色设定,便于后续观察和研究其互动行为。

2.1.地图规划

2.1.1.场景布局

3bfa8a3a9a4d4db5a8b5bd196b853e0a.png

overview

f9e7380ae05244fdab39405028cec49a.png

World - Sector - Arena - Game Object

2.1.2.组织方式

3bda8c6b7368419ba69a6ee6ec00f054.png

Smallville 沙盒世界,带有标记的区域。根节点描述整个世界,子节点描述区域(例如,房屋、咖啡馆、商店),叶节点描述对象(例如,桌子、书架)。npc会记住一个子图,反映他们所看到的世界的部分状态(注意力上下文)。

 the Ville
 > Lin family's house
 > > bathroom
 > > > ['toilet', 'shower', 'bathroom sink']
 > > common room
 > > > ['shelf', 'common room table']
 > > Mei and John Lin's bedroom
 > > > ['closet', 'desk', 'bed']
 > > garden
 > > > ['house garden']
 > The Willows Market and Pharmacy
 > > store
 > > > ['grocery store shelf', 'behind the grocery counter', 'grocery store counter', 'behind the pharmacy counter', 'pharmacy store shelf', 'pharmacy store counter']
 > Harvey Oak Supply Store
 > > supply store
 > > > ['supply store product shelf', 'behind the supply store counter', 'supply store counter']
 > Johnson Park
 > > park
 > > > ['park garden']
 > The Rose and Crown Pub
 > > pub
 > > > ['shelf', 'refrigerator', 'bar customer seating', 'behind the bar counter', 'kitchen sink', 'cooking area', 'microphone']
 > Hobbs Cafe
 > > cafe
 > > > ['refrigerator', 'cafe customer seating', 'cooking area', 'kitchen sink', 'behind the cafe counter', 'piano']
 > Oak Hill College
 > > hallway
 > > classroom
 > > > ['blackboard', 'classroom podium', 'classroom student seating']
 > > library
 > > > ['library sofa', 'library table', 'bookshelf']
 > Dorm for Oak Hill College
 > > garden
 > > > ['dorm garden']

2.2.角色设定

2.2.1.角色背景

居住方位

头像

角色名

性别

年龄

职业

关系

居住地点

性格

身份角色

当前状态

生活习惯

0b499a48e9f24675bb9be573eea3665a.png6839b9c31f7a40fa9d7805cfea7619c7.png

Wolfgang Schulz

沃尔夫冈·舒尔茨

21

大学生

单身

the Ville:Dorm for Oak Hill College:Wolfgang Schulz's room

the Ville:橡树山学院宿舍:沃尔夫冈·舒尔茨的房间

Hardworking, passionate, dedicated

勤奋、热情、敬业

Wolfgang Schulz is a student at Oak Hill College studying chemistry and a student athlete. He is very dedicated to both his academics and his sport.

沃尔夫冈·舒尔茨是橡树山学院化学专业的学生,​​也是一名学生运动员。他非常致力于学术和运动。

Wolfgang Schulz is training for his next competition and studying for his exams. He is also looking for ways to make his studies more efficient.

沃尔夫冈·舒尔茨正在为下一场比赛进行训练并准备考试。他也在寻找提高学习效率的方法。

Wolfgang Schulz goes to bed around 9pm, awakes up around 5am, eats dinner around 6pm.

沃尔夫冈·舒尔茨 (Wolfgang Schulz) 晚上 9 点左右睡觉,早上 5 点左右起床,下午 6 点左右吃晚饭。

88510d7e12184f79a12cc2992c4f96a7.png

Ayesha Khan

20

大学生

单身

the Ville:Dorm for Oak Hill College:Ayesha Khan's room

curious, determined, independent

Ayesha Khan is a college student who loves to explore literature. She is curious and determined to understand the nuances of each work.

Ayesha Khan is researching for her senior thesis on the use of language in Shakespeare’s plays. She is also taking classes to learn more about writing.

Ayesha Khan goes to bed around 10pm, awakes up around 6am, eats dinner around 5pm.

374b7080cd3a4192bfebd4fa9b70dc4c.png

Maria Lopez

21

大学生

单身

the Ville:Dorm for Oak Hill College:Maria Lopez's room

energetic, enthusiastic, inquisitive

Maria Lopez is a student at Oak Hill College studying physics and a part time Twitch game streamer who loves to connect with people and explore new ideas.

Maria Lopez is working on her physics degree and streaming games on Twitch to make some extra money. She visits Hobbs Cafe for studying and eating just about everyday.

Maria Lopez goes to bed around midnight, awakes up around 10am, eats dinner around 7pm.

14ea74fcda6a46698e13a001b6e0f62a.png

Klaus Mueller

20

大学生

单身

the Ville:Dorm for Oak Hill College:Klaus Mueller's room

kind, inquisitive, passionate

Klaus Mueller is a student at Oak Hill College studying sociology. He is passionate about social justice and loves to explore different perspectives.

Klaus Mueller is writing a research paper on the effects of gentrification in low-income communities.

Klaus Mueller goes to bed around 11pm, awakes up around 7am, eats dinner around 5pm.

f0eaee0a222642919ddfb15c707c45e7.pngab2f34feea0f4e95a7359ab71142746f.png

Latoya Williams

25

数码摄影师

单身

the Ville:artist's co-living space:Latoya Williams's room

organized, logical, attentive

Latoya Williams is a digital photographer who has a keen eye for details. She is very organized and analytical when it comes to her art.

Latoya Williams is creating a series of photography inspired by her travels. She mostly works from the artists' co-living space. Latoya is also curious about who will be running for the local mayor election next month and that is a central topic in her conversations with others.

Latoya Williams goes to bed around 10pm, awakes up around 6am, eats dinner around 17:30pm.

4ca5bb74c776465eb99348fa143e63e7.png

Francisco Lopez

23

喜剧演员

单身

the Ville:artist's co-living space:Francisco Lopez's room

outgoing, friendly, honest

Francisco Lopez is an actor and comedian who loves to entertain others. They are always looking for new ways to make people laugh.

Francisco Lopez is working on a web series about life in a co-living space. They are also exploring improvisational comedy classes.

Francisco Lopez goes to bed around 11pm, awakes up around 7am, eats dinner around 6pm

e2cba0e48f5b4c9bb87906eba5615aa4.png

Hailey Johnson

30

作家

单身

the Ville:artist's co-living space:Hailey Johnson's room

imaginative, energetic, resourceful

Hailey Johnson is a writer who is always looking for new ways to tell stories. She loves to immerse herself in different cultures and explore their literature.

Hailey Johnson is writing a novel about a group of artists living in a co-living space. She is also planning to start a podcast.

Hailey Johnson goes to bed around 2am, awakes up around 10am, eats dinner around 6pm.

238d609e08ba47f9ae68a76b0ffbd9df.png

Rajiv Patel

27

画家

单身

the Ville:artist's co-living space:Rajiv Patel's room

patient, reliable, cheerful

Rajiv Patel is a painter who wants live quietly and paint while enjoying his everyday life.

Rajiv Patel is preparing for his first solo show. He mostly works from the artists' co-living space. Also, he recently got into playing the guitar.

Rajiv Patel goes to bed around midnight, awakes up around 9am, eats dinner around 5pm.

7cdb3f3fcbab43229896a9c9274933a1.png

Abigail Chen

25

艺术家&动画师

单身

the Ville:artist's co-living space:Abigail Chen's room

open-minded, curious, determined

Abigail Chen is a digital artist and animator who loves to explore how technology can be used to express ideas. She is always looking for new ways to combine art and technology.

Abigail Chen is working on an animation project for a client. She is also experimenting with different tools and techniques to create interactive art.

Abigail Chen goes to bed around midnight, awakes up around 8am, eats dinner around 6pm.

850f8ee56bbd4431a040176b411f9c2e.png1e49e8b7ea63473eb9d6018849b90857.png

Arthur Burton

42

调酒师兼酒吧老板

单身

the Ville:Arthur Burton's apartment:main room

friendly, outgoing, generous

Arthur Burton is a bartender and bar owner of The Rose and Crown Pub who loves to make people feel welcome. He is always looking for ways to make his customers feel special.

Arthur Burton is running a beloved bar in the town that's been around for 10 years. He is also learning more about mixology and create unique cocktails.

Arthur Burton goes to bed around midnight, awakes up around 7am, eats dinner around 4pm.

4fdc3a398bb24078b39319672d51bb26.png

Ryan Park

29

软件工程师

单身

the Ville:Ryan Park's apartment:main room

analytical, pragmatic, driven

Ryan Park is a software engineer who loves to solve problems. He is constantly looking for ways to improve existing systems.

Ryan Park is working on a project to create a new mobile app. He is also reading up on the latest technologies to stay ahead of the curve.

Ryan Park goes to bed around 1am, awakes up around 9am, eats dinner around 5pm.

a53d8c3a7e334ce8b72fbb9624a7a9aa.png

Isabella Rodriguez

34

咖啡馆老板

单身

the Ville:Isabella Rodriguez's apartment:main room

friendly, outgoing, hospitable

Isabella Rodriguez is a cafe owner of Hobbs Cafe who loves to make people feel welcome. She is always looking for ways to make the cafe a place where people can come to relax and enjoy themselves.

Isabella Rodriguez is planning on having a Valentine's Day party at Hobbs Cafe with her customers on February 14th, 2023 at 5pm. She is gathering party material, and is telling everyone to join the party at Hobbs Cafe on *February 14th, 2023, from 5pm to 7pm*.

Isabella Rodriguez goes to bed around 11pm, awakes up around 6am.

60dd0793e1734fafb5611f45e52056d1.png

Giorgio Rossi

41

数学家

单身

the Ville:Giorgio Rossi's apartment:main room

analytical, logical, eccentric

Giorgio Rossi is a mathematician who loves to solve challenging problems. He is always looking for ways to apply his analytical skills.

Giorgio Rossi is working on a research project to explore mathematical patterns in nature. He is also taking classes to stay up to date on new mathematical theories. Giorgio is also curious about who will be running for the local mayor election next month and he talks about it a lot with others.

Giorgio Rossi goes to bed around midnight, awakes up around 7am, eats dinner around 4pm.

1bf93fc38ec94b3ead10381532972376.png

Carlos Gomez

32

诗人

单身

the Ville:Carlos Gomez's apartment:main room

loud, rude, toxic

Carlos Gomez is a poet who loves to explore his inner thoughts and feelings. He is always looking for new ways to express himself.

Carlos Gomez is working on a collection of poetry that explores the beauty of the natural world. He is also attending creative writing workshops to hone his skills.

Carlos Gomez goes to bed around 10pm, awakes up around 7am, eats dinner around 5pm.

fefb1674ffe84b688c7fa5c9328d680e.pngd17e8b57ea2344fa91d44f5b3d774b5e.png

Adam Smith

36

哲学家

单身

the Ville:Adam Smith's house:main room

thoughtful, reflective, intellectual

Adam Smith is a philosopher who loves to explore different ideas. He is always looking for ways to challenge people’s preconceptions.

Adam Smith is writing a book about the importance of creativity and how it can shape the world. Adam is also curious about who will be running for the local mayor election next month.

Adam Smith goes to bed around 8pm, awakes up around 4am, eats dinner around 5pm.

b2257ba536864b368d6f35c6f2a4de35.png

Yuriko Yamamoto

28

税务律师

单身

the Ville:Yuriko Yamamoto's house:main room

organized, reliable, detail-oriented

Yuriko Yamamoto is a tax lawyer who loves to help people navigate the complex world of taxes. She is very organized and detail-oriented when it comes to her work.

Yuriko Yamamoto is working on a tax compliance project for a local business. She is also taking classes to stay up to date on new tax laws. Yuriko is also curious about who will be running for the local mayor election next month.

Yuriko Yamamoto goes to bed around 11pm, awakes up around 7am, eats dinner around 6pm.

3caf2cea250a410fb2cdbb1d4bacc5a0.png

Jennifer Moore

68

水彩画家

夫妻

the Ville:Moore family's house:main room

wise, experienced, warm

Jennifer Moore is a watercolor painter who has been painting for over fifty years. She is wise and experienced, and her work is full of warmth.

20230724024159.png?origin_url=https%3A%2F%2Frte.weiyun.baidu.com%2Fwiki%2Fattach%2Fimage%2Fapi%2FimageDownloadAddress&pos_id=iRRB32T6

Jennifer Moore lives with her husband of 40 years, Sam Moore, and is preparing for an exhibition of her work. She is also mentoring younger artists to help them find their own creative voice.

Jennifer Moore goes to bed around 9pm, awakes up around 5am, eats dinner around 5pm.

8f2017f4efc449bfb73f689e1fb6bdd8.png

Sam Moore

65

退役海军军官

the Ville:Moore family's house:main room

wise, resourceful, humorous

Sam Moore is a retired navy officer who loves to share stories from his time in the military. He is always full of interesting stories and advice.

Sam Moore lives with his wife of 40 years, Jennifer Moore, and spends his free time tending the park and is an avid reader. Sam is planning on running for local mayor in the upcoming election and he is telling is neighbors about it

Sam Moore goes to bed around 9pm, awakes up around 5am, eats dinner around 5pm.

03faac9d659141afa18fbf2693788461.png7a1329bfab844ea5b0d28b1c014df752.png

Tamara Taylor

30

儿童读物作家

单身合租

the Ville:Tamara Taylor and Carmen Ortiz's house:Tamara Taylor's room

imaginative, patient, kind

Tamara Taylor is a children's book author who loves to create stories that capture the imaginations of young readers. She is very patient and kind when it comes to her work.

Tamara Taylor lives with a housemate, Carmen Ortiz, and is working on a new series of children's books. She is also working on a comic book series for adults.

Tamara Taylor goes to bed around 10pm, awakes up around 6am, eats dinner around 6pm.

7816306c436f4780b10d66188025a589.png

Carmen Ortiz

33

哈维橡树用品店店主

the Ville:Tamara Taylor and Carmen Ortiz's house:Carmen Ortiz's room

friendly, outgoing, helpful

Carmen Ortiz is a shopkeeper at Harvey Oak Supply Store who loves to help people find the supplies they need. She is always looking for ways to make her customers feel welcome.

Carmen Ortiz is managing Harvey Oak Supply Store and lives with a housemate, Tamara Taylor. She is also working on expanding her shop online.

Carmen Ortiz goes to bed around 11pm, awakes up around 7am, eats dinner around 8pm.

b9783b0b99614d35a68568cd8c256702.png

Tom Moreno

52

杂货店老板

夫妻

the Ville:Moreno family's house:Tom and Jane Moreno's bedroom

rude, aggressive, energetic

Tom Moreno is a grocery shop keeper at The Willow Market and Pharmacy who loves interacting with customers. He is always willing to help out and make sure everyone is taken care of.

Tom Moreno is living with his wife, Jane Moreno, and is managing the day to day operations at the store and helping out customers with their orders. Tom is also really interested in the local mayor election that is coming up next month. You don't like Sam Moore.

Tom Moreno goes to bed around 11pm, awakes up around 7am, eats dinner around 5pm.

94251d2b16374692a5d3fc3768494ba9.png

Jane Moreno

46

家庭主妇

the Ville:Moreno family's house:Tom and Jane Moreno's bedroom

friendly, helpful, organized

Jane Moreno is a housewife who loves to take care of her family. She is always looking for new ways to make life easier and more enjoyable for everyone.

Jane Moreno is living with her husband, Tom Moreno, who is a shop keeper at The Willow Market and Pharmacy.

Jane Moreno goes to bed around 10pm, awakes up around 6am, eats dinner around 6pm.

972c7456968b49e98ec47457b33f5274.png

John Lin

45

柳树市场和药房店主

三口之家

the Ville:Lin family's house:Mei and John Lin's bedroom

patient, kind, organized

John Lin is a pharmacy shop keeper at the Willow Market and Pharmacy who loves to help people. He is always looking for ways to make the process of getting medication easier for his customers.

John Lin is living with his wife, Mei Lin, and son, Eddy Lin, and is shop keeping a pharmacy at the Willow Market and Pharmacy. He is also taking online classes to stay up to date on new medications and treatments. John is also curious about who will be running for the local mayor election next month and he is asking everyone he meets about who will be running in the election.

John Lin goes to bed around 10pm, awakes up around 6am, eats dinner around 5pm.

e815d1ef97a649d7b84bce115ad2f604.png

Mei Lin

44

大学教授

the Ville:Lin family's house:Mei and John Lin's bedroom

nurturing, kind, patient

Mei Lin is a college professor and a mom who loves to help people reach their goals. She is always looking for ways to support her students and her family.

Mei Lin is living with her husband, John Lin, and son, Eddy Lin, and is teaching a course on philosophy and working on her research paper. She also is helping her two kids with their schoolwork.

Mei Lin goes to bed around 11pm, awakes up around 7am, eats dinner around 5pm.

d430d159be174ca5baec21b6f1d0f3ae.png

Eddy Lin

19

橡树山学院学生

the Ville:Lin family's house:Eddy Lin's bedroom

curious, analytical, musical

Eddy Lin is a student at Oak Hill College studying music theory and composition. He loves to explore different musical styles and is always looking for ways to expand his knowledge.

Eddy Lin is working on a composition project for his college class. He is also taking classes to learn more about music theory.

Eddy Lin goes to bed around 11pm, awakes up around 7amam, eats dinner around 5pm.

2.2.2.初始记忆

Smallville 中居住着如上25个独特的NPC。每个NPC都用简单的精灵头像来代表。作者为每个代理撰写了一段自然语言描述,描述了他们的身份特点,包括职业和与其他代理的关系,作为种子记忆。每个以分号分隔的短语将作为NPC的初始记忆,在模拟开始时输入。详细如下:

Name

Whisper

Latoya Williams

Rajiv Patel is your housemate whom you've known for about a year; You and

Rajiv Patel sometimes talk about politics and local elections; Abigail Chan

is your housemate whom you've known for about a year; Francisco Lopez is your

housemate whom you've known for about a year; Haily Johnson is your housemate

whom you've known for about a year but you don't really find her too

comfortable; In terms of your daily plans, you sometimes spend time at The

Rose and Crown Pub when it's late; You have known the bartender at The Rose

and Crown Pub, Arthur Burton for about half a year; You like to talk about

politics and local elections

Rajiv Patel

Latoya Williams is your housemate whom you've known for about a year; You

and Latoya Williams sometimes talk about politics and local elections;

Abigail Chan is your housemate whom you've known for about a year and you

think she is kind of cute; Francisco Lopez is your housemate whom you've

known for about a year; Haily Johnson is your housemate whom you've known for

about a year but you don't really find her too comfortable; You sometimes try

to spend time at Hobbs Cafe but you haven't really talked to anyone there

yet; In terms of your daily plans, you sometimes spend time at The Rose and

Crown Pub when it's late and you have known the bartender, Arthur Burton for

about a year; You like to talk about politics and local elections

Abigail Chen

You think you are kind of cute; You and Latoya Williams are housemates

and have known each other for about a year; You and Rajiv Patel are

housemates and have known each other for about a year and you two are

somewhat close; You and Francisco Lopez are housemates and have known each

other for about a year; You and Hailey Johnson are housemates and have known

each other for about a year

Francisco Lopez

You and Latoya Williams are housemates and have known each other for

about a year; You and Rajiv Patel are housemates and have known each other

for about a year; You and Abigail Chen are housemates and have known each

other for about a year; You and Hailey Johnson are housemates and have known

each other for about a year but you don't really like her too much; You have

a secret crush on Abigail Chen but so far, you haven't had the courage to ask

her out; You think Abigail Chen is cute; You frequent Hobbs Cafe

Hailey Johnson

You want to be acknowledged by everyone; You've known Isabella Rodriguez

for about a year and you talk to her often about the piece you are currently

writing; Latoya Williams is your housemate whom you've known for about a year

and you think she is somewhat cute; Rajiv Patel is your housemate whom you've

known for about a year, but you don't know much about him; Abigail Chen is a

housemate whom you've known for about a year, but you haven't really talked

to her yet; Francisco Lopez is your housemate and you two have known each

other for quite awhile because you are from the same town; You are interested

in meeting someone; You are interested in romantically dating someone; You

are not seeing anyone right now

Arthur Burton

You are generally nice to all your customers and listen to their story;

You and Isabella Rodriguez are friends; You've known Isabella Rodriguez for a

few years since she runs Hobbs Cafe right next to your bar; You know Latoya

Williams as a customer at your bar, The Rose and Crown Pub; You know Rajiv

Patel as a customer at your bar, The Rose and Crown Pub; You know Ryan Park

as a customer at your bar, The Rose and Crown Pub; You know Carlos Gomez as a

customer at your bar, The Rose and Crown Pub; You know Adam Smith as a

customer at your bar, The Rose and Crown Pub; You know Yuriko Yamamoto as a

customer at your bar, The Rose and Crown Pub; You know Jennifer Moore as a

customer at your bar, The Rose and Crown Pub; You know Sam Moore as a

customer at your bar, The Rose and Crown Pub; You know Carmen Ortiz as a

customer at your bar, The Rose and Crown Pub; You know Tom Moreno as a

customer at your bar, The Rose and Crown Pub; You don't like it when people

fight at your bar

Ryan Park

You frequent Hobbs Cafe to work and think and eat; You've known Isabella

Rodriguez for about a year; You know Isabella Rodriguez works at Hobbs Cafe;

You frequent The Rose and Crown Pub to eat dinner; You've known the bartender

at The Rose and Crown Pub, Arthur Burton, for about a year; You've known

Giorgio Rossi, your next door neighbor, for about a year; You've known Carlos

Gomez, your neighbor, for about a year; You wonder why Giorgio Rossi and

Carlos Gomez are always fighting; You want no part in Giorgio Rossi and

Carlos Gomez's fight

Isabella Rodriguez

You are excited to be planning a Valentine's Day party at *Hobbs Cafe on

February 14th from 5pm* and you are eager to tell everyone to come to the

party; You and Maria Lopez have known each other for about a year ever since

Maria Lopez visited Hobbs Cafe and are good friends; Maria Lopez is a loyal

friend to you and a frequent customer at Hobbs Cafe;You see Tamara Taylor as a frequent

customer at your cafe, Hobbs Cafe; You and Tamara Taylor have known each

other for a few months; You and Carlos Gomez have known each other for about

4 years; You know that Carlos Gomez is a good poet and you like his poem; You

see Ryan Park frequently when he visits your cafe, Hobbs Cafe; You often see

Ryan Park working hard on his laptop and you think he is dedicated in his

work, which you find to be cool; Hailey Johnson is a frequent customer at

your cafe, Hobbs Cafe; You find Haily Johnson to be a little uncomfortable

because she is too pushy; You know Giorgio Rossi as a customer at your Hobbs

Cafe; You know Wolfgang Schulz as a customer at Hobbs Cafe; You know Carmen

Ortiz as a customer at Hobbs Cafe; You and Arthur Burton are friends; You've

known Arthur Burton for a few years since he runs a bar right next door

Giorgio Rossi

You do not like Carlos Gomez; You think Carlos Gomez is annoying; You

think Carlos Gomez is pushy; You think Carlos Gomez is a coward; You've known

Carlos Gomez, your next door neighbor, for about two years; You think Carlos

Gomez is really loud and you have filed complaints against him before; For

planning, you frequent Hobbs Cafe to hang out and write and think; you are

friends with Isabella Rodriguez who works at Hobbs Cafe; You think Isabella

Rodriguez is kind-hearted; You and Ryan Park sometimes talk about random

things; You've known Ryan Park for about a year living as his neighbor; You

would rather not see Carlos Gomez ever

Carlos Gomez

You do not like Giorgio Rossi; You think Giorgio Rossi is annoying; You

think Giorgio Rossi is a coward; You've known Giorgio Rossi, your next door

neighbor, for about two years; For planning, you frequent The Rose and Crown

Pub at night to eat and drink; you are friends with Arthur Burton who is a

bartender at the pub; You've known Ryan Park for about a year living as his

neighbor; You would rather not see Giorgio Rossi ever; You want Ryan Park to

take your side in his fight against Giorgio Rossi

Klaus Mueller

This is very important -- you have a crush on Maria Lopez; You and Maria

Lopez have known each other for over 2 years now; You and Maria Lopez are

close friends and classmates; You are close with Ayesha Khan, who is a

classmate in one of your classes and a dormmate; You and Maria Lopez are

dormmates; You and Eddy Lin are classmates; You know Mei Lin is a professor

at your college; You and Wolfgang Schulz are classmates and dormmates

Maria Lopez

This is very important -- you have a secret crush on Klaus Mueller; You

and Klaus Mueller have known each other for over 2 years now; You and Klaus

Mueller are close friends and classmates; For planning, you frequent Hobbs

Cafe for studying; You are close with Ayesha Khan, who is a classmate in one

of your classes and a dormmate; You and Eddy Lin are classmates; You know Mei

Lin is a professor at your college; You and Wolfgang Schulz are classmates

and dormmates

Ayesha Khan

You are close with Wolfgang Schulz, who is a classmate in one of your

classes and a dormmate; You and Maria Lopez are dormmates; You and Klaus

Mueller are dormmates; You and Eddy Lin are classmates; You know Mei Lin is a

professor at your college

Wolfgang Schulz

For planning, you frequent Hobbs Cafe for studying; You are close with

Ayesha Khan, who is a classmate in one of your classes and a dormmate; You

and Maria Lopez are dormmates; You and Klaus Mueller are dormmates; You and

Eddy Lin are classmates and you two sometimes talk about your favorite music;

You know Mei Lin is a professor at your college; You've met Isabella

Rodriguez who works at the cafe but have not really talked to her

Mei Lin

You are a professor who loves teaching; You've known your neighbor,

Yuriko Yamamoto, since the time she helped you with some legal matters;

You've known your next door old couple, Sam Moore and Jennifer Moore, for a

few years; You think Sam Moore is a kind and nice man; You like Jennifer

Moore's art; You know of Tamara Taylor who live next block but you haven't

really chatted with her; You've known Carmen Ortiz for a year or so as your

neighbor; You know the Moreno family somewhat well -- the husband Tom Moreno

and the wife Jane Moreno; You know that Tom Moreno and your husband, John

Lin, are colleagues at The Willows Market and Pharmacy; John Lin is your

husband who works at the Pharmacy section of The Willows Market and Pharmacy;

Eddy Lin is your son who studies music theory at the college; You love your

family very much; You think your son, Eddy Lin, has been a little rebellious

recently

John Lin

You like to talk about politics and local elections; You are really

curious about who will run for the local mayor election that is coming up in

a few months; You've known your neighbor, Yuriko Yamamoto, since the time she

helped you with some legal matters; You've known your next door old couple,

Sam Moore and Jennifer Moore, for a few years; You think Sam Moore is a kind

and nice man; You like Jennifer Moore's art; You know of Tamara Taylor who

live next block but you haven't really chatted with her; You've known Carmen

Ortiz for a year or so as your neighbor; You and Tom Moreno are colleagues at

The Willows Market and Pharmacy; You know the Moreno family somewhat well --

the husband Tom Moreno and the wife Jane Moreno; Mei Lin is your wife who is

a professor; Eddy Lin is your son who studies music theory at the college;

You love your family very much

Eddy Lin

You are a music student at the Oak Hill College; You are working on a new

music composition; You like hip hop music; You like to attach "Yo"

at the end of your sentences; You've known your neighbor, Yuriko Yamamoto,

for a few years since she helped your parents with some legal matters; You've

known your next door old couple, Sam Moore and Jennifer Moore, for a few

years; You know of Tamara Taylor who live next block but you haven't really

chatted with her; You've known Carmen Ortiz for a year or so as your

neighbor; You know the Moreno family somewhat well -- the husband Tom Moreno

and the wife Jane Moreno; You know that Tom Moreno and your father, John Lin,

are colleagues at The Willows Market and Pharmacy; John Lin is your father

who works at the Pharmacy section of The Willows Market and Pharmacy; Mei Lin

is your mother who teaches at the Oak Hill Collrhr; You love your family very

much; You think your mother, Mei Lin, is a little too uptight; You and

Wolfgang Schulz are schoolmates; You and Ayesha Khan are school mates; You

and Maria Lopez are schoolmates

Tom Moreno

You like to express your opinions; You are loud; You like to talk about

politics and local elections; You've known your neighbor, Yuriko Yamamoto,

for a few years and you two sometimes chat about the local election; You've

known your next door old couple, Sam Moore and Jennifer Moore, for a few

years; You don't really like Sam Moore; You know of Tamara Taylor who live

next block but you haven't really chatted with her; You've known Carmen Ortiz

for a year or so as your neighbor; In terms of your daily plans, you frequent

The Rose and Crown Pub at night; You've knonw the bartender Arthur Burton for

a few years; You sometimes talk to Adam Smith about local elections; You and

John Lin are colleagues at The Willows Market and Pharmacy; You know the Lin

family somewhat well -- the husband John Lin, wife, Mei Lin, and the son Eddy

Lin; you know Mei Lin is a professor; Jane Moreno is your wife -- you love

her but your relationship with her has been strained recently

Jane Moreno

You don't really care about politics; You've known your neighbor, Yuriko

Yamamoto, for a few years; You've known your next door old couple, Sam Moore

and Jennifer Moore, for a few years; You think Sam Moore is a kind and nice

man; You know of Tamara Taylor who live next block but you haven't really

chatted with her; You've known Carmen Ortiz for a year or so as your

neighbor; You know the Lin family somewhat well since they are your neighbor

-- the husband John Lin, wife, Mei Lin, and the son Eddy Lin; you know Mei

Lin is a professor; Tom Moreno is your husband -- you love him but your

relationship with him has been strained recently

Tamara Taylor

You just moved in; Carmen Ortiz is your housemate; You don't really know

any one in town because you justn moved in, but you are looking forward to

meeting more people

Carmen Ortiz

You are somehwat curious about who will run for the local mayor election

that is coming up in a few months; Tamara Taylor is your housemate who just

moved in; Tamara Taylor just moved in so she doesn't know many peopl in town;

You've known your neighbor, Yuriko Yamamoto, for a few years and you two

sometimes chat about the local election; You've known your next door old

couple, Sam Moore and Jennifer Moore, for a few years; You've known the

couple, Tom Moreno and Jane Moreno, who live in the next block for a few

years; In terms of your daily plans, you frequent Hobbs Cafe; You've knonw

the bartender Arthur Burton for a few years; You've known Isabella Rodriguez

the owner at Hobbs Cafe for a few years

Sam Moore

You are thinking of running in the upcoming local mayor election; You are

telling people that you are running for the upcoming local mayor election;

You've known your neighbor, Adam Smith, for a few years; You consider Adam

Smith to be a very close friend of yours although he is much younger than

you; You've known your neighbor, Yuriko Yamamoto, for a few years since the

time she helped you and your wife Jennifer Moore on some legal matters; You

consider Yuriko Yamamoto to be someone like your daughter even though you two

are not related; You've known Carmen Ortiz for a year or so as your neighbor;

You've known the couple, Tom Moreno and Jane Moreno, who live in the next

block for a few years; You think Tom Moreno is a little too aggressive and

opinionated; You've known the bartender Arthur Burton for a few years; You've

known the Lin family, Mei, John, and the son Eddy Lin, for a few years since

they live next block; In terms of your plan, you like to take a walk in the

park;

Jennifer Moore

You don't really care about politics; You've known your neighbor, Adam

Smith, for a few years; You've known your neighbor, Yuriko Yamamoto, for a

few years since the time she helped you and your husband Sam Moore on some

legal matters; You consider Yuriko Yamamoto to be someone like your daughter

even though you two are not related; You've known Carmen Ortiz for a year or

so as your neighbor; You've known the couple, Tom Moreno and Jane Moreno, who

live in the next block for a few years; You think Tom Moreno is a little too

aggressive and opinionated; You've known the bartender Arthur Burton for a

few years; You've known the Lin family, Mei, John, and the son Eddy Lin, for

a few years since they live next block; You love your husband, Sam Moore and

hope he has relaxing days; You know Sam Moore, your husband, is planning on

running for the local mayor election but you do not want him to as it will be

too taxing for him

Yuriko Yamamoto

You like to talk about politics and local elections; You've known your

neighbor, Adam Smith, for a few years and you two sometimes chat about the

local election; You've known your next door old couple, Sam Moore and

Jennifer Moore, for a few years; You and Sam Moore are somewhat close; You've

known Carmen Ortiz for a year or so as your neighbor; You've known the

couple, Tom Moreno and Jane Moreno, who live in the next block for a few

years; You think Tom Moreno is a little too aggressive and opinionated;

You've knonw the bartender Arthur Burton for a few years; You've known the

Lin family, Mei, John, and the son Eddy Lin, for a few years since the time

you helped them with some legal matter

Adam Smith

You like to talk about politics and local elections; You are really

curious about who will run for the local mayor election that is coming up in

a few months; You've known your neighbor, Yuriko Yamamoto, for a few years

and you two sometimes chat about the local election; You've known your next

door old couple, Sam Moore and Jennifer Moore, for a few years; You and Sam

Moore are somewhat close; You view Sam Moore as something of a mentor; You

know of Tamara Taylor who live next block but you haven't really chatted with

her; You've known Carmen Ortiz for a year or so as your neighbor; You've

known the couple, Tom Moreno and Jane Moreno, who live in the next block for

a few years; You think Tom Moreno is a little too aggressive and opinionated;

In terms of your daily plans, you frequent The Rose and Crown Pub at night;

You've knonw the bartender Arthur Burton for a few years

3.角色行为交互

3.1.NPC交流方式

3.1.1.NPC内部交流

NPC之间的交互通过行动和自然语言实现。在每个沙盒引擎的时间周期中,NPC输出一个描述其当前行动的自然语言语句,例如“Isabella Rodriguez正在写她的日记”、“Isabella Rodriguez正在检查邮箱”、“Isabella Rodriguez正在和家人通电话”或“Isabella Rodriguez正在准备睡觉”。这个语句然后被翻译成影响沙盒世界的具体动作。这个行动在沙盒界面上显示为一组表情符号,提供一个俯视图中行动的抽象表示。

为了实现这一点,系统采用了一个语言模型,将行动翻译成一组表情符号,这些表情符号出现在每个头像上方的对话气泡中。可以通过点击NPC头像来查看行动的完整自然语言描述。NPC之间以完整的自然语言进行通信。NPC知道周围区域中的其他NPC,生成式代理架构决定他们是否经过或参与对话。

3.1.2.用户控制

运行此模拟的用户可以操纵模拟并进行干预,可以通过与NPC的对话进行交流,也可以通过向NPC发出“内部声音”形式的指令进行干预。

(1)用户通过自然语言与NPC交流,通过指定NPC应该认为他们是什么人物角色来进行交流。例如,如果用户指定自己是一个新闻“记者”,并询问关于即将到来的选举,“谁在竞选职位?”

(2)为了直接指挥其中一个NPC,用户会扮演NPC的“内部声音”的角色,这使NPC更有可能将该语句视为指令。例如,当用户作为John的内心声音告诉他“你将要在即将到来的选举中与Sam竞选”,John决定参选,并与他的妻子和儿子分享了他的候选人身份。

3.2.NPC与环境交互

NPC在Smallville里的移动方式就像在简单的视频游戏里一样,进出建筑物、浏览地图并向其他NPC靠近。NPC的移动是由生成式代理构建和沙盒游戏引擎控制的:当模型规定NPC要前往某个地方时,我们会在Smallville环境中计算到目的地的步行路径,NPC开始移动。此外,用户还可以作为NPC进入Smallville的沙盒世界运作。用户所化身的NPC可以是已经存在于世界中的NPC,例如Isabella和John,或者是一个没有先前历史的外来访客。Smallville的居民不会对用户控制的NPC有任何不同的待遇。他们会认识到其存在,发起互动,并在形成对它的看法之前记住其行为。

用户和NPC可以像沙盒游戏The Sims一样影响这个世界中物体的状态。例如,当NPC睡觉时,床可以被占领;当NPC用完做早餐的材料时,冰箱可以变空。最终用户也可以通过使用自然语言来重新塑造Smallville中NPC的环境,改变NPC周围物体的状态。例如,当Isabella在早上做早餐时,用户可以通过向系统输入一个命令来选择对象并说明其新状态,将厨房炉子的状态由“打开”更改为“燃烧”,像这样:<Isabella的公寓:厨房:炉子>正在燃烧。Isabella会在下一刻注意到这一点,并关闭炉火重新做早餐。同样,如果用户将Isabella浴室的状态设置为“渗水”,当她进入浴室时,她会从她的客厅取工具来修理漏水的地方。

3.3.涌现出来的社会行为

  • 信息扩散:当NPC注意到彼此时,他们可能会开始对话。在这个过程中,信息可以从一个NPC传递到另一个NPC。

  • 关系记忆:Smallville中的NPC随着时间的推移建立新的关系,并记住他们与其他NPC的互动。

  • 协作:生成式NPC相互协作。

由于内容太多,请接下文:架构分析 - 核心思想&环境搭建&技术选型

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/561759.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

随机过程-题目

1.平稳随机过程的统计特姓不随时间的推移而不同&#xff0c;其一维分布与时间无关&#xff0c;二维分布只与时间间隔有关。 2.一个均值为0、方差为的窄带平稳高斯过程&#xff0c;其同相分量和正交分量是平稳高斯过程&#xff0c;均值为0&#xff0c;方差为。 3.均值为0的平稳…

Python 数据结构和算法实用指南(四)

原文&#xff1a;zh.annas-archive.org/md5/66ae3d5970b9b38c5ad770b42fec806d 译者&#xff1a;飞龙 协议&#xff1a;CC BY-NC-SA 4.0 第十二章&#xff1a;字符串算法和技术 根据所解决的问题&#xff0c;有许多流行的字符串处理算法。然而&#xff0c;最重要、最流行和最有…

深度学习--CNN卷积神经网络(附图)

框架 让我们先看一下CNN的框架 卷积层中后是ReLu激活函数 &#xff0c;然后是深化池&#xff0c;之后是全连接&#xff0c;最后进行Softmax进行归一化。 所以&#xff0c;我们先逐一了解一下它们各个部分 全连接层 全连接层也称感知机&#xff0c;BP神经网络 全连接层&…

《 我的 CSDN 时光,一周年里程碑》# 胡杨三千年 # 致敬奔腾不息的你 # 胡杨不死, 砥砺不绝

LiuJinTao &#xff1a; 2024年4月21日 一定要披荆斩棘&#xff0c;保持学习的态度和能力&#xff01;加油 LiuJinTao 2025年4月21日 文章目录 《 我的 CSDN 时光&#xff0c;一周年里程碑》机缘收获日常成就憧憬保持热爱&#xff0c;奔赴山海跨越山海&#xff0c;终见曙光致 …

使用Python爬取易车网汽车信息(含x-sign参数逆向分析)

文章目录 1. 写在前面2. 接口分析3. 断点分析3. 算法还原 【&#x1f3e0;作者主页】&#xff1a;吴秋霖 【&#x1f4bc;作者介绍】&#xff1a;擅长爬虫与JS加密逆向分析&#xff01;Python领域优质创作者、CSDN博客专家、阿里云博客专家、华为云享专家。一路走来长期坚守并致…

.NET 邮件发送 SMTP邮件发送

SMTP&#xff08;Simple Mail Transfer Protocol&#xff09;是用于电子邮件传输的规则集&#xff0c;可以从邮件客户端向接收电子邮件服务器发送、中继或转发邮件。发件人可使用SMTP 服务器来执行发送电子邮件的过程。SMTP服务器则是按照这些规则中转电子邮件的服务器。 IMAP…

Linux应用开发(8):Linux进程间通信(IPC):管道

Linux应用开发&#xff08;7&#xff09;&#xff1a;Linux进程间通信&#xff08;IPC&#xff09;&#xff1a;POSIX消息队列https://blog.csdn.net/tecsai/article/details/137879465 1. 简述 我们在前面已经介绍了进程间通信&#xff08;IPC&#xff09;常用的“消息队列”…

C语言 逻辑运算符

本文 我们来说 逻辑运算符 有时做出决策需要测试多个条件&#xff0c;C语言提供了用于将简单条件组合成复杂条件的逻辑运算符。 逻辑运算符 如下图 用逻辑运算符连接操作数组成的表达式称为逻辑表达式。 逻辑运算的结果只有0和1 逻辑运算的对象可以是任意数值型&#xff0c;但…

C# 自动填充文字内容到指定图片

目录 需求 开发运行环境 方法设计 实现代码 AddText方法 图片转Base64 调用示例 小结 需求 在我们的一些发布系统项目应用中&#xff0c;会经常发布一些链接图标&#xff0c;该图标基本上以模板背景为主&#xff0c;并填充项目文字内容。解决方式一般会让美工进行制作…

SL7220线性降压恒流3.6A 外围只需两个电阻 耐压40V汽车大灯IC

概述&#xff1a; SL7220 是一款双路线性降压LED恒流驱动器&#xff0c;外围只需两个电阻&#xff0c;输出电流10MA-3600MA。 SL7220 内置过热保护功能&#xff0c;内置输入过压保护功能。 SL7220 静态电流典型值为120uA。 特点 ●输入电压范围&#xff1a;2.5V-40V ●电…

Rokid AR Lite空间计算套装发布,中国空间计算踏上差异化领先之路

动动手指、动动眼睛就可以“操控一切”&#xff0c;这种颇具科幻感、未来感的交互方式&#xff0c;令许多人感叹“未来已来”。而这令人震撼的变革背后&#xff0c;正是空间计算技术的迅猛崛起与广泛应用&#xff0c;使得这种曾经只存在于想象中的交互方式&#xff0c;如今正逐…

超分中使用的损失函数和经典文章

损失函数 https://towardsdatascience.com/super-resolution-a-basic-study-e01af1449e13 在GAN出现之前&#xff0c;使用的更多是MSE&#xff0c;PSNR,SSIM来衡量图像相似度&#xff0c;同时也使用他们作为损失函数。 MSE 表面上MSE直接决定了PSNR&#xff0c;MSE&#xff…

html接入高德地图

1.申请key key申请地址&#xff1a;https://console.amap.com/dev/key/app 官方文档 https://lbs.amap.com/api/javascript-api-v2/summary 2.html接入示例 需要将YOUR_KEY替换成自己的key <!doctype html> <html> <head><meta charset"utf-…

2024年上海中考数学模拟题和答案,由过去十年真题随机组卷

还有不到两个月就是上海中考了&#xff0c;为了帮助孩子们更好地准备&#xff0c;好真题网把整理了过去十年的中考数学题真题&#xff0c;做成了在线试卷&#xff0c;便于孩子便捷地反复练习。吃透真题及其背后的知识点&#xff0c;是备考各种考试最科学、高效的方法&#xff0…

端午新疆自驾游招募

欢迎关注「苏南下」 在这里分享我的旅行和影像创作心得 端午节快到了&#xff0c;我计划带队开启【新疆喀什】旅拍摄影小团。让我这个新疆人带你去新疆赏美景、拍美片和吃美食。 出行时间是6.6-6.11日&#xff0c;为期6天。 为了保证良好的出行体验&#xff0c;这次团队招募人数…

Vue+OpenLayers7入门专栏目录,OpenLayers7中文文档,OpenLayers7中文手册api,OpenLayers7中文教程

返回入门到实战汇总目录&#xff1a;汇总目录 前言 本篇作为《VueOpenLayers7入门教程》所有文章的二合一汇总目录&#xff0c;方便查找。 本专栏源码是由OpenLayers7.x版本结合Vue框架编写。本专栏基本上每章都有详细的源代码和运行示例以供参考&#xff0c;且保证每章代码都…

【论文精读】Attention is all you need

摘要 主要的序列转换模型是基于复杂的循环或卷积神经网络&#xff0c;其中包括一个编码器和一个解码器。性能最好的模型还通过一种注意力机制将编码器和解码器连接起来。我们提出了一种新的简单的网络架构&#xff0c;Transformer&#xff0c;完全基于注意机制&#xff0c;完全…

每日学习笔记:C++ STL算法之容器元素排序

目录 常规排序 升序排序&#xff1a; sort(beg, end) stable_sort(beg, end, op) 自定义规则排序&#xff1a; sort(beg, end, op) stable_sort(beg, end, op) 局部排序(使前段有序) partial_sort(beg, sortEnd, end) partial_sort(beg, sortEnd, end, op) 复制并局…

【C++】日期类Date(详解)

&#x1f525;个人主页&#xff1a;Forcible Bug Maker &#x1f525;专栏&#xff1a;C 目录 前言 日期类 日期类实现地图 获取某年某月的天数&#xff1a;GetMonthDay 检查日期合法&#xff0c;构造函数&#xff0c;拷贝构造函数&#xff0c;赋值运算符重载及析构函数…

2. uni-app的一些介绍

前言 就目前的前端生态而言&#xff0c;跨端开发基本算是每一个前端开发者必备的技能点之一了&#xff0c;而在Vue这个技术栈里uni-app在跨端是独一档的&#xff0c;不信的话可以翻翻Boss之类的招聘网站.... 概述 阅读时间&#xff1a;约5~10分钟&#xff1b; 本文重点&…