@langchain/community
Version:
Third-party integrations for LangChain.js
1 lines • 1.53 kB
Source Map (JSON)
{"version":3,"file":"create.d.ts","names":["CallbackManagerForToolRun","GoogleCalendarBase","GoogleCalendarAgentParams","GoogleCalendarCreateTool","Promise"],"sources":["../../../src/tools/google_calendar/create.d.ts"],"sourcesContent":["import { CallbackManagerForToolRun } from \"@langchain/core/callbacks/manager\";\nimport { GoogleCalendarBase, GoogleCalendarAgentParams } from \"./base.js\";\n/**\n * @example\n * ```typescript\n * const googleCalendarCreateTool = new GoogleCalendarCreateTool({\n * credentials: {\n * clientEmail: process.env.GOOGLE_CALENDAR_CLIENT_EMAIL,\n * privateKey: process.env.GOOGLE_CALENDAR_PRIVATE_KEY,\n * calendarId: process.env.GOOGLE_CALENDAR_CALENDAR_ID,\n * },\n * scopes: [\n * \"https:\n * \"https:\n * ],\n * model: new ChatOpenAI({ model: \"gpt-4o-mini\" }),\n * });\n * const createInput = `Create a meeting with John Doe next Friday at 4pm - adding to the agenda of it the result of 99 + 99`;\n * const createResult = await googleCalendarCreateTool.invoke({\n * input: createInput,\n * });\n * console.log(\"Create Result\", createResult);\n * ```\n */\nexport declare class GoogleCalendarCreateTool extends GoogleCalendarBase {\n name: string;\n description: string;\n constructor(fields: GoogleCalendarAgentParams);\n _call(query: string, runManager?: CallbackManagerForToolRun): Promise<string>;\n}\n//# sourceMappingURL=create.d.ts.map"],"mappings":";;;;;;;AAwBA;;;;;AAAwE;;;;;;;;;;;;;;;cAAnDG,wBAAAA,SAAiCF,kBAAAA;;;sBAG9BC;oCACcF,4BAA4BI"}