Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from .attachment_info import AttachmentInfo
from .attachment_view import AttachmentView
from .audio_card import AudioCard
from .basic_card import BasicCard
from .card import Card
from .card_action import CardAction
from .card_image import CardImage
Expand Down Expand Up @@ -57,7 +56,6 @@
from .hero_card import HeroCard
from .inner_http_error import InnerHttpError
from .invoke_response import InvokeResponse
Comment thread
rodrigobr-msft marked this conversation as resolved.
from .media_card import MediaCard
from .media_event_value import MediaEventValue
from .media_url import MediaUrl
from .message_reaction import MessageReaction
Expand Down Expand Up @@ -127,7 +125,6 @@
"AttachmentInfo",
"AttachmentView",
"AudioCard",
"BasicCard",
"Card",
"CardAction",
"CardImage",
Expand Down Expand Up @@ -158,7 +155,6 @@
"HeroCard",
"InnerHttpError",
"InvokeResponse",
"MediaCard",
"MediaEventValue",
"MediaUrl",
"Mention",
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from contextlib import nullcontext
from copy import copy
from functools import partial
from typing_extensions import deprecated

import re
from typing import (
Expand Down Expand Up @@ -899,39 +898,6 @@ def _remove_mentions(self, context: TurnContext):
):
context.activity.text = context.remove_recipient_mention(context.activity)

@staticmethod
@deprecated(
"Use `load_configuration_from_env` from `microsoft_agents.activity` instead."
)
def parse_env_vars_configuration(vars: dict[str, Any]) -> dict:
"""
Parses environment variables and returns a dictionary with the relevant configuration.

:param vars: Dictionary of environment variable names and values.
:type vars: dict[str, Any]
:return: Parsed configuration dictionary with nested structure.
:rtype: dict
"""
result = {}
for key, value in vars.items():
levels = key.split("__")
current_level = result
last_level = None
for next_level in levels:
if next_level not in current_level:
current_level[next_level] = {}
last_level = current_level
current_level = current_level[next_level]
logger.debug(f"Using environment variable '{key}'")
last_level[levels[-1]] = value

return {
"AGENT_APPLICATION": result["AGENT_APPLICATION"],
"COPILOT_STUDIO_AGENT": result["COPILOT_STUDIO_AGENT"],
"CONNECTIONS": result["CONNECTIONS"],
"CONNECTIONS_MAP": result["CONNECTIONS_MAP"],
}

async def _initialize_state(self, context: TurnContext) -> StateT:
Comment thread
rodrigobr-msft marked this conversation as resolved.
if self._turn_state_factory:
logger.debug("Using custom turn state factory")
Expand Down
Loading
Loading