@ax-crew/tools-google
Google service integrations for AxCrew agents, including Gmail and Google Drive capabilities.
Installation
npm install @ax-crew/tools-google
Features
Gmail Integration
import { GmailSearch, GmailSend, GmailConfig } from '@ax-crew/tools-google';
const config: GmailConfig = {
credentials: {
clientId: 'your_client_id',
clientSecret: 'your_client_secret',
redirectUri: 'your_redirect_uri',
refreshToken: 'your_refresh_token'
}
};
const gmailSearch = new GmailSearch(config);
const gmailSend = new GmailSend(config);
const customFunctions = {
GmailSearch: gmailSearch.toFunction(),
GmailSend: gmailSend.toFunction()
};
Google Drive Integration
import { DriveSearch, DriveConfig } from '@ax-crew/tools-google';
const config: DriveConfig = {
credentials: {
clientId: 'your_client_id',
clientSecret: 'your_client_secret',
redirectUri: 'your_redirect_uri',
refreshToken: 'your_refresh_token'
}
};
const driveSearch = new DriveSearch(config);
const customFunctions = {
DriveSearch: driveSearch.toFunction()
};
const crew = new AxCrew(AxCrewConfig, customFunctions);