Skip to content

Commit

Permalink
Update references to lib package
Browse files Browse the repository at this point in the history
  • Loading branch information
gramliu committed Dec 3, 2023
1 parent 5fc3704 commit 17bc4e0
Show file tree
Hide file tree
Showing 41 changed files with 44 additions and 904 deletions.
1 change: 1 addition & 0 deletions apps/agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"koa": "^2.14.2",
"koa-bodyparser": "^4.4.1",
"langchain": "^0.0.193",
"lib": "workspace:*",
"octokit": "^3.1.1",
"openai": "^4.19.0",
"puppeteer": "^21.5.2",
Expand Down
10 changes: 4 additions & 6 deletions apps/agent/src/agents/explorer_agent.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
import { AgentExecutor, OpenAIAgent } from "langchain/agents";
import { Callbacks } from "langchain/callbacks";
import { LLMChain } from "langchain/chains";
import { ChatOpenAI } from "langchain/chat_models/openai";
import {
ChatPromptTemplate,
HumanMessagePromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
} from "langchain/prompts";
import { StructuredTool } from "langchain/tools";
import { env } from "~/env";
import { RepositoryWalker } from "~/lib/github/repository";
import { RepositoryWalker } from "@lib/github/repository";
import { createChatModel } from "@lib/openai";
import UpdateFileTool from "~/tools/update_file";
import ListFilesTool from "../tools/list_files";
import ReadFileTool from "../tools/read_file";
import SaveAnalysisTool from "../tools/save_analysis";
import { ToolSchema } from "../tools/util";
import WriteFileTool, { FileWriteAccumulator } from "../tools/write_file";
import { Callbacks } from "langchain/callbacks";
import { createChatModel } from "~/lib/openai";
import UpdateFileTool from "~/tools/update_file";

interface CreateExplorerAgentBaseOptions<T extends ToolSchema> {
walker: RepositoryWalker;
Expand Down
71 changes: 0 additions & 71 deletions apps/agent/src/agents/util/identify_tool.ts

This file was deleted.

34 changes: 0 additions & 34 deletions apps/agent/src/agents/util/serialize.ts

This file was deleted.

4 changes: 2 additions & 2 deletions apps/agent/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Koa from "koa";
import bodyParser from "koa-bodyparser";
import { githubWebhooks } from "./lib/github";
import { registerWebhookListeners } from "./lib/github/webhooks";
import { githubWebhooks } from "@lib/github";
import { registerWebhookListeners } from "@lib/github/webhooks";
import router from "./routes";
import errorHandler from "./routes/middleware/error_handler";

Expand Down
30 changes: 0 additions & 30 deletions apps/agent/src/lib/api_error.ts

This file was deleted.

28 changes: 0 additions & 28 deletions apps/agent/src/lib/cache.ts

This file was deleted.

16 changes: 0 additions & 16 deletions apps/agent/src/lib/error.ts

This file was deleted.

40 changes: 0 additions & 40 deletions apps/agent/src/lib/github/client.ts

This file was deleted.

1 change: 0 additions & 1 deletion apps/agent/src/lib/github/index.ts

This file was deleted.

Loading

0 comments on commit 17bc4e0

Please sign in to comment.