Skip to content

Commit fa3b8ac

Browse files
committed
fix: update method's parameter is not single object, so I omitted it
1 parent 338c62b commit fa3b8ac

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/index.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,15 @@ export const agent = new Agentica({
1919
{
2020
name: "GoogleDocs Connector",
2121
protocol: "class",
22-
application: typia.llm.application<GoogleDocsService, "chatgpt">(),
23-
execute: new GoogleDocsService(),
22+
application: typia.llm.application<
23+
Omit<GoogleDocsService, "update">,
24+
"chatgpt"
25+
>(),
26+
execute: new GoogleDocsService({
27+
clientId: process.env.GOOGLE_DOCS_CLIENT_ID!,
28+
clientSecret: process.env.GOOGLE_DOCS_CLIENT_SECRET!,
29+
secret: process.env.GOOGLE_DOCS_REFRESH_TOKEN!,
30+
}),
2431
},
2532
],
2633
});

0 commit comments

Comments
 (0)