We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd79b07 commit 70c1701Copy full SHA for 70c1701
2 files changed
.env.sample
@@ -0,0 +1,2 @@
1
+OPENAI_API_KEY=your-openai-api-key
2
+GITHUB_ACCESS_TOKEN=your-github-access-token
src/index.ts
@@ -1,7 +1,7 @@
import { Agentica } from "@agentica/core";
-import typia from "typia";
3
import dotenv from "dotenv";
4
import { OpenAI } from "openai";
+import typia from "typia";
5
6
import { GithubService } from "@wrtnlabs/connector-github";
7
@@ -20,7 +20,10 @@ export const agent = new Agentica({
20
name: "Github Connector",
21
protocol: "class",
22
application: typia.llm.application<GithubService, "chatgpt">(),
23
- execute: new GithubService(),
+ execute: new GithubService({
24
+ secret: process.env.GITHUB_ACCESS_TOKEN!,
25
+ aws: {},
26
+ }),
27
},
28
],
29
});
0 commit comments