mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
remove _ from send/pub, add docs, (#91)
* remove _ from send/pub, add docs, * fixes
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user