microsoft-agents-hosting-core 0.5.0.dev7__py3-none-any.whl → 0.5.0.dev10__py3-none-any.whl

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.
@@ -71,7 +71,7 @@ class FileTranscriptStore(TranscriptLogger):
71
71
  def _write() -> None:
72
72
  # Normalize to a dict to ensure json serializable content.
73
73
  if not activity.timestamp:
74
- activity.timestamp = _utc_iso_now()
74
+ activity.timestamp = datetime.now(timezone.utc)
75
75
 
76
76
  with open(file_path, "a", encoding="utf-8", newline="\n") as f:
77
77
  f.write(activity.model_dump_json(exclude_none=True, exclude_unset=True))
@@ -261,7 +261,3 @@ def _to_plain_dict(activity: Activity) -> Dict[str, Any]:
261
261
  "conversation": {"id": conversation_id},
262
262
  "text": getattr(activity, "text", None),
263
263
  }
264
-
265
-
266
- def _utc_iso_now() -> str:
267
- return datetime.now(timezone.utc).isoformat()
@@ -18,6 +18,7 @@ from microsoft_agents.activity import (
18
18
  ResourceResponse,
19
19
  DeliveryModes,
20
20
  )
21
+ from microsoft_agents.activity.entity.entity_types import EntityTypes
21
22
  from microsoft_agents.hosting.core.authorization.claims_identity import ClaimsIdentity
22
23
 
23
24
 
@@ -428,7 +429,7 @@ class TurnContext(TurnContextProtocol):
428
429
  result: list[Mention] = []
429
430
  if activity.entities is not None:
430
431
  for entity in activity.entities:
431
- if entity.type.lower() == "mention":
432
+ if entity.type.lower() == EntityTypes.MENTION:
432
433
  result.append(entity)
433
434
 
434
435
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 0.5.0.dev7
3
+ Version: 0.5.0.dev10
4
4
  Summary: Core library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -10,7 +10,7 @@ Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.9
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
- Requires-Dist: microsoft-agents-activity==0.5.0.dev7
13
+ Requires-Dist: microsoft-agents-activity==0.5.0.dev10
14
14
  Requires-Dist: pyjwt>=2.10.1
15
15
  Requires-Dist: isodate>=0.6.1
16
16
  Requires-Dist: azure-core>=1.30.0
@@ -9,7 +9,7 @@ microsoft_agents/hosting/core/channel_service_client_factory_base.py,sha256=ArMA
9
9
  microsoft_agents/hosting/core/message_factory.py,sha256=F9QJBF4yBupHXxOW984ZzZomVEG57t9IUnTHwub-lX0,7822
10
10
  microsoft_agents/hosting/core/middleware_set.py,sha256=TBsBs4KwAfKyHlQTlG4bl1y5UjkBzeMDs5w7LNB-Bi4,2585
11
11
  microsoft_agents/hosting/core/rest_channel_service_client_factory.py,sha256=afLeWgLz9N417Egc_6LBfnYNiuuwTEcSBefeOvTQ_H4,6217
12
- microsoft_agents/hosting/core/turn_context.py,sha256=df7TB1uXurgoAk338OF6taVfVgS58v662A9D9-GLP64,14794
12
+ microsoft_agents/hosting/core/turn_context.py,sha256=muA8S4R6Xxja5it7DiFqr5J5zmttwDN-Mj5_SDdxZ4A,14874
13
13
  microsoft_agents/hosting/core/_oauth/__init__.py,sha256=sU1HsIXbETRYwnudtFc6GrNbM6C3oYjmruqXc6kIAFw,405
14
14
  microsoft_agents/hosting/core/_oauth/_flow_state.py,sha256=BQbXn0a3Fw4aozS-WSjL0Y7vEdb4eua1ZitSr0qZ6bE,2207
15
15
  microsoft_agents/hosting/core/_oauth/_flow_storage_client.py,sha256=1MLD8m_qw0jSLqsyNaaWHm7aFkdjNWOE7xhV1rfbU64,3413
@@ -86,13 +86,13 @@ microsoft_agents/hosting/core/storage/error_handling.py,sha256=kTMQ68GxL4GgVKpo3
86
86
  microsoft_agents/hosting/core/storage/memory_storage.py,sha256=5AZ2QQ3TagVCHCKp0GEVAIuDswDGHgbgnUZgS9YbPAI,2448
87
87
  microsoft_agents/hosting/core/storage/storage.py,sha256=bt93jItMQKC9NJlcmxPtcE67MvnibolcFwvV1LFwliI,3322
88
88
  microsoft_agents/hosting/core/storage/store_item.py,sha256=rjtzB5yufsKuY1O5PjCqWHjjmO6UiORwkzpwbsaxp_4,371
89
- microsoft_agents/hosting/core/storage/transcript_file_store.py,sha256=7-ngOW5AuVPEHiAZJeZe_a5Qn4lQxlAiexjAwPiOJJU,10112
89
+ microsoft_agents/hosting/core/storage/transcript_file_store.py,sha256=eJdcU6BgMbvFYunWul2CZURH762HmUr11iUN7NgvZek,10045
90
90
  microsoft_agents/hosting/core/storage/transcript_info.py,sha256=5VN32j99tshChAffvuZ6D3GH3ABCZsQGHC_bYDAwFOk,328
91
91
  microsoft_agents/hosting/core/storage/transcript_logger.py,sha256=_atDk3CJ05fIVMhlWGNa91IiM9bGLmOhasFko8Lxjhk,8237
92
92
  microsoft_agents/hosting/core/storage/transcript_memory_store.py,sha256=v1Ud9LSs8m5c9_Fa8i49SuAjw80dX1hDciqbRduDEOE,6444
93
93
  microsoft_agents/hosting/core/storage/transcript_store.py,sha256=ka74o0WvI5GhMZcFqSxVdamBhGzZcDZe6VNkG-sMy74,1944
94
- microsoft_agents_hosting_core-0.5.0.dev7.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
95
- microsoft_agents_hosting_core-0.5.0.dev7.dist-info/METADATA,sha256=GJ4iPQH75fLQb5I_P1peyZQ1A6GeVCRFQVNMieOzi-U,8594
96
- microsoft_agents_hosting_core-0.5.0.dev7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
97
- microsoft_agents_hosting_core-0.5.0.dev7.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
98
- microsoft_agents_hosting_core-0.5.0.dev7.dist-info/RECORD,,
94
+ microsoft_agents_hosting_core-0.5.0.dev10.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
95
+ microsoft_agents_hosting_core-0.5.0.dev10.dist-info/METADATA,sha256=SIakmKCc52nErP4ninQsGSqwDQ6cH3JNlpP5s42P26M,8596
96
+ microsoft_agents_hosting_core-0.5.0.dev10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
97
+ microsoft_agents_hosting_core-0.5.0.dev10.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
98
+ microsoft_agents_hosting_core-0.5.0.dev10.dist-info/RECORD,,