Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 13, 2026

Addresses feedback on #44615 to align sample_agent_to_agent.py with the pattern used in fabric and bing custom search samples.

Changes

  • Updated sample_agent_to_agent.py line 70 to check A2A_USER_INPUT environment variable before prompting for user input
  • Implementation now matches the documented behavior (line 29) and pattern used in sample_agent_fabric.py and sample_agent_bing_custom_search.py
# Before
user_input = input("Enter your question (e.g., 'What can the secondary agent do?'): \n")

# After
user_input = os.environ.get("A2A_USER_INPUT") or input("Enter your question (e.g., 'What can the secondary agent do?'): \n")

This allows users to set A2A_USER_INPUT to skip interactive prompts, consistent with other agent tool samples.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link
Contributor Author

Copilot AI commented Jan 13, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • scanning-api.github.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update implementation for optional user input environment variables Check A2A_USER_INPUT environment variable before prompting for input Jan 13, 2026
Copilot AI requested a review from howieleung January 13, 2026 21:13
Base automatically changed from howie/user-input to main January 16, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants