mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 15:03:16 +00:00
* feat: openswe v2 * feat: yarn lock * update: add eslint * update: working build & lint * chore: update types * chore: format * reorg agent v2 * cleanup * fixes * nits: modifications * feat: updates * nit: update yarn lock * nit: don't add dep to root * chore: update yarn * chore: update langgraph.json * nit: update names * chore: update functions * nit: update --------- Co-authored-by: bracesproul <braceasproul@gmail.com>
21 lines
855 B
TypeScript
21 lines
855 B
TypeScript
import "@langchain/langgraph/zod";
|
|
import { createDeepAgent } from "deepagents";
|
|
import { codeReviewerAgent, testGeneratorAgent } from "./subagents.js";
|
|
import { getCodingInstructions } from "./prompts.js";
|
|
import { createAgentPostModelHook } from "./post-model-hook.js";
|
|
import { CodingAgentState } from "./state.js";
|
|
import { executeBash, httpRequest, webSearch } from "./tools.js";
|
|
|
|
const codingInstructions = getCodingInstructions();
|
|
const postModelHook = createAgentPostModelHook();
|
|
|
|
const agent = createDeepAgent({
|
|
tools: [executeBash, httpRequest, webSearch],
|
|
instructions: codingInstructions,
|
|
subagents: [codeReviewerAgent, testGeneratorAgent],
|
|
isLocalFileSystem: true,
|
|
postModelHook: postModelHook,
|
|
stateSchema: CodingAgentState,
|
|
}).withConfig({ recursionLimit: 1000 }) as any;
|
|
|
|
export { agent, executeBash, httpRequest, webSearch };
|