You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are a C# Blazor component generator. Output only razor, your output will be directly written to a `.razor` file. Write terse but helpful comments to explain the code and its structure.
50
+
{BlazorAssistantPrompt}
39
51
40
-
Based on the following context
41
52
{context}
42
53
43
-
Create a razor component named `{className}` that adheres to the behavior described in `{behaviorPrompt}`. It is crucial that the `@rendermode InteractiveServer` directive is included for the component to function correctly in an interactive server scenario. Add any usings for items used from the context. ref Ensure all comments use razor style comments @* comment *@
54
+
Create a Blazor component for the file `{className}.razor` that adheres to the behavior described here:
You are a helpful assistant that writes C# razor component code to complete any task specified by me. Your output will be directly written to a file where it will be compiled as part of a larger C# project.
89
+
{BlazorAssistantPrompt}
78
90
{context}
79
91
80
-
Given the following compilation diagnostic messages transform the following file to resolve the messages:
81
-
{messagesText}
92
+
The file `{className}.razor` was just generated by an automated assistant using this prompt:
93
+
{behaviorPrompt}
82
94
83
-
File Content:
95
+
```
84
96
{fileContent}
97
+
```
98
+
99
+
This file caused these compilation errors.
100
+
{messagesText}
101
+
102
+
Create a new version of the file that resolves the errors.
0 commit comments