mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 16:27:21 +00:00
Added an analyzer which keeps line breaks LF on every system (#1193)
This commit is contained in:
1 parent
b1c1f13993
commit
65d50de033
96 files changed
+741
-393
No files matched your search
+7
-7
@@ -18,13 +18,13 @@ public abstract class StatefulAssistantComponentBase : NamedAssistantComponentBa
|
||||
var builder = new StringBuilder();
|
||||
var fieldName = this.Type.ToString().ToLowerInvariant();
|
||||
|
||||
builder.AppendLine($"[{fieldName}]");
|
||||
builder.Append("name: ").AppendLine(this.Name);
|
||||
builder.AppendLine("context:");
|
||||
builder.AppendLine(!string.IsNullOrEmpty(this.UserPrompt) ? this.UserPrompt : "<not provided>");
|
||||
builder.AppendLine("value:");
|
||||
builder.AppendLine(!string.IsNullOrEmpty(value) ? value : "<empty>");
|
||||
builder.Append($"[/{fieldName}]").AppendLine().AppendLine();
|
||||
builder.AppendLineLF($"[{fieldName}]");
|
||||
builder.Append("name: ").AppendLineLF(this.Name);
|
||||
builder.AppendLineLF("context:");
|
||||
builder.AppendLineLF(!string.IsNullOrEmpty(this.UserPrompt) ? this.UserPrompt : "<not provided>");
|
||||
builder.AppendLineLF("value:");
|
||||
builder.AppendLineLF(!string.IsNullOrEmpty(value) ? value : "<empty>");
|
||||
builder.Append($"[/{fieldName}]").AppendLineLF().AppendLineLF();
|
||||
return builder.ToString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user