Skip to content

Add proactive message update example#405

Merged
lilyydu merged 2 commits intomainfrom
kavin/proactive-messaging-update-example
Apr 24, 2026
Merged

Add proactive message update example#405
lilyydu merged 2 commits intomainfrom
kavin/proactive-messaging-update-example

Conversation

@singhk97
Copy link
Copy Markdown
Contributor

@singhk97 singhk97 commented Apr 24, 2026

Summary

  • Add Example 3 to the proactive-messaging sample showing how to send a message and then update it using the ConversationClient
  • Demonstrates the send-then-update pattern for proactive messaging without a running server

Test plan

  • Run uv run src/main.py <conversation_id> and verify all 3 examples work
  • Confirm the third message shows "Status: Pending..." then updates to "Status: Complete"

Add Example 3 to the proactive-messaging sample showing how to send a
message and then update it proactively using the ConversationClient.
Copilot AI review requested due to automatic review settings April 24, 2026 22:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a third scenario to the proactive-messaging example app to demonstrate the “send then update” proactive messaging pattern using the SDK’s Conversations activity update API (no HTTP server required).

Changes:

  • Convert the previous module-level narrative docstring into a comment header (license-only module docstring remains).
  • Add an Example 3 function that sends a proactive message, waits briefly, then updates the same activity via app.api.conversations.activities(...).update(...).
  • Wire Example 3 into main() with a short delay between examples.

Copy link
Copy Markdown
Collaborator

@lilyydu lilyydu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for updating!!

@lilyydu lilyydu merged commit cda875a into main Apr 24, 2026
7 checks passed
@lilyydu lilyydu deleted the kavin/proactive-messaging-update-example branch April 24, 2026 23:46
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.

3 participants