microsoft-agents-hosting-aiohttp 0.3.0.dev0__py3-none-any.whl → 0.4.0.dev3__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.
Files changed (17) hide show
  1. {microsoft/agents → microsoft_agents}/hosting/aiohttp/_start_agent_process.py +1 -1
  2. {microsoft/agents → microsoft_agents}/hosting/aiohttp/agent_http_adapter.py +1 -1
  3. {microsoft/agents → microsoft_agents}/hosting/aiohttp/app/streaming/citation_util.py +1 -1
  4. {microsoft/agents → microsoft_agents}/hosting/aiohttp/app/streaming/streaming_response.py +4 -4
  5. {microsoft/agents → microsoft_agents}/hosting/aiohttp/channel_service_route_table.py +2 -2
  6. {microsoft/agents → microsoft_agents}/hosting/aiohttp/cloud_adapter.py +3 -3
  7. {microsoft/agents → microsoft_agents}/hosting/aiohttp/jwt_authorization_middleware.py +1 -1
  8. {microsoft_agents_hosting_aiohttp-0.3.0.dev0.dist-info → microsoft_agents_hosting_aiohttp-0.4.0.dev3.dist-info}/METADATA +2 -2
  9. microsoft_agents_hosting_aiohttp-0.4.0.dev3.dist-info/RECORD +15 -0
  10. microsoft_agents_hosting_aiohttp-0.4.0.dev3.dist-info/top_level.txt +1 -0
  11. microsoft_agents_hosting_aiohttp-0.3.0.dev0.dist-info/RECORD +0 -15
  12. microsoft_agents_hosting_aiohttp-0.3.0.dev0.dist-info/top_level.txt +0 -1
  13. {microsoft/agents → microsoft_agents}/hosting/aiohttp/__init__.py +0 -0
  14. {microsoft/agents → microsoft_agents}/hosting/aiohttp/app/__init__.py +0 -0
  15. {microsoft/agents → microsoft_agents}/hosting/aiohttp/app/streaming/__init__.py +0 -0
  16. {microsoft/agents → microsoft_agents}/hosting/aiohttp/app/streaming/citation.py +0 -0
  17. {microsoft_agents_hosting_aiohttp-0.3.0.dev0.dist-info → microsoft_agents_hosting_aiohttp-0.4.0.dev3.dist-info}/WHEEL +0 -0
@@ -1,6 +1,6 @@
1
1
  from typing import Optional
2
2
  from aiohttp.web import Request, Response
3
- from microsoft.agents.hosting.core.app import AgentApplication
3
+ from microsoft_agents.hosting.core.app import AgentApplication
4
4
  from .cloud_adapter import CloudAdapter
5
5
 
6
6
 
@@ -9,7 +9,7 @@ from aiohttp.web import (
9
9
  Response,
10
10
  )
11
11
 
12
- from microsoft.agents.hosting.core import Agent
12
+ from microsoft_agents.hosting.core import Agent
13
13
 
14
14
 
15
15
  class AgentHttpAdapter(Protocol):
@@ -4,7 +4,7 @@
4
4
  import re
5
5
  from typing import List, Optional
6
6
 
7
- from microsoft.agents.activity import ClientCitation
7
+ from microsoft_agents.activity import ClientCitation
8
8
 
9
9
 
10
10
  class CitationUtil:
@@ -6,7 +6,7 @@ import logging
6
6
  from typing import List, Optional, Callable, Literal, TYPE_CHECKING
7
7
  from dataclasses import dataclass
8
8
 
9
- from microsoft.agents.activity import (
9
+ from microsoft_agents.activity import (
10
10
  Activity,
11
11
  Entity,
12
12
  Attachment,
@@ -14,11 +14,11 @@ from microsoft.agents.activity import (
14
14
  ClientCitation,
15
15
  DeliveryModes,
16
16
  SensitivityUsageInfo,
17
- add_ai_to_activity,
17
+ add_ai_metadata,
18
18
  )
19
19
 
20
20
  if TYPE_CHECKING:
21
- from microsoft.agents.hosting.core.turn_context import TurnContext
21
+ from microsoft_agents.hosting.core.turn_context import TurnContext
22
22
 
23
23
  from .citation import Citation
24
24
  from .citation_util import CitationUtil
@@ -401,7 +401,7 @@ class StreamingResponse:
401
401
  streaminfo_entity.feedback_loop_enabled = self._enable_feedback_loop
402
402
  # Add in Generated by AI
403
403
  if self._enable_generated_by_ai_label:
404
- add_ai_to_activity(activity, self._citations, self._sensitivity_label)
404
+ add_ai_metadata(activity, self._citations, self._sensitivity_label)
405
405
 
406
406
  # Send activity
407
407
  response = await self._context.send_activity(activity)
@@ -5,14 +5,14 @@ from typing import List, Union, Type
5
5
 
6
6
  from aiohttp.web import RouteTableDef, Request, Response
7
7
 
8
- from microsoft.agents.activity import (
8
+ from microsoft_agents.activity import (
9
9
  AgentsModel,
10
10
  Activity,
11
11
  AttachmentData,
12
12
  ConversationParameters,
13
13
  Transcript,
14
14
  )
15
- from microsoft.agents.hosting.core import ChannelApiHandlerProtocol
15
+ from microsoft_agents.hosting.core import ChannelApiHandlerProtocol
16
16
 
17
17
 
18
18
  async def deserialize_from_body(
@@ -12,15 +12,15 @@ from aiohttp.web import (
12
12
  HTTPUnauthorized,
13
13
  HTTPUnsupportedMediaType,
14
14
  )
15
- from microsoft.agents.hosting.core.authorization import (
15
+ from microsoft_agents.hosting.core.authorization import (
16
16
  ClaimsIdentity,
17
17
  Connections,
18
18
  )
19
- from microsoft.agents.activity import (
19
+ from microsoft_agents.activity import (
20
20
  Activity,
21
21
  DeliveryModes,
22
22
  )
23
- from microsoft.agents.hosting.core import (
23
+ from microsoft_agents.hosting.core import (
24
24
  Agent,
25
25
  ChannelServiceAdapter,
26
26
  ChannelServiceClientFactoryBase,
@@ -1,7 +1,7 @@
1
1
  import functools
2
2
  from aiohttp.web import Request, middleware, json_response
3
3
 
4
- from microsoft.agents.hosting.core.authorization import (
4
+ from microsoft_agents.hosting.core.authorization import (
5
5
  AgentAuthConfiguration,
6
6
  JwtTokenValidator,
7
7
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-aiohttp
3
- Version: 0.3.0.dev0
3
+ Version: 0.4.0.dev3
4
4
  Summary: Integration library for Microsoft Agents with aiohttp
5
5
  Author: Microsoft Corporation
6
6
  Project-URL: Homepage, https://github.com/microsoft/Agents
@@ -8,6 +8,6 @@ Classifier: Programming Language :: Python :: 3
8
8
  Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.9
11
- Requires-Dist: microsoft-agents-hosting-core==0.3.0.dev0
11
+ Requires-Dist: microsoft-agents-hosting-core==0.4.0.dev3
12
12
  Requires-Dist: aiohttp>=3.11.11
13
13
  Dynamic: requires-dist
@@ -0,0 +1,15 @@
1
+ microsoft_agents/hosting/aiohttp/__init__.py,sha256=MiCeImORsTFi9V2n-MIWJA53GzroDd-54G_UoH_5U0Y,664
2
+ microsoft_agents/hosting/aiohttp/_start_agent_process.py,sha256=f-BGLGlKgfGpxihuOKWmg9Zrnw8EF0wqOwMVdGPmIWM,909
3
+ microsoft_agents/hosting/aiohttp/agent_http_adapter.py,sha256=U6GQVPPj-Vi2Kan8i2LDrRtU-M9FpfXUzFqzOqvVYoI,444
4
+ microsoft_agents/hosting/aiohttp/channel_service_route_table.py,sha256=3JNmK63j0ELgqUAtqsOXFjajhRTMgf29cIGwLCDwnLE,6745
5
+ microsoft_agents/hosting/aiohttp/cloud_adapter.py,sha256=K8PY3s7y1XveyUto_x3meuQStHlysxmBLyDIbJUWCyA,3725
6
+ microsoft_agents/hosting/aiohttp/jwt_authorization_middleware.py,sha256=ucm-PnMwE8C7yqmEQtZO2OYbhMp-WBY9rs0UaxgNHu8,2313
7
+ microsoft_agents/hosting/aiohttp/app/__init__.py,sha256=TioskqZet16twXOsI3X2snyLzmuyeKNtN2dySD1Xw7s,253
8
+ microsoft_agents/hosting/aiohttp/app/streaming/__init__.py,sha256=G_VGmQ0m6TkHZsHjRV5HitaCOt2EBEjENIoBYabJMqM,292
9
+ microsoft_agents/hosting/aiohttp/app/streaming/citation.py,sha256=ZGaMUOWxxoMplwRrkFsjnK7Z12V6rT5odE7qZCu-mP8,498
10
+ microsoft_agents/hosting/aiohttp/app/streaming/citation_util.py,sha256=c95c3Y3genmFc0vSXppPaD1-ShFohAV1UABZnyJS_BQ,2478
11
+ microsoft_agents/hosting/aiohttp/app/streaming/streaming_response.py,sha256=cBiRwqsZWvhQxgrFcI7l_9CAbklwac29XzhJh0PSgD4,13784
12
+ microsoft_agents_hosting_aiohttp-0.4.0.dev3.dist-info/METADATA,sha256=S9xwTNJldu6vXOZTw6XfYdjQtFFpfxjd8prBanVlMFo,514
13
+ microsoft_agents_hosting_aiohttp-0.4.0.dev3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ microsoft_agents_hosting_aiohttp-0.4.0.dev3.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
15
+ microsoft_agents_hosting_aiohttp-0.4.0.dev3.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ microsoft_agents
@@ -1,15 +0,0 @@
1
- microsoft/agents/hosting/aiohttp/__init__.py,sha256=MiCeImORsTFi9V2n-MIWJA53GzroDd-54G_UoH_5U0Y,664
2
- microsoft/agents/hosting/aiohttp/_start_agent_process.py,sha256=UfDAcQGgLfjkzDwcVl3EJS0dZMW06hYfpUsX3m5cBDY,909
3
- microsoft/agents/hosting/aiohttp/agent_http_adapter.py,sha256=ggMzGGTWiWMDsqB73X3Dd0RFwFBZf7nx1L0NWYaCsW0,444
4
- microsoft/agents/hosting/aiohttp/channel_service_route_table.py,sha256=xGgUdVBpfoNrW1oN2V1tjebmxKEtwDpuYoS6RtcVLTw,6745
5
- microsoft/agents/hosting/aiohttp/cloud_adapter.py,sha256=sm7o8mH9vtJNAmau9DACIOAQhlPZKSN_fQuw8Xbwcvs,3725
6
- microsoft/agents/hosting/aiohttp/jwt_authorization_middleware.py,sha256=Zj6rWHeW0hlO5NdV1L2554jzW_vY_IMRTLe80VyT5bs,2313
7
- microsoft/agents/hosting/aiohttp/app/__init__.py,sha256=TioskqZet16twXOsI3X2snyLzmuyeKNtN2dySD1Xw7s,253
8
- microsoft/agents/hosting/aiohttp/app/streaming/__init__.py,sha256=G_VGmQ0m6TkHZsHjRV5HitaCOt2EBEjENIoBYabJMqM,292
9
- microsoft/agents/hosting/aiohttp/app/streaming/citation.py,sha256=ZGaMUOWxxoMplwRrkFsjnK7Z12V6rT5odE7qZCu-mP8,498
10
- microsoft/agents/hosting/aiohttp/app/streaming/citation_util.py,sha256=dHR6OuNoPFMVjGKJyJKida1LsWRg9up0M1Msz1tvjfQ,2478
11
- microsoft/agents/hosting/aiohttp/app/streaming/streaming_response.py,sha256=UKiE8mTdDXCpThKH4cXafMfD4Xt_M6SYivF_ilGLKLE,13790
12
- microsoft_agents_hosting_aiohttp-0.3.0.dev0.dist-info/METADATA,sha256=NWerPaPSiiqJPeX0NKmwJ_svK5SwqkWqg_tMemn2_RI,514
13
- microsoft_agents_hosting_aiohttp-0.3.0.dev0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- microsoft_agents_hosting_aiohttp-0.3.0.dev0.dist-info/top_level.txt,sha256=egwWDmpnNBTGerc55Oa6VVW9hTKdtxFjHWHywqmVMpM,10
15
- microsoft_agents_hosting_aiohttp-0.3.0.dev0.dist-info/RECORD,,