<#3160 Adds metadata to FlyteFile> Pull request op...
# flyte-github
c
#3160 Adds metadata to FlyteFile Pull request opened by thomasjpfan ## Tracking issue Closes flyteorg/flyte#6257 ## Why are the changes needed? With this PR, metacata can be attached to a FlyteFile. ## What changes were proposed in this pull request? This PR adds
metadata
to FlyteFile so that it an adjust the Literal's metadata. ## How was this patch tested? Unit test and integration tests were updated. The UI automatically shows the new metadata: [Screenshot 2025-02-27 at 10 16 32 AM](https://private-user-images.githubusercontent.com/5402633/417659467-d93465b5-8809-4508-8f54-421a615965f8.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDEyOTMzNzQsIm5iZiI6MTc0MTI5MzA3NCwicGF0aCI6Ii81NDAyNjMzLzQxNzY1OTQ2Ny1kOTM0NjViNS04ODA5LTQ1MDgtOGY1NC00MjFhNjE1OTY1ZjguanBnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDMwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAzMDZUMjAzMTE0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzZiNzEzMzU3YzYxMjlhMDMyMGFmODg0MTgxNDI2MDczMjJkMDE2YTUwZGU3NWUyZjAwOTBiMDJlZjYzNDdjZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.MCqcFKWucejRlGSPlagzUW9wFG9-RJwRy2ZfBMOpC9g) ### Summary by Bito This PR has two main components: 1) Adds metadata support to FlyteFile with serialization/deserialization handling and type validation, enabling storage of string key-value pairs and preserving metadata during workflow execution. 2) Implements modular agent-related dependencies by moving them to an optional dependency group, with updates to Dockerfile.agent and dependency management through pyproject.toml. Unit tests added: True Estimated effort to review (1-5, lower is better): 2 flyteorg/flytekit