Connect Pica with the Vercel AI SDK for enhanced AI capabilities
Option | Type | Required | Default | Description |
---|---|---|---|---|
serverUrl | String | No | https://api.picaos.com | URL for self-hosted Pica server. |
connectors | String[] | 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 | |
actions | String[] | No | All actions | List of action ids to filter by |
permissions | "read" | "write" | "admin" | No | "admin" | Permissions for the Pica client. "read" will only allow GET requests, "write" will allow POST/PUT/PATCH requests, and "admin" will allow all methods. |
identity | String | No | None | Filter connections by specific identifier. |
identityType | "user", "team", "project", "organization" | No | None | Filter connections by identity type. |
authkit | Boolean | 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 |
knowledgeAgent | Boolean | No | false | If true, the SDK will never execute actions, but will use Pica’s knowledge to generate code. If true, use pica.intelligenceTool instead of pica.oneTool |
knowledgeAgentConfig | Object | No | { includeEnvironmentVariables: true } | Configuration for the Knowledge Agent. If includeEnvironmentVariables is true, the SDK will return a reminder to include environment variables in the output |