Skip to content

Conversation

@Ragini-Microsoft
Copy link
Contributor

Purpose

This pull request introduces several updates to enhance functionality, improve internationalization, and refactor Azure credential handling. Key changes include adding environment-specific Azure credential management, introducing locale-based date formatting, and updating various components to support user browser language preferences.

Internationalization and Localization Enhancements:

  • Added methods in AppConfig to get and set the user's local browser language, and updated the InputTask endpoint to handle user language preferences (src/backend/app_config.py, src/backend/app_kernel.py). [1] [2] [3]
  • Implemented locale-based date formatting for agent messages using the format_dates_in_messages function (src/backend/app_kernel.py).
  • Updated HrTools and ProductTools to include locale-specific date formatting instructions (src/backend/kernel_tools/hr_tools.py, src/backend/kernel_tools/product_tools.py). [1] [2]

Azure Credential Refactoring:

  • Replaced DefaultAzureCredential with a new utility function get_azure_credential to handle environment-specific Azure credential selection (src/backend/helpers/azure_credential_utils.py).
  • Updated all instances of Azure credential usage to leverage the new get_azure_credential utility across the codebase (src/backend/app_config.py, src/backend/context/cosmos_memory_kernel.py, src/backend/config_kernel.py). [1] [2] [3]

Backend API Enhancements:

  • Added a new /api/user_browser_language endpoint to receive and store the user's browser language preference (src/backend/app_kernel.py).
  • Improved error handling for rate limit exceptions in the input_task_endpoint by extracting and formatting error messages (src/backend/app_kernel.py). [1] [2]

Infrastructure Updates:

  • Introduced the APP_ENV variable in infra/main.bicep and .env.sample for environment-specific configurations. [1] [2] [3]

Dependency Additions:

  • Added babel to requirements.txt for date and internationalization support.

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

@Prajwal-Microsoft Prajwal-Microsoft merged commit 3b8de8e into main Jul 31, 2025
10 checks passed
@github-actions
Copy link

🎉 This PR is included in version 2.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants