You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ The `PicaClientOptions` class allows you to configure the Pica client with the f
22
22
| --- | --- | --- | --- | --- |
23
23
| server_url | str | No |https://api.picaos.com| URL for self-hosted Pica server. |
24
24
| 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. |
25
+
| actions | List[str]| No | None | List of action ids to filter by. Default is all actions. |
26
+
| permissions | Literal["read", "write", "admin"]| No | None | Permission level to filter actions by. 'read' allows GET only, 'write' allows POST/PUT/PATCH, 'admin' allows all methods (default: 'admin') |
25
27
| 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 |
26
28
| identity | str | No | None | Filter connections by specific identity ID. |
27
29
| identity_type | "user", "team", "organization", or "project" | No | None | Filter connections by identity type. |
@@ -52,15 +54,19 @@ pica_client = PicaClient(
52
54
# identity_type="user"
53
55
# identity="user-id",
54
56
# authkit=True,
55
-
57
+
# actions=[""], # Initialize specific action ids (e.g. ["conn_mod_def::F_JeJ_A_TKg::cc2kvVQQTiiIiLEDauy6zQ"])
58
+
# permissions="read", # Filter actions by permission level
59
+
56
60
connectors=["*"] # Initialize all available connections for this example
57
61
)
58
62
)
59
63
64
+
pica_client.initialize()
65
+
60
66
# Create a LangChain agent with Pica tools
61
67
llm = ChatOpenAI(
62
68
temperature=0,
63
-
model="gpt-4o"
69
+
model="gpt-4.1"
64
70
)
65
71
66
72
# Create an agent with Pica tools
@@ -95,11 +101,13 @@ from pica_langchain import PicaClient, create_pica_tools
0 commit comments