Skip to content

Commit 37b6c56

Browse files
committed
chore: remove authkit_supported_platforms
1 parent 1dcf787 commit 37b6c56

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

pica_langchain/client.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ def __init__(self, secret: str, options: Optional[PicaClientOptions] = None):
7777
self._system_prompt = get_authkit_system_prompt("Loading connections...")
7878
else:
7979
self._system_prompt = get_default_system_prompt("Loading connections...")
80-
81-
self._authkit_supported_platforms = options.authkit_supported_platforms
8280

8381
self.mcp_client = None
8482
self.mcp_tools = []
@@ -171,16 +169,7 @@ def _generate_system_prompt(self) -> None:
171169
if filtered_connections
172170
else "No connections available"
173171
)
174-
175-
# Filter connection definitions based on authkit_supported_platforms if provided
176-
filtered_connection_definitions = self.connection_definitions
177-
if self._use_authkit and self._authkit_supported_platforms:
178-
filtered_connection_definitions = [
179-
def_ for def_ in self.connection_definitions
180-
if def_.platform in self._authkit_supported_platforms
181-
]
182-
logger.debug(f"Filtered available platforms from {len(self.connection_definitions)} to {len(filtered_connection_definitions)} based on authkit_supported_platforms")
183-
172+
184173
available_platforms_info = "\n\t* ".join([
185174
f"{def_.platform} ({def_.name})"
186175
for def_ in self.connection_definitions

pica_langchain/models.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,6 @@ class PicaClientOptions(BaseModel):
269269
default=False,
270270
description="Whether to use the AuthKit integration which enables the promptToConnectPlatform tool"
271271
)
272-
authkit_supported_platforms: List[str] = Field(
273-
default_factory=list,
274-
description="List of platform identifiers to include in the available platforms list for AuthKit. Use empty list to include all platforms."
275-
)
276272
mcp_options: Optional[Dict[str, Any]] = Field(
277273
default=None,
278274
description="MCP server configuration options. Dictionary with server names as keys and configuration as values."

0 commit comments

Comments
 (0)