Skip to content

Customization for toolboxes preview#49260

Open
kaylieee wants to merge 3 commits into
kaylieee/release/2.1.0from
kaylieee/feature/toolboxes-patch
Open

Customization for toolboxes preview#49260
kaylieee wants to merge 3 commits into
kaylieee/release/2.1.0from
kaylieee/feature/toolboxes-patch

Conversation

@kaylieee
Copy link
Copy Markdown
Member

This pull request introduces support for a new TOOLBOXES_V1_PREVIEW enum value in the FoundryFeaturesOptInKeys and enables the use of the Foundry-Features HTTP header across all relevant ToolboxesClient and ToolboxesAsyncClient methods. This allows clients to opt in to preview features by specifying the new enum value, which is then sent as a header in API requests. Additionally, all toolbox-related methods are updated to accept the new enum parameter, ensuring consistent feature flagging.

Feature flag and enum support:

  • Added TOOLBOXES_V1_PREVIEW as a new enum value to FoundryFeaturesOptInKeys, enabling clients to opt in to preview toolbox features. [1] [2]

API client enhancements:

  • Updated all major methods in both ToolboxesClient and ToolboxesAsyncClient to accept an optional FoundryFeaturesOptInKeys foundryFeatures parameter. When provided, this value is sent as the Foundry-Features HTTP header in requests. This applies to methods such as createToolboxVersion, getToolbox, listToolboxes, listToolboxVersions, getToolboxVersion, updateToolbox, deleteToolbox, and deleteToolboxVersion. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

Imports and dependencies:

  • Added necessary imports for FoundryFeaturesOptInKeys and HttpHeaderName in both client files to support the new header and enum usage. [1] [2] [3] [4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants