remove _ from send/pub, add docs, (#91)

* remove _ from send/pub, add docs,

* fixes
This commit is contained in:
Jack Gerrits
2024-06-18 15:51:02 -04:00
committed by GitHub
parent 5b01f69b58
commit 4cebf7257b
19 changed files with 108 additions and 36 deletions

View File

@@ -30,7 +30,7 @@ class Outer(TypeRoutedAgent): # type: ignore
@message_handler() # type: ignore
async def on_new_message(self, message: MessageType, cancellation_token: CancellationToken) -> MessageType: # type: ignore
inner_response = self._send_message(message, self._inner)
inner_response = self.send_message(message, self._inner)
inner_message = await inner_response
assert isinstance(inner_message, MessageType)
return MessageType(body=f"Outer: {inner_message.body}", sender=self.metadata["name"])