google-cloud-dotnet icon indicating copy to clipboard operation
google-cloud-dotnet copied to clipboard

Feature Request: Integrate Microsoft.Extensions.AI into Google.Cloud.AIPlatform

Open Krzysztof318 opened this issue 1 year ago • 28 comments

Feature Request: Integrate Microsoft.Extensions.AI with Google.Cloud.AIPlatform

Is your feature request related to a problem? Please describe.

While Google Cloud SDK for .NET and specifically the Google.Cloud.AIPlatform library provide robust tools for interacting with Google AI services, the current implementations lack a unified abstraction layer compatible with Microsoft.Extensions.AI.

Describe the solution you'd like

I propose integrating Microsoft.Extensions.AI with Google.Cloud.AIPlatform (v1/v1beta). This library offers a unified API abstraction for AI services, similar to logging and dependency injection abstractions in .NET. By leveraging Microsoft.Extensions.AI, we can achieve:

  • Aligned development experience: Developers can utilize familiar abstractions, streamlining the integration of Google AI services.
  • Enhanced flexibility: Developers can easily switch between Google AI services and other providers with minimal code changes.
  • Improved code maintainability: A consistent abstraction layer promotes the creation of modular and reusable AI components.

Additional context

  • Microsoft.Extensions.AI announcement: Microsoft DevBlogs
  • Real-world example: Implementation of Microsoft.Extensions.AI in AWS SDK for .NET AWS Pull Request
  • Initial PR as a concept: #13814

Questions to the Google Team

  1. Potential challenges: What are the potential challenges and trade-offs of adopting this approach in your repo?
  2. Preferred implementation: What would be the preferred approach for implementing this integration? Would it involve creating new project or extend existing AIPlatform projects? It would be best option to be consistent with Microsoft.Extensions.AI idea but I am open to suggestions from your side.

I'm eager to discuss this proposal further and go work on pull request when we will agree on the details.

I believe integrating Microsoft.Extensions.AI with Google.Cloud.AIPlatform would significantly benefit the .NET developer community and foster a more unified approach to AI development on Google Cloud.

cc: @stephentoub

Krzysztof318 avatar Nov 13 '24 23:11 Krzysztof318

@Krzysztof318 thanks! We need to figure out a few things internally, so we need a couple of days. I'll keep this issue updated.

amanda-tarafa avatar Nov 14 '24 06:11 amanda-tarafa

Just here to say, we are still looking into this.

amanda-tarafa avatar Nov 27 '24 07:11 amanda-tarafa

@amanda-tarafa Hi, any updates?

Krzysztof318 avatar Dec 16 '24 13:12 Krzysztof318

No, I'm sorry. It's unlikely we'll have any updates before end of year.

I will share any information I can as soon as I have it.

amanda-tarafa avatar Dec 16 '24 19:12 amanda-tarafa

Hello in new year, I just remind about this :)

Krzysztof318 avatar Jan 10 '25 17:01 Krzysztof318

Hello, thanks for the reminder. We have not forgotten about it!

amanda-tarafa avatar Jan 10 '25 19:01 amanda-tarafa

Hello @amanda-tarafa I inderstand you are currently busy with much more important tasks but could you provide approximate date about starting this feature? I will glad to write entire code for that but first I have to know your expectations.

Krzysztof318 avatar Jan 25 '25 23:01 Krzysztof318

@Krzysztof318 I'm really sorry I cannot share a timeline for this. But this is something we are still looking closely into, and not in the least forgotten. As soon as I have details I can share I will update the issue.

amanda-tarafa avatar Jan 27 '25 18:01 amanda-tarafa

@Krzysztof318 We'll be working on this in the next coming weeks to produce a prototype. Because we'll be providing ongoing maintenance, we'll do the main work ourselves, but we are happy to accept contributions to fill in the gaps, and also to have your review on PRs.

Just note, it's just a prototype for the time being.

amanda-tarafa avatar Feb 21 '25 17:02 amanda-tarafa

@Krzysztof318 We'll be working on this in the next coming weeks to produce a prototype. Because we'll be providing ongoing maintenance, we'll do the main work ourselves, but we are happy to accept contributions to fill in the gaps, and also to have your review on PRs.

This is great. Please let me know if/how I can help.

stephentoub avatar Feb 21 '25 22:02 stephentoub

@amanda-tarafa Thank you for your response. The most important thing is that we are moving forward with the project. I am looking forward to the prototype.

Krzysztof318 avatar Feb 22 '25 11:02 Krzysztof318

Hi @amanda-tarafa,

I'm on the team working on Microsoft.Extensions.AI. Just checking in if there'd been any progress on this issue.

As Stephen mentioned, let us know if / how we can help here.

luisquintanilla avatar Apr 29 '25 22:04 luisquintanilla

Nothing to share at the moment. We'll update this issue as soon as we are able.

amanda-tarafa avatar Apr 29 '25 22:04 amanda-tarafa

Would it be helpful if we submitted a draft PR showing what it would look like, and iterate from there?

stephentoub avatar Apr 29 '25 23:04 stephentoub

@stephentoub Would you and others be up for a chat about this and some other touchpoints we share? Thinking also of https://github.com/dotnet/aspnetcore/issues/61817. Let me know and I can look into setting things up.

@Krzysztof318 and others requesting this integration, we are still looking into supporting this as soon as we are able.

amanda-tarafa avatar May 07 '25 16:05 amanda-tarafa

Would you and others be up for a chat about this and some other touchpoints we share?

@amanda-tarafa that'd be great.

luisquintanilla avatar May 07 '25 16:05 luisquintanilla

@amanda-tarafa I sent you a message through LinkedIn so that we can connect and set up a meeting about Microsoft.Extensions.AI and ASP.NET auth. /cc @jskeet.

jeffhandley avatar May 19 '25 17:05 jeffhandley

Any updates on this?

tapizquent-gail avatar Sep 02 '25 21:09 tapizquent-gail

@amanda-tarafa I sent you a message through LinkedIn so that we can connect and set up a meeting about Microsoft.Extensions.AI and ASP.NET auth. /cc @jskeet.

@jeffhandley - Can somebody share results of this meeting please?

AlexanderMagdysyuk avatar Sep 10 '25 02:09 AlexanderMagdysyuk

Quick update: this is still on our backlog, but with no current ETA. It's possible that we can get it in for Q4, but that's just a possibility.

I'm sorry for the wait, it's just a matter of many competing priorities at the moment.

amanda-tarafa avatar Sep 11 '25 16:09 amanda-tarafa

I will submit a PR for this once https://github.com/googleapis/google-cloud-dotnet/pull/15131 is merged.

stephentoub avatar Oct 06 '25 15:10 stephentoub

I will submit a PR for this once #15131 is merged.

#15131 is merged, thanks!

amanda-tarafa avatar Oct 06 '25 16:10 amanda-tarafa

I'm reopening, we still have some tweaking to do on our side re project generation, etc.

amanda-tarafa avatar Oct 14 '25 19:10 amanda-tarafa

I'm working on some of the tweaks, aiming to release a beta at some point next week.

amanda-tarafa avatar Oct 16 '25 16:10 amanda-tarafa