microsoft-agents-hosting-core 0.5.0.dev7__py3-none-any.whl → 0.5.0.dev11__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.
- microsoft_agents/hosting/core/storage/transcript_file_store.py +1 -5
- microsoft_agents/hosting/core/turn_context.py +2 -1
- {microsoft_agents_hosting_core-0.5.0.dev7.dist-info → microsoft_agents_hosting_core-0.5.0.dev11.dist-info}/METADATA +3 -3
- {microsoft_agents_hosting_core-0.5.0.dev7.dist-info → microsoft_agents_hosting_core-0.5.0.dev11.dist-info}/RECORD +7 -7
- {microsoft_agents_hosting_core-0.5.0.dev7.dist-info → microsoft_agents_hosting_core-0.5.0.dev11.dist-info}/WHEEL +0 -0
- {microsoft_agents_hosting_core-0.5.0.dev7.dist-info → microsoft_agents_hosting_core-0.5.0.dev11.dist-info}/licenses/LICENSE +0 -0
- {microsoft_agents_hosting_core-0.5.0.dev7.dist-info → microsoft_agents_hosting_core-0.5.0.dev11.dist-info}/top_level.txt +0 -0
|
@@ -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 =
|
|
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() ==
|
|
432
|
+
if entity.type.lower() == EntityTypes.MENTION:
|
|
432
433
|
result.append(entity)
|
|
433
434
|
|
|
434
435
|
return result
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-hosting-core
|
|
3
|
-
Version: 0.5.0.
|
|
3
|
+
Version: 0.5.0.dev11
|
|
4
4
|
Summary: Core library for Microsoft Agents
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/microsoft/Agents
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
|
-
Requires-Dist: microsoft-agents-activity==0.5.0.
|
|
13
|
+
Requires-Dist: microsoft-agents-activity==0.5.0.dev11
|
|
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=
|
|
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=
|
|
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.
|
|
95
|
-
microsoft_agents_hosting_core-0.5.0.
|
|
96
|
-
microsoft_agents_hosting_core-0.5.0.
|
|
97
|
-
microsoft_agents_hosting_core-0.5.0.
|
|
98
|
-
microsoft_agents_hosting_core-0.5.0.
|
|
94
|
+
microsoft_agents_hosting_core-0.5.0.dev11.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
|
|
95
|
+
microsoft_agents_hosting_core-0.5.0.dev11.dist-info/METADATA,sha256=Rtru58Gme9kAIxyZrWPIGmCLWij8GWc7JQTPjiCyAOA,8597
|
|
96
|
+
microsoft_agents_hosting_core-0.5.0.dev11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
97
|
+
microsoft_agents_hosting_core-0.5.0.dev11.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
|
|
98
|
+
microsoft_agents_hosting_core-0.5.0.dev11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|