autogen icon indicating copy to clipboard operation
autogen copied to clipboard

Implement remove_subscription in worker runtime

Open peterychang opened this issue 1 year ago • 3 comments

Worker runtime currently does not support subscription removal. This feature is needed for the updated direct messaging method used for multi-process workflows. Specifically, agents sending RPC messages to other agents will need to unsubscribe from the response channel once a response has been received

peterychang avatar Nov 25 '24 21:11 peterychang

@rysweet for the x-lang issues, is the scope of the issue to address it in both python and .net ? or should I try to break these into two issues?

MohMaz avatar Nov 26 '24 01:11 MohMaz

the apis will need work on both sides:

  • make .proto updates for RemoveSubscriptionRequest/Response
  • add handlers to run/read loop of .NET AgentWorker and GrpcGateway
  • add methods to AgentBase in each side to call those apis
  • In python add handlers to work when its python only

rysweet avatar Nov 26 '24 02:11 rysweet

Note - MSECAIRS has orchestration scenarios that also need this as well as GetSubscriptions()/_get_subscriptions()

rysweet avatar Dec 11 '24 16:12 rysweet