Add subscription factory to AgentRuntime.register (#393)

* Add subscriptions to factory

* tests and bug fix
This commit is contained in:
Jack Gerrits
2024-08-22 16:53:35 -04:00
committed by GitHub
parent dc847d3985
commit 30d1b50c0d
7 changed files with 167 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ from dataclasses import dataclass
from typing import Any, NoReturn
from agnext.application import WorkerAgentRuntime
from agnext.components import TypeRoutedAgent, message_handler, TypeSubscription
from agnext.components import TypeRoutedAgent, TypeSubscription, message_handler
from agnext.core import MESSAGE_TYPE_REGISTRY, AgentId, AgentInstantiationContext, MessageContext, TopicId