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.
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/PKG-INFO +1 -1
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_agent.py +12 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/pyproject.toml +1 -1
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/LICENSE +0 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/README.md +0 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/__init__.py +0 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_chat_client.py +0 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_embedding_client.py +0 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_foundry_evals.py +0 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_memory_provider.py +0 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_oauth_helpers.py +0 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_to_prompt_agent.py +0 -0
- {agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_tools.py +0 -0
{agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_agent.py
RENAMED
|
@@ -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.
|
|
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"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agent_framework_foundry-1.10.2 → agent_framework_foundry-1.10.3}/agent_framework_foundry/_tools.py
RENAMED
|
File without changes
|