microsoft-agents-activity 0.5.0.dev19__py3-none-any.whl → 0.6.0.dev4__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.
Potentially problematic release.
This version of microsoft-agents-activity might be problematic. Click here for more details.
- microsoft_agents/activity/_utils/__init__.py +6 -0
- microsoft_agents/activity/_utils/_deferred_string.py +34 -0
- {microsoft_agents_activity-0.5.0.dev19.dist-info → microsoft_agents_activity-0.6.0.dev4.dist-info}/METADATA +19 -1
- {microsoft_agents_activity-0.5.0.dev19.dist-info → microsoft_agents_activity-0.6.0.dev4.dist-info}/RECORD +7 -5
- {microsoft_agents_activity-0.5.0.dev19.dist-info → microsoft_agents_activity-0.6.0.dev4.dist-info}/WHEEL +0 -0
- {microsoft_agents_activity-0.5.0.dev19.dist-info → microsoft_agents_activity-0.6.0.dev4.dist-info}/licenses/LICENSE +0 -0
- {microsoft_agents_activity-0.5.0.dev19.dist-info → microsoft_agents_activity-0.6.0.dev4.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import logging
|
|
5
|
+
from typing import Callable
|
|
6
|
+
|
|
7
|
+
logger = logging.getLogger(__name__)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class _DeferredString:
|
|
11
|
+
"""A wrapper around a function to allow for deferred evaluation.
|
|
12
|
+
|
|
13
|
+
The result of the function is converted to a string with str().
|
|
14
|
+
If an error occurs during evaluation, an error is logged and a default
|
|
15
|
+
string is returned.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
def __init__(self, func: Callable, *args, **kwargs):
|
|
19
|
+
"""Initializes a DeferredString instance.
|
|
20
|
+
|
|
21
|
+
:param func: The function to be called to get the string value.
|
|
22
|
+
:param args: Positional arguments to pass to the function.
|
|
23
|
+
:param kwargs: Keyword arguments to pass to the function.
|
|
24
|
+
"""
|
|
25
|
+
self.func = func
|
|
26
|
+
self.args = args
|
|
27
|
+
self.kwargs = kwargs
|
|
28
|
+
|
|
29
|
+
def __str__(self):
|
|
30
|
+
try:
|
|
31
|
+
return str(self.func(*self.args, **self.kwargs))
|
|
32
|
+
except Exception as e:
|
|
33
|
+
logger.error("Error evaluating deferred string", exc_info=e)
|
|
34
|
+
return "_DeferredString: error evaluating deferred string"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-activity
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0.dev4
|
|
4
4
|
Summary: A protocol library for Microsoft Agents
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,6 +28,24 @@ Core types and schemas for building conversational AI agents that work across Mi
|
|
|
28
28
|
|
|
29
29
|
This library is part of the **Microsoft 365 Agents SDK for Python** - a comprehensive framework for building enterprise-grade conversational AI agents. The SDK enables developers to create intelligent agents that work across multiple platforms including Microsoft Teams, M365 Copilot, Copilot Studio, and web chat, with support for third-party integrations like Slack, Facebook Messenger, and Twilio.
|
|
30
30
|
|
|
31
|
+
## Release Notes
|
|
32
|
+
<table style="width:100%">
|
|
33
|
+
<tr>
|
|
34
|
+
<th style="width:20%">Version</th>
|
|
35
|
+
<th style="width:20%">Date</th>
|
|
36
|
+
<th style="width:60%">Release Notes</th>
|
|
37
|
+
</tr>
|
|
38
|
+
<tr>
|
|
39
|
+
<td>0.5.0</td>
|
|
40
|
+
<td>2025-10-22</td>
|
|
41
|
+
<td>
|
|
42
|
+
<a href="https://github.com/microsoft/Agents-for-python/blob/main/changelog.md">
|
|
43
|
+
0.5.0 Release Notes
|
|
44
|
+
</a>
|
|
45
|
+
</td>
|
|
46
|
+
</tr>
|
|
47
|
+
</table>
|
|
48
|
+
|
|
31
49
|
## Packages Overview
|
|
32
50
|
|
|
33
51
|
We offer the following PyPI packages to create conversational experiences based on Agents:
|
|
@@ -80,6 +80,8 @@ microsoft_agents/activity/token_status.py,sha256=o3pGTKRjuqEndRWClMe91Cmox6cW8aD
|
|
|
80
80
|
microsoft_agents/activity/transcript.py,sha256=vV0p-JEt62UPp3D4gmz1Fn1vq45vpjc01x2p5iCzKsw,423
|
|
81
81
|
microsoft_agents/activity/turn_context_protocol.py,sha256=S1lJi_pT-o3w0RNB9p4WDiOEL7SHBf_gojRfY9CBwF4,1787
|
|
82
82
|
microsoft_agents/activity/video_card.py,sha256=6ZYvTYCsIsACbR3KJBhfwFJ1GTYbjKJWvBsqw0pyyWA,2048
|
|
83
|
+
microsoft_agents/activity/_utils/__init__.py,sha256=GM-i-Cw49__7zSb7OMzS5S4KFkKU1uEf5LlINUgipmY,172
|
|
84
|
+
microsoft_agents/activity/_utils/_deferred_string.py,sha256=4FGBIExyfmncr-jxgsARWct9cy-5nnPll2nUD-UYkXw,1124
|
|
83
85
|
microsoft_agents/activity/entity/__init__.py,sha256=nq9ySwflvNeFWKxZmvb4XenYwB_ATDbeOikkk860UfY,826
|
|
84
86
|
microsoft_agents/activity/entity/ai_entity.py,sha256=VOjU9Y6m68vkiKUHnqG5XmNPRu4KCSKmd0XPDCJ6B0s,3280
|
|
85
87
|
microsoft_agents/activity/entity/entity.py,sha256=FmJ23emzoEiV66JjpkOwCQoJReFB_5whihj3PFdRtKk,1105
|
|
@@ -196,8 +198,8 @@ microsoft_agents/activity/teams/teams_member.py,sha256=vRcLRHy6wTfH7DP6k6QbrKkOR
|
|
|
196
198
|
microsoft_agents/activity/teams/teams_paged_members_result.py,sha256=cG4eKHjA0u1EMioC2ErVpydnoPJrtTDcdhdzYET9xto,555
|
|
197
199
|
microsoft_agents/activity/teams/tenant_info.py,sha256=h8OxMd6LD5lWVj_LK2ut8z7SB0I7Gx74W1wwEiYOzXk,296
|
|
198
200
|
microsoft_agents/activity/teams/user_meeting_details.py,sha256=tvk2CWYf7Bo-DhK8NSojhanJDXEOGVrKXxJDca03CAo,467
|
|
199
|
-
microsoft_agents_activity-0.
|
|
200
|
-
microsoft_agents_activity-0.
|
|
201
|
-
microsoft_agents_activity-0.
|
|
202
|
-
microsoft_agents_activity-0.
|
|
203
|
-
microsoft_agents_activity-0.
|
|
201
|
+
microsoft_agents_activity-0.6.0.dev4.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
|
|
202
|
+
microsoft_agents_activity-0.6.0.dev4.dist-info/METADATA,sha256=QY9XLrLnNBf0JEdOX1upLDbHjaAUgOQFWwQMIsRMSYg,8718
|
|
203
|
+
microsoft_agents_activity-0.6.0.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
204
|
+
microsoft_agents_activity-0.6.0.dev4.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
|
|
205
|
+
microsoft_agents_activity-0.6.0.dev4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|