-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPC over events #4414
base: main
Are you sure you want to change the base?
RPC over events #4414
Conversation
# TODO add "-" to topic and agent type allowed characters in spec | ||
closure_agent_type = f"rpc_receiver_{recipient.type}_{rpc_request_id}" | ||
|
||
future: asyncio.Future[Any] = asyncio.Future() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo save future to self
python/packages/autogen-core/test.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test file.
type=closure_agent_type, | ||
closure=set_result, | ||
forward_unbound_rpc_responses_to_handler=True, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't get over it. I think this particular ClosureAgent should be transient and removes itself quickly once this function scope is cleared.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100% agree, it should be removed immediately. We just need to implement agent removal
No description provided.