Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ChatRPG/API/Tools/UpdateGraphTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class UpdateGraphTool(
IConfiguration configuration,
Campaign campaign,
string playerInput,
string examinerVerdict,
string name,
string? description = null) : AgentTool(name, description)
{
Expand Down Expand Up @@ -194,7 +195,7 @@ private static bool IsValidJson(UpdateGraphInput jsonInput, out string? errorMes
query.Append(configuration.GetSection("SystemPrompts").GetValue<string>("CheckGraphUpdateConditions")!
.Replace("{graph}", campaign.NarrativeGraph!.Serialize())
.Replace("{summary}", ToolUtilities.ConstructSummary(campaign, _shouldIncludePreviousMessages)
+ $"\nPlayer input: {playerInput}")
+ $"\nPlayer input: {playerInput}\nAdherence verdict: {examinerVerdict}")
.Replace("{edge}", edge.Serialize())
.Replace("{history}", previousAttemptHistory));

Expand Down
Loading
Loading