Styling: remove a few redundant parens from object initializer expressions. (#548)
* Styling: remove a few redundant parens from object initializer expressions. * Fix build error.
This commit is contained in:
parent
802424ee08
commit
55bda787ae
2 changed files with 108 additions and 108 deletions
|
|
@ -39,7 +39,7 @@ public class AnnotatedMessageTool
|
|||
|
||||
if (includeImage)
|
||||
{
|
||||
contents.Add(new ImageContentBlock()
|
||||
contents.Add(new ImageContentBlock
|
||||
{
|
||||
Data = TinyImageTool.MCP_TINY_IMAGE.Split(",").Last(),
|
||||
MimeType = "image/png",
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ public class SampleLlmTool
|
|||
|
||||
private static CreateMessageRequestParams CreateRequestSamplingParams(string context, string uri, int maxTokens = 100)
|
||||
{
|
||||
return new CreateMessageRequestParams()
|
||||
return new CreateMessageRequestParams
|
||||
{
|
||||
Messages = [new SamplingMessage()
|
||||
Messages = [new SamplingMessage
|
||||
{
|
||||
Role = Role.User,
|
||||
Content = new TextContentBlock { Text = $"Resource {uri} context: {context}" },
|
||||
|
|
|
|||
Loading…
Reference in a new issue