Skip to content

Commit dad9dbd

Browse files
authored
Merge pull request #6 from picahq/feat/add-project-identity-type
feat: add identity type for project
2 parents af28877 + 2e652c0 commit dad9dbd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `PicaClientOptions` class allows you to configure the Pica client with the f
2424
| connectors | List[str] | No | [] | List of connector keys to filter by. Pass ["*"] to initialize all available connectors, or specific connector keys to filter. If empty, no connections will be initialized. |
2525
| authkit | bool | No | False | If True, the SDK will use Authkit to connect to prompt the user to connect to a platform that they do not currently have access to |
2626
| identity | str | No | None | Filter connections by specific identity ID. |
27-
| identity_type | "user", "team", or "organization" | No | None | Filter connections by identity type. |
27+
| identity_type | "user", "team", "organization", or "project" | No | None | Filter connections by identity type. |
2828

2929
The `create_pica_agent` function allows customizing the following parameters:
3030

@@ -127,7 +127,7 @@ cd pica-langchain
127127

128128
```bash
129129
python -m venv venv
130-
source venv/bin/activate # On Windows: venv\Scripts\activate
130+
source venv/bin/activate
131131
```
132132

133133
3. Create a connection on [Pica](https://app.picaos.com):

pica_langchain/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, secret: str, options: Optional[PicaClientOptions] = None):
3535
- server_url: Custom server URL to use instead of the default.
3636
- connectors: List of connector keys to filter by.
3737
- identity: Filter connections by specific identity ID.
38-
- identity_type: Filter connections by identity type (user, team, or organization).
38+
- identity_type: Filter connections by identity type (user, team, organization, or project).
3939
- authkit: Whether to use the AuthKit integration which enables the promptToConnectPlatform tool.
4040
"""
4141
if not secret:

pica_langchain/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ class PicaClientOptions(BaseModel):
265265
default=None,
266266
description="Filter connections by specific identity ID"
267267
)
268-
identity_type: Optional[Literal["user", "team", "organization"]] = Field(
268+
identity_type: Optional[Literal["user", "team", "organization", "project"]] = Field(
269269
default=None,
270-
description="Filter connections by identity type (user, team, or organization)"
270+
description="Filter connections by identity type (user, team, organization, or project)"
271271
)
272272
authkit: bool = Field(
273273
default=False,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="pica-langchain",
5-
version="1.2.1",
5+
version="1.2.2",
66
packages=find_packages(),
77
install_requires=[
88
"langchain==0.3.20",

0 commit comments

Comments
 (0)