microsoft-agents-a365-tooling 0.2.1.dev0__py3-none-any.whl → 0.2.1.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.
- microsoft_agents_a365/tooling/__init__.py +3 -0
- microsoft_agents_a365/tooling/services/mcp_tool_server_configuration_service.py +13 -4
- {microsoft_agents_a365_tooling-0.2.1.dev0.dist-info → microsoft_agents_a365_tooling-0.2.1.dev4.dist-info}/METADATA +1 -1
- {microsoft_agents_a365_tooling-0.2.1.dev0.dist-info → microsoft_agents_a365_tooling-0.2.1.dev4.dist-info}/RECORD +6 -6
- {microsoft_agents_a365_tooling-0.2.1.dev0.dist-info → microsoft_agents_a365_tooling-0.2.1.dev4.dist-info}/top_level.txt +0 -1
- {microsoft_agents_a365_tooling-0.2.1.dev0.dist-info → microsoft_agents_a365_tooling-0.2.1.dev4.dist-info}/WHEEL +0 -0
|
@@ -569,7 +569,8 @@ class McpToolServerConfigurationService:
|
|
|
569
569
|
Must have a valid activity with conversation.id, activity.id, and
|
|
570
570
|
activity.text.
|
|
571
571
|
chat_history_messages: List of ChatHistoryMessage objects representing the chat
|
|
572
|
-
history.
|
|
572
|
+
history. May be empty - an empty list will still send a
|
|
573
|
+
request to the MCP platform with empty chat history.
|
|
573
574
|
options: Optional ToolOptions instance containing optional parameters.
|
|
574
575
|
|
|
575
576
|
Returns:
|
|
@@ -578,10 +579,15 @@ class McpToolServerConfigurationService:
|
|
|
578
579
|
On failure, returns OperationResult.failed() with error details.
|
|
579
580
|
|
|
580
581
|
Raises:
|
|
581
|
-
ValueError: If turn_context is None, chat_history_messages is None
|
|
582
|
+
ValueError: If turn_context is None, chat_history_messages is None,
|
|
582
583
|
turn_context.activity is None, or any of the required fields
|
|
583
584
|
(conversation.id, activity.id, activity.text) are missing or empty.
|
|
584
585
|
|
|
586
|
+
Note:
|
|
587
|
+
Even if chat_history_messages is empty, the request will still be sent to
|
|
588
|
+
the MCP platform. This ensures the user message from turn_context.activity.text
|
|
589
|
+
is registered correctly for real-time threat protection.
|
|
590
|
+
|
|
585
591
|
Example:
|
|
586
592
|
>>> from datetime import datetime, timezone
|
|
587
593
|
>>> from microsoft_agents_a365.tooling.models import ChatHistoryMessage
|
|
@@ -599,8 +605,11 @@ class McpToolServerConfigurationService:
|
|
|
599
605
|
# Validate input parameters
|
|
600
606
|
if turn_context is None:
|
|
601
607
|
raise ValueError("turn_context cannot be None")
|
|
602
|
-
if chat_history_messages is None
|
|
603
|
-
raise ValueError("chat_history_messages cannot be None
|
|
608
|
+
if chat_history_messages is None:
|
|
609
|
+
raise ValueError("chat_history_messages cannot be None")
|
|
610
|
+
|
|
611
|
+
# Note: Empty chat_history_messages is allowed - we still send the request to MCP platform
|
|
612
|
+
# The platform needs to receive the request even with empty chat history
|
|
604
613
|
|
|
605
614
|
# Extract required information from turn context
|
|
606
615
|
if not turn_context.activity:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
microsoft_agents_a365/tooling/__init__.py,sha256=
|
|
1
|
+
microsoft_agents_a365/tooling/__init__.py,sha256=YFg8LbtMWPYu5WT2s3sblptL5qWHqJUYk_LHKaSgPrs,833
|
|
2
2
|
microsoft_agents_a365/tooling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
microsoft_agents_a365/tooling/extensions/__init__.py,sha256=eELYBkg6j1wM1Kaj01zabGd8YklC-Hj84r-yBiFIUdw,1135
|
|
4
4
|
microsoft_agents_a365/tooling/models/__init__.py,sha256=eo1YK5wCQDbEzoqBM_GADlobUZiqGCsXnVAcWZNYIe4,467
|
|
@@ -7,11 +7,11 @@ microsoft_agents_a365/tooling/models/chat_message_request.py,sha256=VcN7dP9jkIux
|
|
|
7
7
|
microsoft_agents_a365/tooling/models/mcp_server_config.py,sha256=XBiFsdc335NbXB-wmWjj6beJz5fqGq6NblT77DVFhN8,980
|
|
8
8
|
microsoft_agents_a365/tooling/models/tool_options.py,sha256=_mK_cODPB3g21Munr2NI2P04WOicmshOa02ARs7ul84,344
|
|
9
9
|
microsoft_agents_a365/tooling/services/__init__.py,sha256=4AsxYuA4veTpngG2Fn9RYw1qnBYW2nBlrdfl1lZlSZ0,357
|
|
10
|
-
microsoft_agents_a365/tooling/services/mcp_tool_server_configuration_service.py,sha256=
|
|
10
|
+
microsoft_agents_a365/tooling/services/mcp_tool_server_configuration_service.py,sha256=niVmunp1ZnXatTuOkoYh4AGgUgeNTyt7h6v7BuyFMxs,28107
|
|
11
11
|
microsoft_agents_a365/tooling/utils/__init__.py,sha256=WcTKbHam5c0Z157mgpF3u6t1_yHWQTvbPHpIqwoMl5g,508
|
|
12
12
|
microsoft_agents_a365/tooling/utils/constants.py,sha256=mR5oEJmG36tIjx9j3DeFkd0EjxtulHQR9YljatEWyuU,665
|
|
13
13
|
microsoft_agents_a365/tooling/utils/utility.py,sha256=7GqR31uqOzSkDS-l3JcNV44FnqmxHKCkDqgeb6YbaC8,2751
|
|
14
|
-
microsoft_agents_a365_tooling-0.2.1.
|
|
15
|
-
microsoft_agents_a365_tooling-0.2.1.
|
|
16
|
-
microsoft_agents_a365_tooling-0.2.1.
|
|
17
|
-
microsoft_agents_a365_tooling-0.2.1.
|
|
14
|
+
microsoft_agents_a365_tooling-0.2.1.dev4.dist-info/METADATA,sha256=9iYTWxPX4oc0fCDvNGoZGdZGNcIfr7kt7hP35U51neI,3129
|
|
15
|
+
microsoft_agents_a365_tooling-0.2.1.dev4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
16
|
+
microsoft_agents_a365_tooling-0.2.1.dev4.dist-info/top_level.txt,sha256=G3c2_4sy5_EM_BWO67SbK2tKj4G8XFn-QXRbh8g9Lgk,22
|
|
17
|
+
microsoft_agents_a365_tooling-0.2.1.dev4.dist-info/RECORD,,
|
|
File without changes
|