From c098bee2ecff8e27519542f4a7ffe98d47bd959e Mon Sep 17 00:00:00 2001 From: Axel Peytavin Date: Fri, 9 Feb 2024 09:21:51 -0800 Subject: [PATCH] Add personas to NaturalFrontendOptions --- examples/social_network/main.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/social_network/main.py b/examples/social_network/main.py index 7d49f78..c892f44 100644 --- a/examples/social_network/main.py +++ b/examples/social_network/main.py @@ -15,7 +15,19 @@ app = NaturalFrontend( app, openai_api_key=creds["key"], - options=NaturalFrontendOptions(frontend_endpoint=""), + options=NaturalFrontendOptions( + frontend_endpoint="frontend", + personas=[ + { + "persona": "Twitter Lover Reader", + "description": "User that loves reading posts on a Twitter-like platform", + }, + { + "persona": "Administrator", + "description": "User that can see and change all posts and users", + }, + ], + ), )