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
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
The authkit configuration option initiates Pica’s AuthKit. When enabled, the SDK will prompt the user to connect to a platform that they do not currently have access to.
const pica = new Pica(process.env.PICA_SECRET_KEY!, { authkit: true // Simply pass true to enable AuthKit});
const pica = new Pica(process.env.PICA_SECRET_KEY!, { authkit: true // Simply pass true to enable AuthKit});
The knowledge agent is a configuration optional that initiates Pica’s knowledge agent. When enabled, the knowledge agent will be used to generate code instead of executing actions.
const pica = new Pica(process.env.PICA_SECRET_KEY!, { knowledgeAgent: true});