acoustic-carpenter-78188
06/03/2026, 1:38 AMAgent.run and CodeModeAgent.run methods are now decorated with @syncify, making them callable both synchronously (agent.run(...)) and asynchronously via .aio (await agent.run.aio(...)). This change is reflected throughout all agent examples and documentation, clarifying the distinction between sync and async usage and updating all sample code accordingly.
• All relevant documentation, code comments, and example scripts have been updated to explain and demonstrate the new sync/async interface, including when to use each method and how the chat UI and Flyte tasks automatically use the async interface.
Memory and object storage improvements:
• The memory store logic now supports path rewriting for object storage in hosted Flyte environments. A new _normalize_raw_data_path function ensures that memory keys remain stable and consistent even when the runtime mounts object storage at a different prefix than the logical URI. This avoids issues with memory store paths drifting across environments.
• The memory store root is now computed using both the raw data path and any path rewrite information present in the Flyte context, ensuring correct path resolution regardless of storage mount configuration.
• When resolving remote paths for memory keys, the logic now consults the current task context to fill in missing organization, project, or domain values, and logs the resolved remote path for easier debugging.
These changes make the agent interface easier to use correctly in both sync and async contexts and improve the reliability of memory storage in complex deployment scenarios.
flyteorg/flyte-sdkacoustic-carpenter-78188
06/03/2026, 1:41 PM