Skip to content

Commit c6d2cfc

Browse files
committed
Address PR review comments
1 parent 5fa81d4 commit c6d2cfc

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

samples/ComplianceServer/Prompts/CompliancePrompts.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,18 @@ namespace ComplianceServer.Prompts;
88
public class CompliancePrompts
99
{
1010
// Sample base64 encoded 1x1 red PNG pixel for testing
11-
const string TEST_IMAGE_BASE64 =
11+
private const string TestImageBase64 =
1212
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8DwHwAFBQIAX8jx0gAAAABJRU5ErkJggg==";
1313

1414
[McpServerPrompt(Name = "test_simple_prompt"), Description("Simple prompt without arguments")]
1515
public static string SimplePrompt() => "This is a simple prompt without arguments";
1616

1717
[McpServerPrompt(Name = "test_prompt_with_arguments"), Description("Parameterized prompt")]
18-
public static IEnumerable<ChatMessage> ParameterizedPrompt(
18+
public static string ParameterizedPrompt(
1919
[Description("First test argument")] string arg1,
2020
[Description("Second test argument")] string arg2)
2121
{
22-
return [
23-
new ChatMessage(ChatRole.User,$"Prompt with arguments: arg1={arg1}, arg2={arg2}"),
24-
];
22+
return $"Prompt with arguments: arg1={arg1}, arg2={arg2}";
2523
}
2624

2725
[McpServerPrompt(Name = "test_prompt_with_embedded_resource"), Description("Prompt with embedded resource")]
@@ -56,7 +54,7 @@ public static IEnumerable<PromptMessage> PromptWithImage()
5654
Content = new ImageContentBlock
5755
{
5856
MimeType = "image/png",
59-
Data = TEST_IMAGE_BASE64
57+
Data = TestImageBase64
6058
}
6159
},
6260
new PromptMessage

samples/ComplianceServer/Resources/ComplianceResources.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace ComplianceServer.Resources;
99
public class ComplianceResources
1010
{
1111
// Sample base64 encoded 1x1 red PNG pixel for testing
12-
private const string TEST_IMAGE_BASE64 =
12+
private const string TestImageBase64 =
1313
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8DwHwAFBQIAX8jx0gAAAABJRU5ErkJggg==";
1414

1515
/// <summary>
@@ -33,7 +33,7 @@ public static BlobResourceContents StaticBinary()
3333
{
3434
Uri = "test://static-binary",
3535
MimeType = "image/png",
36-
Blob = TEST_IMAGE_BASE64
36+
Blob = TestImageBase64
3737
};
3838
}
3939

samples/ComplianceServer/Tools/ComplianceTools.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ namespace ComplianceServer.Tools;
1010
public class ComplianceTools
1111
{
1212
// Sample base64 encoded 1x1 red PNG pixel for testing
13-
private const string TEST_IMAGE_BASE64 =
13+
private const string TestImageBase64 =
1414
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8DwHwAFBQIAX8jx0gAAAABJRU5ErkJggg==";
1515

1616
// Sample base64 encoded minimal WAV file for testing
17-
private const string TEST_AUDIO_BASE64 =
17+
private const string TestAudioBase64 =
1818
"UklGRiYAAABXQVZFZm10IBAAAAABAAEAQB8AAAB9AAACABAAZGF0YQIAAAA=";
1919

2020
/// <summary>
@@ -36,7 +36,7 @@ public static ImageContentBlock ImageContent()
3636
{
3737
return new ImageContentBlock
3838
{
39-
Data = TEST_IMAGE_BASE64,
39+
Data = TestImageBase64,
4040
MimeType = "image/png"
4141
};
4242
}
@@ -50,7 +50,7 @@ public static AudioContentBlock AudioContent()
5050
{
5151
return new AudioContentBlock
5252
{
53-
Data = TEST_AUDIO_BASE64,
53+
Data = TestAudioBase64,
5454
MimeType = "audio/wav"
5555
};
5656
}
@@ -83,7 +83,7 @@ public static ContentBlock[] MultipleContentTypes()
8383
return
8484
[
8585
new TextContentBlock { Text = "Multiple content types test:" },
86-
new ImageContentBlock { Data = TEST_IMAGE_BASE64, MimeType = "image/png" },
86+
new ImageContentBlock { Data = TestImageBase64, MimeType = "image/png" },
8787
new EmbeddedResourceBlock
8888
{
8989
Resource = new TextResourceContents

0 commit comments

Comments
 (0)