Microsoft has released a Python update to its Agent Framework that lets callers receive only the final response from an agent's processing loop. Microsoft's release notes list the option, called loop_return_final_only, among several additions.
The option is exposed on the create_harness_agent() function and applies to non-streaming callers, meaning those who wait for a complete answer instead of receiving it piece by piece. Microsoft says the existing default and the streaming behavior stay unchanged.
The release also adds an optional, experimental callback named message_labeler to SecureAgentConfig. It lets an application classify messages supplied by context providers, the components that feed extra information to an agent, using its own rules.
The GitHub Copilot integration now accepts Pydantic models and JSON Schema mappings through its response_format setting. Both describe the structure an answer should follow. Parsed response values are returned in streaming and non-streaming runs. The release also adds sample guidance and an executable example for task-scoped authority middleware. A change to the GitHub Copilot package is marked as breaking, but the available notes cut off before describing its requirement.
Source: Release python-1.26.0 · microsoft/agent-framework · GitHub.