This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ def initialize(
5050 @site_description = site_description
5151 @time = time
5252 @feature_name = feature_name
53+ @resource_url = resource_url
5354
5455 if post
5556 @post_id = post . id
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ def system_prompt
1515 {site_description}
1616 {participants}
1717 {time}
18+ {resource_url}
1819 PROMPT
1920 end
2021end
@@ -35,13 +36,16 @@ def system_prompt
3536 AiPersona . persona_cache . flush!
3637 end
3738
39+ let ( :resource_url ) { "https://path-to-resource" }
40+
3841 let ( :context ) do
3942 DiscourseAi ::Personas ::BotContext . new (
4043 site_url : Discourse . base_url ,
4144 site_title : "test site title" ,
4245 site_description : "test site description" ,
4346 time : Time . zone . now ,
4447 participants : topic_with_users . allowed_users . map ( &:username ) . join ( ", " ) ,
48+ resource_url : resource_url ,
4549 )
4650 end
4751
@@ -60,6 +64,7 @@ def system_prompt
6064 expect ( system_message ) . to include ( "test site description" )
6165 expect ( system_message ) . to include ( "joe, jane" )
6266 expect ( system_message ) . to include ( Time . zone . now . to_s )
67+ expect ( system_message ) . to include ( resource_url )
6368
6469 tools = rendered . tools
6570
You can’t perform that action at this time.
0 commit comments