agent-framework-foundry 1.10.2__tar.gz → 1.10.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-framework-foundry
3
- Version: 1.10.2
3
+ Version: 1.10.3
4
4
  Summary: Microsoft Foundry integrations for Microsoft Agent Framework.
5
5
  Author-email: Microsoft <af-support@microsoft.com>
6
6
  Requires-Python: >=3.10
@@ -330,6 +330,8 @@ class RawFoundryAgentChatClient(
330
330
  **kwargs: Any,
331
331
  ) -> dict[str, Any]:
332
332
  """Prepare options for the Responses API and validate client-side tools."""
333
+ caller_requested_encrypted_reasoning = "reasoning.encrypted_content" in (options.get("include") or [])
334
+
333
335
  # Validate tools — only FunctionTool allowed
334
336
  tools = options.get("tools", [])
335
337
  if tools:
@@ -347,6 +349,16 @@ class RawFoundryAgentChatClient(
347
349
  # Call parent prepare_options (OpenAI Responses API format)
348
350
  run_options = await super()._prepare_options(prepared_messages, options, **kwargs)
349
351
 
352
+ # Foundry Agent deployments can reject the OpenAI client's automatic encrypted-reasoning
353
+ # opt-in even when the configured model otherwise supports reasoning. Preserve an explicit
354
+ # caller request, but do not add this provider capability implicitly.
355
+ if not caller_requested_encrypted_reasoning and isinstance(run_options.get("include"), list):
356
+ include = [item for item in run_options["include"] if item != "reasoning.encrypted_content"]
357
+ if include:
358
+ run_options["include"] = include
359
+ else:
360
+ run_options.pop("include")
361
+
350
362
  # Apply Azure AI schema transforms
351
363
  if "input" in run_options and isinstance(run_options["input"], list):
352
364
  run_options["input"] = self._transform_input_for_azure_ai(cast(list[dict[str, Any]], run_options["input"]))
@@ -4,7 +4,7 @@ description = "Microsoft Foundry integrations for Microsoft Agent Framework."
4
4
  authors = [{ name = "Microsoft", email = "af-support@microsoft.com"}]
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
7
- version = "1.10.2"
7
+ version = "1.10.3"
8
8
  license-files = ["LICENSE"]
9
9
  urls.homepage = "https://aka.ms/agent-framework"
10
10
  urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"