microsoft-agents-hosting-core 1.10.0.dev7__tar.gz → 1.10.0.dev8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents_hosting_core.egg-info → microsoft_agents_hosting_core-1.10.0.dev8}/PKG-INFO +2 -2
- microsoft_agents_hosting_core-1.10.0.dev8/VERSION.txt +1 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/channel_service_adapter.py +118 -107
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8/microsoft_agents_hosting_core.egg-info}/PKG-INFO +2 -2
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
- microsoft_agents_hosting_core-1.10.0.dev7/VERSION.txt +0 -1
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/LICENSE +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/MANIFEST.in +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_http_adapter_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_oauth/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_oauth/_flow_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_oauth/_flow_storage_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_oauth/_oauth_flow.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_utils/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_utils/_service_set.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_utils/_turn_context_wrapper.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/activity_handler.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/agent.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_routes/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_routes/_route.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_routes/_route_list.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_routes/route_rank.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_selector.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_type_defs.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/_type_defs.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/adaptive_card.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/models.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/agent_application.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/app_error.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/app_options.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/attachment_downloader.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/input_file.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/m365_attachment_downloader.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/_authorization_handler.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/connector_user_authorization.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_sign_in_response.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_sign_in_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/authorization.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/authorization_settings.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/conversation.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/conversation_builder.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/conversation_reference_builder.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/create_conversation_options.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/proactive.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/proactive_options.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/telemetry/_utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/query.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/conversation_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/temp_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/turn_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/streaming/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/streaming/citation.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/streaming/citation_util.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/streaming/streaming_response.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/telemetry/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/typing_indicator.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/_entra_issuers.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/_helpers.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/_log_config.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/auth_types.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/claims_identity.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connection_manager.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/agent_auth_configuration.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/connection_manager.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/connection_settings_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/connections.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/connections_map.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/_authorize_request.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/jwt_connection_settings.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/jwt_token_validator.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/token_validation_configuration.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/card_factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/channel_adapter.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/_utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/_base_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/agent_sign_in.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/connector_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/user_token.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/user_token_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/mcs/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/mcs/mcs_connector_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/_request_span_wrapper.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/connector_spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/user_token_client_spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/errors/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/errors/error_resources.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/header_propagation/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/header_propagation/agentic_header_provider.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/header_propagation/header_propagation_context.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/header_propagation/header_value_provider.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/http/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/http/_channel_service_routes.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/http/_http_request_protocol.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/http/_http_response.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/message_factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/middleware_set.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/py.typed +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/_connector.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/_middleware.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/_utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/_validator.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/outbound_host_validator.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/state/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/state/agent_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/state/user_state.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/storage.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_file_store.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_info.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_logger.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_memory_store.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_store.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/metrics.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/attributes.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/base_span_wrapper.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/resource.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/simple_span_wrapper.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/type_defs.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/turn_context/__init__.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/turn_context/constants.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/turn_context/spans.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/utils.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/turn_context.py +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/pyproject.toml +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/readme.md +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/setup.cfg +0 -0
- {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-hosting-core
|
|
3
|
-
Version: 1.10.0.
|
|
3
|
+
Version: 1.10.0.dev8
|
|
4
4
|
Summary: Core library for Microsoft Agents
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
License-Expression: MIT
|
|
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
|
|
|
15
15
|
Requires-Python: >=3.10
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: microsoft-agents-activity==1.10.0.
|
|
18
|
+
Requires-Dist: microsoft-agents-activity==1.10.0.dev8
|
|
19
19
|
Requires-Dist: pyjwt>=2.10.1
|
|
20
20
|
Requires-Dist: isodate>=0.6.1
|
|
21
21
|
Requires-Dist: python-dotenv>=1.1.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.10.0.dev8
|
|
@@ -264,56 +264,64 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
|
|
|
264
264
|
|
|
265
265
|
use_anonymous_auth_callback = claims_identity.allow_anonymous
|
|
266
266
|
|
|
267
|
-
|
|
268
|
-
connector_client = (
|
|
269
|
-
await self._channel_service_client_factory.create_connector_client(
|
|
270
|
-
None,
|
|
271
|
-
claims_identity,
|
|
272
|
-
service_url,
|
|
273
|
-
audience,
|
|
274
|
-
use_anonymous=use_anonymous_auth_callback,
|
|
275
|
-
)
|
|
276
|
-
)
|
|
267
|
+
async with AsyncExitStack() as cleanup:
|
|
277
268
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
269
|
+
# Create the connector client to use for outbound requests.
|
|
270
|
+
connector_client = (
|
|
271
|
+
await self._channel_service_client_factory.create_connector_client(
|
|
272
|
+
None,
|
|
273
|
+
claims_identity,
|
|
274
|
+
service_url,
|
|
275
|
+
audience,
|
|
276
|
+
use_anonymous=use_anonymous_auth_callback,
|
|
277
|
+
)
|
|
282
278
|
)
|
|
283
|
-
)
|
|
284
279
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
280
|
+
# Make the actual create conversation call using the connector.
|
|
281
|
+
try:
|
|
282
|
+
create_conversation_result = (
|
|
283
|
+
await connector_client.conversations.create_conversation(
|
|
284
|
+
conversation_parameters
|
|
285
|
+
)
|
|
286
|
+
)
|
|
287
|
+
except BaseException:
|
|
288
|
+
await connector_client.close()
|
|
289
|
+
raise
|
|
290
|
+
|
|
291
|
+
# Create the create activity to communicate the results to the application.
|
|
292
|
+
create_activity = self._create_create_activity(
|
|
293
|
+
create_conversation_result,
|
|
294
|
+
channel_id,
|
|
295
|
+
service_url,
|
|
296
|
+
conversation_parameters,
|
|
297
|
+
)
|
|
289
298
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
connector_client # for back-compat
|
|
299
|
-
)
|
|
299
|
+
# Create a turn context and run the pipeline.
|
|
300
|
+
context = self._create_turn_context(
|
|
301
|
+
claims_identity,
|
|
302
|
+
None,
|
|
303
|
+
create_activity,
|
|
304
|
+
)
|
|
305
|
+
cleanup.push_async_callback(context._aclose)
|
|
306
|
+
cleanup.push_async_callback(connector_client.close)
|
|
300
307
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
context, claims_identity, use_anonymous_auth_callback
|
|
308
|
+
context.services.set(ConnectorClientBase, connector_client)
|
|
309
|
+
context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
|
|
310
|
+
connector_client # for back-compat
|
|
305
311
|
)
|
|
306
|
-
)
|
|
307
|
-
context.services.set(UserTokenClientBase, user_token_client)
|
|
308
|
-
context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
|
|
309
|
-
user_token_client # for back-compat
|
|
310
|
-
)
|
|
311
312
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
# Create a UserTokenClient instance for the application to use. (For example, in the OAuthPrompt.)
|
|
314
|
+
user_token_client = (
|
|
315
|
+
await self._channel_service_client_factory.create_user_token_client(
|
|
316
|
+
context, claims_identity, use_anonymous_auth_callback
|
|
317
|
+
)
|
|
318
|
+
)
|
|
315
319
|
cleanup.push_async_callback(user_token_client.close)
|
|
316
|
-
|
|
320
|
+
|
|
321
|
+
context.services.set(UserTokenClientBase, user_token_client)
|
|
322
|
+
context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
|
|
323
|
+
user_token_client # for back-compat
|
|
324
|
+
)
|
|
317
325
|
await self.run_pipeline(context, callback)
|
|
318
326
|
|
|
319
327
|
async def process_proactive(
|
|
@@ -326,43 +334,45 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
|
|
|
326
334
|
|
|
327
335
|
use_anonymous_auth_callback = claims_identity.allow_anonymous
|
|
328
336
|
|
|
329
|
-
|
|
330
|
-
context = self._create_turn_context(
|
|
331
|
-
claims_identity,
|
|
332
|
-
audience,
|
|
333
|
-
activity=continuation_activity,
|
|
334
|
-
)
|
|
335
|
-
|
|
336
|
-
user_token_client = (
|
|
337
|
-
await self._channel_service_client_factory.create_user_token_client(
|
|
338
|
-
context, claims_identity, use_anonymous_auth_callback
|
|
339
|
-
)
|
|
340
|
-
)
|
|
341
|
-
context.services.set(UserTokenClientBase, user_token_client)
|
|
342
|
-
context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
|
|
343
|
-
user_token_client # for back-compat
|
|
344
|
-
)
|
|
337
|
+
async with AsyncExitStack() as cleanup:
|
|
345
338
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
await self._channel_service_client_factory.create_connector_client(
|
|
349
|
-
context,
|
|
339
|
+
# Create a turn context and run the pipeline.
|
|
340
|
+
context = self._create_turn_context(
|
|
350
341
|
claims_identity,
|
|
351
|
-
continuation_activity.service_url,
|
|
352
342
|
audience,
|
|
353
|
-
|
|
343
|
+
activity=continuation_activity,
|
|
354
344
|
)
|
|
355
|
-
)
|
|
356
|
-
context.services.set(ConnectorClientBase, connector_client)
|
|
357
|
-
context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
|
|
358
|
-
connector_client # for back-compat
|
|
359
|
-
)
|
|
360
|
-
|
|
361
|
-
# Run the pipeline and release resources in reverse registration order.
|
|
362
|
-
async with AsyncExitStack() as cleanup:
|
|
363
345
|
cleanup.push_async_callback(context._aclose)
|
|
346
|
+
|
|
347
|
+
user_token_client = (
|
|
348
|
+
await self._channel_service_client_factory.create_user_token_client(
|
|
349
|
+
context, claims_identity, use_anonymous_auth_callback
|
|
350
|
+
)
|
|
351
|
+
)
|
|
364
352
|
cleanup.push_async_callback(user_token_client.close)
|
|
353
|
+
|
|
354
|
+
context.services.set(UserTokenClientBase, user_token_client)
|
|
355
|
+
context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
|
|
356
|
+
user_token_client # for back-compat
|
|
357
|
+
)
|
|
358
|
+
|
|
359
|
+
# Create the connector client to use for outbound requests.
|
|
360
|
+
connector_client = (
|
|
361
|
+
await self._channel_service_client_factory.create_connector_client(
|
|
362
|
+
context,
|
|
363
|
+
claims_identity,
|
|
364
|
+
continuation_activity.service_url,
|
|
365
|
+
audience,
|
|
366
|
+
use_anonymous=use_anonymous_auth_callback,
|
|
367
|
+
)
|
|
368
|
+
)
|
|
365
369
|
cleanup.push_async_callback(connector_client.close)
|
|
370
|
+
|
|
371
|
+
context.services.set(ConnectorClientBase, connector_client)
|
|
372
|
+
context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
|
|
373
|
+
connector_client # for back-compat
|
|
374
|
+
)
|
|
375
|
+
|
|
366
376
|
await self.run_pipeline(context, callback)
|
|
367
377
|
|
|
368
378
|
def _resolve_if_connector_client_is_needed(self, activity: Activity) -> bool:
|
|
@@ -416,51 +426,52 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
|
|
|
416
426
|
|
|
417
427
|
use_anonymous_auth_callback = claims_identity.allow_anonymous
|
|
418
428
|
|
|
419
|
-
|
|
420
|
-
context = self._create_turn_context(
|
|
421
|
-
claims_identity,
|
|
422
|
-
outgoing_audience,
|
|
423
|
-
activity=activity,
|
|
424
|
-
)
|
|
429
|
+
async with AsyncExitStack() as cleanup:
|
|
425
430
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
431
|
+
# Create a turn context and run the pipeline.
|
|
432
|
+
context = self._create_turn_context(
|
|
433
|
+
claims_identity,
|
|
434
|
+
outgoing_audience,
|
|
435
|
+
activity=activity,
|
|
430
436
|
)
|
|
431
|
-
|
|
432
|
-
context.services.set(UserTokenClientBase, user_token_client)
|
|
433
|
-
context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
|
|
434
|
-
user_token_client # for back-compat
|
|
435
|
-
)
|
|
437
|
+
cleanup.push_async_callback(context._aclose)
|
|
436
438
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
await self._channel_service_client_factory.create_connector_client(
|
|
442
|
-
context,
|
|
443
|
-
claims_identity,
|
|
444
|
-
activity.service_url,
|
|
445
|
-
outgoing_audience,
|
|
446
|
-
scopes,
|
|
447
|
-
use_anonymous_auth_callback,
|
|
439
|
+
# Create a UserTokenClient instance for the OAuth flow.
|
|
440
|
+
user_token_client = (
|
|
441
|
+
await self._channel_service_client_factory.create_user_token_client(
|
|
442
|
+
context, claims_identity, use_anonymous_auth_callback
|
|
448
443
|
)
|
|
449
444
|
)
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
445
|
+
cleanup.push_async_callback(user_token_client.close)
|
|
446
|
+
|
|
447
|
+
context.services.set(UserTokenClientBase, user_token_client)
|
|
448
|
+
context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
|
|
449
|
+
user_token_client # for back-compat
|
|
453
450
|
)
|
|
454
451
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
452
|
+
# Create the connector client to use for outbound requests.
|
|
453
|
+
connector_client: ConnectorClientBase | None = None
|
|
454
|
+
if self._resolve_if_connector_client_is_needed(activity):
|
|
455
|
+
connector_client = (
|
|
456
|
+
await self._channel_service_client_factory.create_connector_client(
|
|
457
|
+
context,
|
|
458
|
+
claims_identity,
|
|
459
|
+
activity.service_url,
|
|
460
|
+
outgoing_audience,
|
|
461
|
+
scopes,
|
|
462
|
+
use_anonymous_auth_callback,
|
|
463
|
+
)
|
|
464
|
+
)
|
|
459
465
|
cleanup.push_async_callback(connector_client.close)
|
|
466
|
+
|
|
467
|
+
context.services.set(ConnectorClientBase, connector_client)
|
|
468
|
+
context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
|
|
469
|
+
connector_client # for back-compat
|
|
470
|
+
)
|
|
460
471
|
await self.run_pipeline(context, callback)
|
|
461
472
|
|
|
462
|
-
|
|
463
|
-
|
|
473
|
+
# If there are any results they will have been left on the TurnContext.
|
|
474
|
+
return self._process_turn_results(context)
|
|
464
475
|
|
|
465
476
|
def create_claims_identity(self, agent_app_id: str = "") -> ClaimsIdentity:
|
|
466
477
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-hosting-core
|
|
3
|
-
Version: 1.10.0.
|
|
3
|
+
Version: 1.10.0.dev8
|
|
4
4
|
Summary: Core library for Microsoft Agents
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
License-Expression: MIT
|
|
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
|
|
|
15
15
|
Requires-Python: >=3.10
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: microsoft-agents-activity==1.10.0.
|
|
18
|
+
Requires-Dist: microsoft-agents-activity==1.10.0.dev8
|
|
19
19
|
Requires-Dist: pyjwt>=2.10.1
|
|
20
20
|
Requires-Dist: isodate>=0.6.1
|
|
21
21
|
Requires-Dist: python-dotenv>=1.1.1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.10.0.dev7
|
{microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/LICENSE
RENAMED
|
File without changes
|
{microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/MANIFEST.in
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|