Skip to content

Add greeting handler for agent interactions#1

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/update-user-profile-page
Draft

Add greeting handler for agent interactions#1
Copilot wants to merge 4 commits intomainfrom
copilot/update-user-profile-page

Conversation

Copy link

Copilot AI commented Dec 10, 2025

The agent lacked basic conversational affordances for initial user interactions.

Changes

  • Greeting detection (main.py): Added handle_greeting() that intercepts common greetings (hi, hello, hey, etc.) and returns a welcome message with capability overview and example queries, bypassing agent invocation for zero-value interactions

  • Documentation (README.md): Updated Agent Workflow section to reflect greeting handler

  • Repository hygiene (.gitignore): Added standard Python exclusions

Example

# Input: "hi"
# Output: Welcome message with examples, no API call

# Input: "Find advisers for Form D accession 0000005108-25-000002"
# Output: Agent processes query normally

The handler uses simple string matching with case-insensitive prefix checks, returning None for non-greetings to fall through to normal agent execution.

Original prompt

hi

Created from VS Code via the GitHub Pull Request extension.


💡 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.

Copilot AI and others added 3 commits December 10, 2025 03:38
Co-authored-by: sanjanacp <98383939+sanjanacp@users.noreply.github.com>
Co-authored-by: sanjanacp <98383939+sanjanacp@users.noreply.github.com>
Co-authored-by: sanjanacp <98383939+sanjanacp@users.noreply.github.com>
Copilot AI changed the title [WIP] Update user profile page layout and styling Add greeting handler for agent interactions Dec 10, 2025
Copilot AI requested a review from sanjanacp December 10, 2025 03:43
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