From 82f12dd2f307f343405a2a3250df9a853aff1135 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 8 Apr 2026 15:24:16 -0400 Subject: [PATCH] Export ProviderConfig from Node.js and Python SDKs ProviderConfig was defined in both SDKs but not re-exported from their public API entry points. Consumers had to duplicate the type locally to use it for Responses API configuration (wireApi: 'responses'). - Node.js: add ProviderConfig to the type re-exports in src/index.ts - Python: import ProviderConfig in copilot/__init__.py and add to __all__ Fixes github/copilot-sdk-partners#7 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- nodejs/src/index.ts | 1 + python/copilot/__init__.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/nodejs/src/index.ts b/nodejs/src/index.ts index 3fab122db..9312dab9a 100644 --- a/nodejs/src/index.ts +++ b/nodejs/src/index.ts @@ -42,6 +42,7 @@ export type { PermissionHandler, PermissionRequest, PermissionRequestResult, + ProviderConfig, ResumeSessionConfig, SectionOverride, SectionOverrideAction, diff --git a/python/copilot/__init__.py b/python/copilot/__init__.py index 702d35035..6bd6c7828 100644 --- a/python/copilot/__init__.py +++ b/python/copilot/__init__.py @@ -23,6 +23,7 @@ ElicitationParams, ElicitationResult, InputOptions, + ProviderConfig, SessionCapabilities, SessionFsConfig, SessionFsHandler, @@ -49,6 +50,7 @@ "ModelLimitsOverride", "ModelSupportsOverride", "ModelVisionLimitsOverride", + "ProviderConfig", "SessionCapabilities", "SessionFsConfig", "SessionFsHandler",