Python: Include InvokeAzureAgent input.arguments in agent text - #7907
Draft
Shivani . (Shivani767) wants to merge 1 commit into
Draft
Python: Include InvokeAzureAgent input.arguments in agent text#7907Shivani . (Shivani767) wants to merge 1 commit into
Shivani . (Shivani767) wants to merge 1 commit into
Conversation
Fold evaluated input.arguments into the text passed to agent.run() so argument-only InvokeAzureAgent actions no longer silently invoke with an empty string.
Shivani . (Shivani767)
deployed
to
github-app-auth
August 27, 2026 10:25 — with
GitHub Actions
Active
Shivani . (Shivani767)
deployed
to
github-app-auth
August 27, 2026 10:25 — with
GitHub Actions
Active
Shivani . (Shivani767)
deployed
to
github-app-auth
August 27, 2026 10:25 — with
GitHub Actions
Active
Shivani . (Shivani767)
deployed
to
github-app-auth
August 27, 2026 10:25 — with
GitHub Actions
Active
Shivani . (Shivani767)
deployed
to
github-app-auth
August 27, 2026 10:25 — with
GitHub Actions
Active
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes #7902 by preserving evaluated InvokeAzureAgent arguments in agent input text.
Changes:
- Formats arguments as
key: valuelines. - Combines arguments with explicit or fallback message text.
- Adds regression coverage for argument-only, combined, and expression-based inputs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
python/packages/declarative/agent_framework_declarative/_workflows/_executors_agents.py |
Includes evaluated arguments in agent input text. |
python/packages/declarative/tests/test_graph_coverage.py |
Adds regression tests for argument handling. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
InvokeAzureAgentExecutor._build_input_text()evaluatedinput.argumentsintoevaluated_argsand then never used that dict. Actions that supply onlyinput.arguments(as in the customer_support sample) therefore invoked the agent with an empty string.Fixes #7902
Description & Review Guide
What are the major changes?
input.argumentsaskey: valuelines (same shape as multi-valueWorkflow.Inputsfallback).What is the impact of these changes?
InvokeAzureAgentactions now pass structured values toagent.run().What do you want reviewers to focus on?
structured_inputschannel (.NETuses the latter; Pythonrun()has no equivalent parameter).Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.