Skip to content

Conversation

@kkchandi
Copy link

@kkchandi kkchandi commented Oct 23, 2025

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

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings October 23, 2025 18:13
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python .NET labels Oct 23, 2025
@github-actions github-actions bot changed the title Add dotnet video translation agent Python: Add dotnet video translation agent Oct 23, 2025
@github-actions github-actions bot changed the title Python: Add dotnet video translation agent .NET: Add dotnet video translation agent Oct 23, 2025
Copy link
Contributor

Copilot AI left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants