Academy v0.2.0
Overview
Academy v0.2 is a near total rework to the interfaces and user-experience. Check out the Migrating to v0.2 guide to learn more.
Update Steps
pip install --upgrade academy-pyWhat's Changed
Breaking Changes
- Remove launcher protocol by @AK2000 in #108
- Unbound exchange protocol by @AK2000 in #115
- Improve structure and clarity of exchange interfaces by @gpauloski in #119
- Change
ClientIdtoUserIdby @gpauloski in #120 - Remove dest parameter from send methods by @gpauloski in #121
- Add agent registration info protocol by @AK2000 in #124
- Merge
agent_idinto registration info returned byregister_agent()by @gpauloski in #126 - Rewrite Academy in asyncio by @gpauloski in #128
- Defer agent initialization to workers in
Launcherby @gpauloski in #130 - Improve
Managerusability and removeLauncherby @gpauloski in #131 - Refactor exchange error message types by @gpauloski in #141
- Rename
AgenttoRuntimeandBehaviortoAgentby @gpauloski in #145 - Rename callbacks to
agent_on_{startup,shutdown}by @gpauloski in #149 - New interface for http exchange by @AK2000 in #152
New Features
- Add client authentication to HTTP exchange by @AK2000 in #86
- Add basic mailbox ownership model for
HttpExchangeby @AK2000 in #104 - Add mypy plugin to support inference on
Handleattribute access by @gpauloski in #112 - Warn when executor is overloaded in manager by @gpauloski in #133
- Expose
AgentRunConfigas parameter toManager.launch()by @gpauloski in #134 - Expose agent runtime context to
Behaviorimplementations by @gpauloski in #137 - Add context pass through for action methods by @gpauloski in #138
- Improve ordering of agent setup and shutdown processes by @gpauloski in #139
- Support deferred behavior initialization in the
Managerby @gpauloski in #140 - Warn when action-decorated method name clashes with protected handle method by @gpauloski in #144
- Allow users to specify termination behavior when requesting agent shutdown by @gpauloski in #147
- Cancel running actions when an agent is shutdown by @gpauloski in #150
Bug Fixes
- Fix
EntityIdvalidation error in pydantic<2.10 by @gpauloski in #123 - Fix assertion error in Http exchange server when client disconnects early by @gpauloski in #143
- Change terminate semantics to cancel pending requests by @gpauloski in #151
- Lazily deserialize arguments in
ActionRequestmessages by @gpauloski in #156 - Fix issue in response result serialization by @AK2000 in #157
Improvements
- Create docs site by @gpauloski in #84
- Add preprint to README by @gpauloski in #87
- Remove queue backports and use culsans instead of aiologic by @gpauloski in #132
- Add examples of logging configuration within the
Managerby @gpauloski in #135 - Add migrating to v0.2 guide by @gpauloski in #148
Other Changes
- Add release GitHub Actions workflow by @gpauloski in #80
- Force LF line endings in pre-commit by @gpauloski in #122
New Contributors
Full Changelog: v0.1.0...v0.2.0