-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationproj-core
Milestone
Description
Currently the only documentation for RPC and Pub/Sub messaging is in the two sub sections: https://microsoft.github.io/autogen/stable/user-guide/core-user-guide/framework/message-and-communication.html#message-and-communication
Several recent issues show a gap of understanding in using this. e.g., #5317
Let's expand the documentation on messaging into two new sections:
- Direct (RPC) Messages
- Broadcast (Pub-Sub) Messages
In the Broadcast Messages section, explain the following topics:
- How to publish a message: from the runtime directly, and from an agent to a
TopicId - How to subscribe to a topic type: using
typic_subscriptiondecorator, and usingruntime.add_subscriptionmethod. - Show an simple example of the
Modifier-Checkerusingadd_subscriptionand publish toTopicIdspecifically. - A more advanced example of multiple subscriptions for Checker and two Modifier agents.
- Show how to use
default_subscriptionandDefaultTopicIdto simplify the code -- and a note on a global publishing scope.
Other tasks:
- Link to the topic and subscription core concept and cookbook.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationproj-core