-
Couldn't load subscription status.
- Fork 610
.NET: Add dotnet video translation agent #1671
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
base: main
Are you sure you want to change the base?
Conversation
…pload and public URL ingestion helper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a .NET C# implementation of the video translation agent sample that mirrors the Python version, demonstrating how to use the Microsoft.Extensions.AI.Agents framework to wrap Azure AI Speech's Video Translation API with 7 tool functions for translating videos.
Key Changes:
- Adds a complete .NET port of the Python video translation agent sample
- Implements VideoTranslationClient for Azure Video Translation API interactions
- Provides 7 tool functions: upload video, download/upload video, translate video, list translations, get details, delete translation, and list iterations
- Includes comprehensive documentation and setup instructions
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
python/samples/getting_started/agents/video_translation_agent/video_translation_util.py |
Utility functions for Python sample (dataclass conversion, URL manipulation, env loading) |
python/samples/getting_started/agents/video_translation_agent/video_translation_enum.py |
Python enums for voice kinds, regions, operation states, and file types |
python/samples/getting_started/agents/video_translation_agent/video_translation_dataclass.py |
Python dataclass models for translation/iteration definitions |
python/samples/getting_started/agents/video_translation_agent/video_translation_client.py |
Python HTTP client for Azure Video Translation API |
python/samples/getting_started/agents/video_translation_agent/requirements.txt |
Python package dependencies |
python/samples/getting_started/agents/video_translation_agent/openai.env |
Environment variable template for Python sample |
python/samples/getting_started/agents/video_translation_agent/agent.py |
Python agent implementation with 7 tool functions |
dotnet/samples/GettingStarted/Agents/VideoTranslationAgent/VideoTranslationModels.cs |
C# data models for video translation service |
dotnet/samples/GettingStarted/Agents/VideoTranslationAgent/VideoTranslationEnums.cs |
C# enums for voice kinds, operation statuses, and file types |
dotnet/samples/GettingStarted/Agents/VideoTranslationAgent/VideoTranslationClient.cs |
C# HTTP client for Azure Video Translation service |
dotnet/samples/GettingStarted/Agents/VideoTranslationAgent/VideoTranslationAgent.csproj |
Project file with package references |
dotnet/samples/GettingStarted/Agents/VideoTranslationAgent/README.md |
Comprehensive documentation for the .NET sample |
dotnet/samples/GettingStarted/Agents/VideoTranslationAgent/Program.cs |
Main C# program with agent setup and tool implementations |
dotnet/Directory.Packages.props |
Added Azure.Storage.Blobs package reference |
python/samples/getting_started/agents/video_translation_agent/video_translation_client.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/agents/video_translation_agent/video_translation_client.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/agents/video_translation_agent/video_translation_client.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/agents/video_translation_agent/video_translation_client.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/agents/video_translation_agent/video_translation_client.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/agents/video_translation_agent/openai.env
Outdated
Show resolved
Hide resolved
…openai.env Co-authored-by: Copilot <[email protected]>
…video_translation_client.py Co-authored-by: Copilot <[email protected]>
…video_translation_client.py Co-authored-by: Copilot <[email protected]>
…video_translation_client.py Co-authored-by: Copilot <[email protected]>
…video_translation_client.py Co-authored-by: Copilot <[email protected]>
…video_translation_client.py Co-authored-by: Copilot <[email protected]>
Motivation and Context
Add dotnet video translation agent (builds on top of the python video translation agent changes #1373)
Description
Added a .NET C# port of the video translation agent sample that uses the Microsoft.Extensions.AI.Agents framework to wrap Azure AI Speech's Video Translation API with 7 tool functions for translating videos, following the existing sample patterns in the codebase.
Contribution Checklist