<#714 fix(anthropic): route async Flyte task execu...
# flyte-github
a
#714 fix(anthropic): route async Flyte task execution through task.aio() Pull request opened by AdilFayyaz Summary: • FunctionTool.execute() now calls task.aio() for async Flyte tasks instead of calling self.func directly, ensuring nested task invocations go through Flyte's controller properly • Added test_function_tool_execute_async_flyte_task_uses_aio to verify the aio() code path is taken Test plan: • uv run pytest tests/test_agents.py - all 59 tests pass • New test mocks task.aio and asserts it is called with the correct kwargs flyteorg/flyte-sdk