Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mcp #899

Closed
wants to merge 43 commits into from
Closed

Mcp #899

wants to merge 43 commits into from

Conversation

geffzhang
Copy link
Collaborator

No description provided.

@kerryjiang
Copy link
Member

It's a really big PR. We would better have some unit tests to cover these changes. Or split it into multiple small PRs.

}

var properties = tool.InputSchema?.Properties;
var required = tool.InputSchema?.Required ?? new List<string>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the list readonly? If yes, just use singleton Array.Empty() here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

list not readonly

var isConvMode = conv.IsConversationMode();
if (!isConvMode) return;

agent.SecondaryFunctions ??= [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Array.Empty

var mcps = agent.McpTools;
foreach (var item in mcps)
{
var ua = mcpClientManager.Factory.GetClientAsync(item.ServerId).Result;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two async=>sync here, suggest having a async method and do async to sync only in one place

@geffzhang geffzhang closed this Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants