microsoft-agents-hosting-core 0.7.0.dev1__tar.gz → 0.7.0.dev4__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-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/PKG-INFO +2 -2
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/channel_service_adapter.py +27 -11
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents_hosting_core.egg-info/PKG-INFO +2 -2
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
- microsoft_agents_hosting_core-0.7.0.dev4/setup.py +21 -0
- microsoft_agents_hosting_core-0.7.0.dev1/setup.py +0 -15
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/LICENSE +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/_oauth/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/_oauth/_flow_state.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/_oauth/_flow_storage_client.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/_oauth/_oauth_flow.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/activity_handler.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/agent.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/_routes/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/_routes/_route.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/_routes/_route_list.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/_routes/route_rank.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/_type_defs.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/agent_application.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/app_error.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/app_options.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/input_file.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/oauth/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/oauth/_handlers/_authorization_handler.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/oauth/_sign_in_response.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/oauth/_sign_in_state.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/oauth/authorization.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/query.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/state/conversation_state.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/state/state.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/state/temp_state.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/state/turn_state.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/streaming/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/streaming/citation.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/streaming/citation_util.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/streaming/streaming_response.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/app/typing_indicator.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/authorization/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/authorization/agent_auth_configuration.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/authorization/auth_types.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/authorization/claims_identity.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/authorization/connections.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/authorization/jwt_token_validator.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/card_factory.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/channel_adapter.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/client/connector_client.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/client/user_token_client.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/errors/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/errors/error_resources.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/http/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/http/_channel_service_routes.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/http/_http_adapter_base.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/http/_http_request_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/http/_http_response.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/message_factory.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/middleware_set.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/state/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/state/agent_state.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/state/user_state.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/storage.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/transcript_file_store.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/transcript_info.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/transcript_logger.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/transcript_memory_store.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/storage/transcript_store.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents/hosting/core/turn_context.py +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/pyproject.toml +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/readme.md +0 -0
- {microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/setup.cfg +0 -0
{microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-hosting-core
|
|
3
|
-
Version: 0.7.0.
|
|
3
|
+
Version: 0.7.0.dev4
|
|
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==0.7.0.
|
|
18
|
+
Requires-Dist: microsoft-agents-activity==0.7.0.dev4
|
|
19
19
|
Requires-Dist: pyjwt>=2.10.1
|
|
20
20
|
Requires-Dist: isodate>=0.6.1
|
|
21
21
|
Requires-Dist: azure-core>=1.30.0
|
|
@@ -341,6 +341,19 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
|
|
|
341
341
|
await connector_client.close()
|
|
342
342
|
await user_token_client.close()
|
|
343
343
|
|
|
344
|
+
def _resolve_if_connector_client_is_needed(self, activity: Activity) -> bool:
|
|
345
|
+
"""Determine if a connector client is needed based on the activity's delivery mode and service URL.
|
|
346
|
+
|
|
347
|
+
:param activity: The activity to evaluate.
|
|
348
|
+
:type activity: :class:`microsoft_agents.activity.Activity`
|
|
349
|
+
"""
|
|
350
|
+
if activity.delivery_mode in [
|
|
351
|
+
DeliveryModes.expect_replies,
|
|
352
|
+
DeliveryModes.stream,
|
|
353
|
+
]:
|
|
354
|
+
return False
|
|
355
|
+
return True
|
|
356
|
+
|
|
344
357
|
async def process_activity(
|
|
345
358
|
self,
|
|
346
359
|
claims_identity: ClaimsIdentity,
|
|
@@ -403,21 +416,24 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
|
|
|
403
416
|
context.turn_state[self.USER_TOKEN_CLIENT_KEY] = user_token_client
|
|
404
417
|
|
|
405
418
|
# Create the connector client to use for outbound requests.
|
|
406
|
-
connector_client: ConnectorClient =
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
419
|
+
connector_client: Optional[ConnectorClient] = None
|
|
420
|
+
if self._resolve_if_connector_client_is_needed(activity):
|
|
421
|
+
connector_client = (
|
|
422
|
+
await self._channel_service_client_factory.create_connector_client(
|
|
423
|
+
context,
|
|
424
|
+
claims_identity,
|
|
425
|
+
activity.service_url,
|
|
426
|
+
outgoing_audience,
|
|
427
|
+
scopes,
|
|
428
|
+
use_anonymous_auth_callback,
|
|
429
|
+
)
|
|
414
430
|
)
|
|
415
|
-
|
|
416
|
-
context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = connector_client
|
|
431
|
+
context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = connector_client
|
|
417
432
|
|
|
418
433
|
await self.run_pipeline(context, callback)
|
|
419
434
|
|
|
420
|
-
|
|
435
|
+
if connector_client:
|
|
436
|
+
await connector_client.close()
|
|
421
437
|
await user_token_client.close()
|
|
422
438
|
|
|
423
439
|
# If there are any results they will have been left on the TurnContext.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-hosting-core
|
|
3
|
-
Version: 0.7.0.
|
|
3
|
+
Version: 0.7.0.dev4
|
|
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==0.7.0.
|
|
18
|
+
Requires-Dist: microsoft-agents-activity==0.7.0.dev4
|
|
19
19
|
Requires-Dist: pyjwt>=2.10.1
|
|
20
20
|
Requires-Dist: isodate>=0.6.1
|
|
21
21
|
Requires-Dist: azure-core>=1.30.0
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from os import environ, path
|
|
2
|
+
from setuptools import setup
|
|
3
|
+
|
|
4
|
+
# Try to read from VERSION.txt file first, fall back to environment variable
|
|
5
|
+
version_file = path.join(path.dirname(__file__), "VERSION.txt")
|
|
6
|
+
if path.exists(version_file):
|
|
7
|
+
with open(version_file, "r", encoding="utf-8") as f:
|
|
8
|
+
package_version = f.read().strip()
|
|
9
|
+
else:
|
|
10
|
+
package_version = environ.get("PackageVersion", "0.0.0")
|
|
11
|
+
|
|
12
|
+
setup(
|
|
13
|
+
version=package_version,
|
|
14
|
+
install_requires=[
|
|
15
|
+
f"microsoft-agents-activity=={package_version}",
|
|
16
|
+
"pyjwt>=2.10.1",
|
|
17
|
+
"isodate>=0.6.1",
|
|
18
|
+
"azure-core>=1.30.0",
|
|
19
|
+
"python-dotenv>=1.1.1",
|
|
20
|
+
],
|
|
21
|
+
)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
from os import environ
|
|
2
|
-
from setuptools import setup
|
|
3
|
-
|
|
4
|
-
package_version = environ.get("PackageVersion", "0.0.0")
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
version=package_version,
|
|
8
|
-
install_requires=[
|
|
9
|
-
f"microsoft-agents-activity=={package_version}",
|
|
10
|
-
"pyjwt>=2.10.1",
|
|
11
|
-
"isodate>=0.6.1",
|
|
12
|
-
"azure-core>=1.30.0",
|
|
13
|
-
"python-dotenv>=1.1.1",
|
|
14
|
-
],
|
|
15
|
-
)
|
{microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/LICENSE
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
|
{microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/pyproject.toml
RENAMED
|
File without changes
|
{microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/readme.md
RENAMED
|
File without changes
|
{microsoft_agents_hosting_core-0.7.0.dev1 → microsoft_agents_hosting_core-0.7.0.dev4}/setup.cfg
RENAMED
|
File without changes
|