Skip to content

.NET & Python: Tool approval_mode="never_require" ignored when batched with approval-required tools #4879

@giles17

Description

@giles17

Description

When the LLM returns a batch of tool calls where some tools have approval_mode="always_require" and others have approval_mode="never_require", the framework creates approval requests for all tools in the batch, not just the ones that require approval.

What happens: The user is prompted to approve every tool call, including those marked never_require.

What should happen: Only always_require tools should produce approval requests. never_require tools in the same batch should execute immediately without prompting.

Python: Issue exists here: samples\02-agents\tools\function_tool_with_approval.py

Metadata

Metadata

Assignees

Labels

.NETbugSomething isn't workingpythonv1.0Features being tracked for the version 1.0 GA

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions