[docs]classPsychicLoader(BaseLoader):"""Load from `Psychic.dev`."""
[docs]def__init__(self,api_key:str,account_id:str,connector_id:Optional[str]=None):"""Initialize with API key, connector id, and account id. Args: api_key: The Psychic API key. account_id: The Psychic account id. connector_id: The Psychic connector id. """try:frompsychicapiimportConnectorId,PsychicexceptImportError:raiseImportError("`psychicapi` package not found, please run `pip install psychicapi`")self.psychic=Psychic(secret_key=api_key)self.connector_id=ConnectorId(connector_id)self.account_id=account_id