microsoft-agents-activity 0.5.0.dev11__py3-none-any.whl → 0.5.0.dev19__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.

@@ -253,7 +253,7 @@ class Activity(AgentsModel, _ChannelIdFieldMixin):
253
253
  product_info = entity
254
254
  break
255
255
 
256
- # maintain consistency between ProductInfo entity and sub channel
256
+ # self.channel_id is the source of truth for serialization
257
257
  if self.channel_id and self.channel_id.sub_channel:
258
258
  if product_info and product_info.get("id") != self.channel_id.sub_channel:
259
259
  raise Exception(
@@ -268,6 +268,13 @@ class Activity(AgentsModel, _ChannelIdFieldMixin):
268
268
  "id": self.channel_id.sub_channel,
269
269
  }
270
270
  )
271
+
272
+ # simply serialized channelId value in Activity and relatesTo
273
+ if "channelId" in serialized:
274
+ serialized["channelId"] = self.channel_id.channel
275
+ elif "channel_id" in serialized:
276
+ serialized["channel_id"] = self.channel_id.channel
277
+
271
278
  elif product_info: # remove productInfo entity if sub_channel is not set
272
279
  del serialized["entities"][i]
273
280
  if not serialized["entities"]: # after removal above, list may be empty
@@ -777,7 +784,7 @@ class Activity(AgentsModel, _ChannelIdFieldMixin):
777
784
  return self.recipient.agentic_app_id
778
785
 
779
786
  def get_agentic_user(self) -> Optional[str]:
780
- """Gets the agentic user (UPN) from the context if it's an agentic request."""
787
+ """Gets the agentic user (agenticUserId) from the context if it's an agentic request."""
781
788
  if not self.is_agentic_request() or not self.recipient:
782
789
  return None
783
- return self.recipient.id
790
+ return self.recipient.agentic_user_id
@@ -1,11 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-activity
3
- Version: 0.5.0.dev11
3
+ Version: 0.5.0.dev19
4
4
  Summary: A protocol 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
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
9
14
  Classifier: Operating System :: OS Independent
10
15
  Requires-Python: >=3.10
11
16
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ microsoft_agents/activity/_load_configuration.py,sha256=ztmv1wOBDE9hUYPPzWexc-qi
4
4
  microsoft_agents/activity/_model_utils.py,sha256=gUAKCOl98jA9tt95o5G7LoMuHgROvrW6lY9s0CzQu6k,2004
5
5
  microsoft_agents/activity/_type_aliases.py,sha256=kP5tYxEKSgcgBT3bucdluVVxxopwrUaGqKL7X_TQ0Og,229
6
6
  microsoft_agents/activity/action_types.py,sha256=nslx3hvQAd120NPdXZXdprwdjj3I3d4MWXV1b-Igr_o,419
7
- microsoft_agents/activity/activity.py,sha256=fOzNz7wVmgWcbEt2nomXEezshwmiNYQEo64z9kUJM2c,32377
7
+ microsoft_agents/activity/activity.py,sha256=eVwjDPdHY_1DMIfH5V_GQcOpZ_E87vWMuEgPyqLHo3w,32689
8
8
  microsoft_agents/activity/activity_event_names.py,sha256=dmtE1w50nnemTC_s1QG7IqTbnocpiczK_CG31JpgoJ4,254
9
9
  microsoft_agents/activity/activity_importance.py,sha256=cRIlyz8EjmztPmfcgdqZ6Csp6Vp2rQhXt4ZWIDXdt_s,212
10
10
  microsoft_agents/activity/activity_types.py,sha256=dm4vTVSoa-8_aPY_kZuU6C_FWQAURgZRassR1o8o9qQ,762
@@ -196,8 +196,8 @@ microsoft_agents/activity/teams/teams_member.py,sha256=vRcLRHy6wTfH7DP6k6QbrKkOR
196
196
  microsoft_agents/activity/teams/teams_paged_members_result.py,sha256=cG4eKHjA0u1EMioC2ErVpydnoPJrtTDcdhdzYET9xto,555
197
197
  microsoft_agents/activity/teams/tenant_info.py,sha256=h8OxMd6LD5lWVj_LK2ut8z7SB0I7Gx74W1wwEiYOzXk,296
198
198
  microsoft_agents/activity/teams/user_meeting_details.py,sha256=tvk2CWYf7Bo-DhK8NSojhanJDXEOGVrKXxJDca03CAo,467
199
- microsoft_agents_activity-0.5.0.dev11.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
200
- microsoft_agents_activity-0.5.0.dev11.dist-info/METADATA,sha256=iDFOqb1ipVLHAtBVLfdBL_fUQtYUIjG1Q_Vjn3fvg_g,8072
201
- microsoft_agents_activity-0.5.0.dev11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
202
- microsoft_agents_activity-0.5.0.dev11.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
203
- microsoft_agents_activity-0.5.0.dev11.dist-info/RECORD,,
199
+ microsoft_agents_activity-0.5.0.dev19.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
200
+ microsoft_agents_activity-0.5.0.dev19.dist-info/METADATA,sha256=lJkUjFY2bdH3geKInVCf4BXQrZLKZK1AdsKjdvGUNHc,8327
201
+ microsoft_agents_activity-0.5.0.dev19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
202
+ microsoft_agents_activity-0.5.0.dev19.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
203
+ microsoft_agents_activity-0.5.0.dev19.dist-info/RECORD,,