-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
24 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Eko } from "@eko-ai/eko"; | ||
import { EkoConfig } from "@eko-ai/eko/types"; | ||
import { tools, getLLMConfig } from "@eko-ai/eko/extension"; | ||
|
||
export async function main() { | ||
// Load LLM model configuration | ||
// the current browser plugin project provides a page for configuring LLM parameters | ||
let config = await getLLMConfig(); | ||
if (!config && !config.apiKey) { | ||
throw Error("Please configure apiKey"); | ||
} | ||
|
||
// Initialize eko | ||
let eko = new Eko(config as EkoConfig); | ||
|
||
// TODO workflow code | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
import { testTools } from "./test_tools"; | ||
import { testWebSearchWithLLM } from "./test_llm_search"; | ||
import { testWebSearchWithComputer } from "./test_llm_computer"; | ||
import { testWebSearchWithWorkflow } from "./test_llm_workflow"; | ||
import { main } from "./first_workflow"; | ||
|
||
chrome.runtime.onMessage.addListener(async function ( | ||
request, | ||
sender, | ||
sendResponse | ||
) { | ||
// Listen to messages from the browser extension | ||
chrome.runtime.onMessage.addListener(async function (request, sender, sendResponse) { | ||
if (request.type == "run") { | ||
// await testTools(); | ||
// await testWebSearchWithLLM(); | ||
// await testWebSearchWithComputer(); | ||
await testWebSearchWithWorkflow(); | ||
// Click the RUN button to execute the main function (workflow) | ||
await main(); | ||
} | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.