生成人工智能体:人类行为的交互式模拟论文与源码架构解析(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相互协作。

 

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

 

 

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

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

就业班 第三阶段(ansible) 2401--4.16 day2 ansible2 剧本+角色

六、Ansible playbook 简介 playbook 是 ansible 用于配置&#xff0c;部署&#xff0c;和管理被控节点的剧本。   通过 playbook 的详细描述&#xff0c;执行其中的一系列 tasks &#xff0c;可以让远端主机达到预期的状态。playbook 就像 Ansible 控制器给被控节点列出的的…

广东海洋大学成功部署(泰迪智能科技)大数据人工智能实验室建设

广东海洋大学简称广东海大&#xff0c;坐落于广东省湛江市&#xff0c;是国家海洋局与广东省人民政府共建的省属重点建设大学、广东省高水平大学重点学科建设高校、粤港澳高校联盟成员 &#xff0c;入选卓越农林人才教育培养计划&#xff0c;是教育部本科教学水平评估优秀院校。…

odoo添加自定义网页---添加模块图标

1.新建一个模块 python odoo-bin scaffold test_web <路径> 2.我们需要修改一下几个文件 3.web.xml <?xml version"1.0" encoding"UTF-8"?> <templates id"template" xml:space"preserve"><t t-name"T…

详解汽车交流充电桩主板的四大版本

近年来&#xff0c;在电动汽车行业快速发展背景下&#xff0c;充电桩的建设变得愈发重要&#xff0c;特别是兼容性较高、适用性较广的交流充电桩。 交流充电桩的心脏——主板的设计与功能&#xff0c;对于充电桩的性能和用户体验起着至关重要的作用。目前&#xff0c;市面上的…

康谋技术 | 深入探讨:自动驾驶中的相机标定技术

随着自动驾驶技术的快速发展&#xff0c;多传感器的数据采集和融合可以显著提高系统的冗余度和容错性&#xff0c;进而保证决策的快速性和正确性。在项目开发迭代过程中&#xff0c;传感器标定扮演着至关重要的角色&#xff0c;它位于数据采集平台与感知融合算法之间&#xff0…

如何使用自定义Promptbooks优化您的安全工作流程

在当今的数字化时代&#xff0c;安全工作流程的优化变得前所未有的重要。安全团队需要快速、有效地响应安全事件&#xff0c;以保护组织的数据和资产。Microsoft Copilot for Security提供了一种强大的工具——自定义Promptbooks&#xff0c;它可以帮助安全专家通过自动化和定制…

tmux 命令速查 导图

最近在使用tmux&#xff0c;整理了一份命令的导图&#xff0c;大家需要自取&#xff5e; tmux是什么&#xff1f; Tmux是一个终端复用器&#xff0c;一个非常有用的linux开发工具。 基本概念 会话&#xff1a; 与命令下的终端窗口类似&#xff1b;tmux进程&#xff0c;可包…

SpringBoot整合Swagger2

SpringBoot整合Swagger2 1.什么是Swagger2&#xff1f;&#xff08;应用场景&#xff09;2.项目中如何使用2.1 导入依赖2.2 编写配置类2.3 注解使用2.3.1 controller注解&#xff1a;2.3.2 方法注解2.3.3 实体类注解2.3.4 方法返回值注解2.3.5 忽略的方法 3.UI界面 1.什么是Swa…

短视频矩阵系统----技术源头开发

短视频矩阵系统--- 1. 确定账号类型和目标受众 2. 准备账号资料 3. 搭建系统框架 4. 开发核心功能 5. 测试和调试 6. 部署和维护 7. 推广和运营 在开发短视频账号矩阵系统源码时&#xff0c;可以使用一些开源框架和工具来提高开发效率和降低开发难度。同时&#xff0c;需要组…

抓取电商产品数据的方法|PHP|Python多语言环境|高并发需求|电商商品API接口数据采集

电商商品数据的抓取|电商平台商品API接口 客户在搭建电商网站时经常提出的诉求和相应的解决方案如下&#xff1a; 1. **网站设计和用户体验**&#xff1a; - 诉求&#xff1a;希望有吸引力、易用性强的网站设计&#xff0c;提升用户体验。 - 解决方案&#xff1a;设计专…

无人机--行业生命周期分析

行业生命周期:无人机行业生命周期还相对较短&#xff0c;但已经经历了多个阶段的发展。从最初的军用无人机&#xff0c;到近年来民用无人机和商业无人机的快速发展&#xff0c;无人机行业正逐渐走向成熟阶段。未来随着技术的不断进步和应用领域的不断拓展&#xff0c;无人机行业…

项目7-音乐播放器5+注册账号

1.前端代码 MAPPER Insert("insert into user(username,password) values (#{username},#{password}) ")Integer insertUserInfo(String username,String password); Service public Result insertUserInfo(String username, String oldpassword,String newpasswo…

如何关掉地址空间随机化

如果我们的ru没有密码的话我们要先建一个密码 接着输入 su 进入root 接着输入 echo 0 > /proc/sys/kernel/randomize_va_space 就可以啦 接着可以cat查看是不是显示0&#xff0c;是的话就成功了

【Linux的git操作】

Linux学习笔记---010 Linux的git操作1、什么是gitee2、git 准备工作2.1、查看是否安装了 git 版本工具2.2、安装 git 工具/更新成最新版本2.3、在gitee上创建远程仓库&#xff08;略&#xff09;2.4、提交file的初始化操作 3、git的“三板斧”3.1、add3.2、commit3.3、push3.4、…

Flutter 像素编辑器#03 | 像素图层

theme: cyanosis 本系列&#xff0c;将通过 Flutter 实现一个全平台的像素编辑器应用。源码见开源项目 【pix_editor】 《Flutter 像素编辑器#01 | 像素网格》《Flutter 像素编辑器#02 | 配置编辑》《Flutter 像素编辑器#03 | 像素图层》 上一篇我们实现了编辑配置&#xff0c;…

React + 项目(从基础到实战) -- 第八期

ajax 请求的搭建 引入mockAP接口设计AJAX 通讯 前置知识 HTTP 协议 , 前后端通讯的桥梁API : XMLHttpRequest 和 fetch常用工具axios mock 引入 Mock.js (mockjs.com) 使用 mockJS 前端代码中引入 mockJs定义要模拟的路由 , 返回结果mockJs 劫持ajax请求(返回模拟的结果)…

2024运营级租房源码管理PHP后台+uniapp前端(app+小程序+H5)

内容目录 一、详细介绍二、效果展示1.部分代码2.效果图展示 一、详细介绍 房产系统 一款基于ThinkPHPUniapp开发的房产管理系统&#xff0c;支持小程序、H5、APP&#xff1b;包含房客、房东、经纪人三种身份。核心功能有&#xff1a;新盘销售、房屋租赁、地图找房、房源代理、…

RestFul 风格(SpringMVC学习笔记三)

1、什么是Restful风格&#xff1a; Restful就是一个资源定位及资源操作的风格。不是标准也不是协议&#xff0c;只是一种风格。基于这个风格设计的软件可以更简洁&#xff0c;更有层次&#xff0c;更易于实现缓存等机制。 2、使用Restful风格 接上一个笔记的测试类 package…

『Django』创建app(应用程序)

theme: smartblue 本文简介 点赞 关注 收藏 学会了 在《『Django』环境搭建》中介绍了如何搭建 Django 环境&#xff0c;并且创建了一个 Django 项目。 在刚接触 Django 时有2个非常基础的功能是需要了解的&#xff0c;一个是“app”(应用程序)&#xff0c;另一个是 url(路由…

AIGC算法2:LLM的复读机问题

1. 什么是LLM的复读机问题 字符级别重复&#xff0c;指大模型针对一个字或一个词重复不断的生成例如在电商翻译场景上&#xff0c;会出现“steckdose steckdose steckdose steckdose steckdose steckdose steckdose steckdose…”&#xff1b;语句级别重复&#xff0c;大模型针…