Skip to content

Commit

Permalink
fix exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
peterychang committed Nov 15, 2024
1 parent 89ffbca commit 42ccad3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private async ValueTask AddSubscriptionAsync(GrpcWorkerConnection connection, Ad
var topic = request.Subscription.TypeSubscription.TopicType;
var agentType = request.Subscription.TypeSubscription.AgentType;
_subscriptionsByAgentType[agentType] = request.Subscription;
_subscriptionsByTopic[topic].Add(agentType);
_subscriptionsByTopic.GetOrAdd(topic, _ => []).Add(agentType);
await _subscriptions.Subscribe(topic, agentType);
//var response = new AddSubscriptionResponse { RequestId = request.RequestId, Error = "", Success = true };
Message response = new()
Expand Down
2 changes: 1 addition & 1 deletion python/packages/autogen-core/samples/xlang/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def main() -> None:
await runtime.add_subscription(DefaultSubscription(agent_type="proxy"))
agnext_logger.info("3")

await runtime.publish_message(message=Input(message=""), topic_id="HelloAgents")
await runtime.publish_message(message=Input(message=""), topic_id=DefaultTopicId())
await runtime.stop_when_signal()
# await runtime.stop_when_idle()

Expand Down

0 comments on commit 42ccad3

Please sign in to comment.