feat: add chat style

This commit is contained in:
lilong.129
2025-05-17 01:00:40 +08:00
parent 6ceab19fef
commit 8346fb179c
4 changed files with 56 additions and 32 deletions

View File

@@ -311,9 +311,6 @@ func (p *Parser) CallMCPTool(ctx context.Context, serverName,
return nil, fmt.Errorf("mcphost is not initialized")
}
tools := p.MCPHost.GetTools(ctx)
log.Warn().Interface("tools", tools).Msg("tools")
result, err := p.MCPHost.InvokeTool(ctx, serverName, funcName, arguments)
if err != nil {
return nil, errors.Wrapf(err, "invoke tool %s/%s failed", serverName, funcName)