Skip to content

Commit 70c1701

Browse files
committed
fix: add configuration
1 parent bd79b07 commit 70c1701

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
OPENAI_API_KEY=your-openai-api-key
2+
GITHUB_ACCESS_TOKEN=your-github-access-token

src/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Agentica } from "@agentica/core";
2-
import typia from "typia";
32
import dotenv from "dotenv";
43
import { OpenAI } from "openai";
4+
import typia from "typia";
55

66
import { GithubService } from "@wrtnlabs/connector-github";
77

@@ -20,7 +20,10 @@ export const agent = new Agentica({
2020
name: "Github Connector",
2121
protocol: "class",
2222
application: typia.llm.application<GithubService, "chatgpt">(),
23-
execute: new GithubService(),
23+
execute: new GithubService({
24+
secret: process.env.GITHUB_ACCESS_TOKEN!,
25+
aws: {},
26+
}),
2427
},
2528
],
2629
});

0 commit comments

Comments
 (0)