[PR #5] [MERGED] feat: Complete TypeScript Implementation of Deep Agents Library #49

Closed
opened 2026-02-16 06:17:01 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/5
Author: @open-swe[bot]
Created: 8/4/2025
Status: Merged
Merged: 8/5/2025
Merged by: @Palashio

Base: mainHead: open-swe/8357536e-2207-4292-a24d-00ea431ed4d4


📝 Commits (10+)

📊 Changes

17 files changed (+2608 additions, -1 deletions)

View changed files

.env.example (+2 -0)
.gitignore (+49 -0)
📝 README.md (+71 -1)
eslint.config.js (+42 -0)
package.json (+71 -0)
researchAgent.js (+133 -0)
src/graph.ts (+79 -0)
src/index.ts (+37 -0)
src/model.ts (+24 -0)
src/prompts.ts (+284 -0)
src/state.ts (+61 -0)
src/subAgent.ts (+152 -0)
src/tools.ts (+272 -0)
src/types.ts (+105 -0)
test_example.js (+64 -0)
tsconfig.json (+27 -0)
yarn.lock (+1135 -0)

📄 Description

Fixes #4

Overview

This pull request completes the full TypeScript implementation of the Deep Agents library, providing a 1:1 compatible port of the original Python package. The implementation covers all core functionality including:

  • Project structure and configuration
  • State management with LangGraph annotations
  • Model configuration
  • Prompt constants
  • Tool implementations
  • Sub-agent creation
  • Deep agent graph construction
  • Comprehensive type definitions

Key Accomplishments

  • Created complete TypeScript project structure
  • Implemented state management with type-safe reducers
  • Ported all prompt constants exactly
  • Created tool functions with mock filesystem operations
  • Implemented sub-agent and task tool creation
  • Developed createDeepAgent() function with full TypeScript support
  • Added comprehensive type definitions
  • Configured build scripts and package metadata

Technical Details

  • Language: TypeScript
  • Core Dependencies:
    • @langchain/langgraph
    • @langchain/core
    • @langchain/anthropic
    • zod
  • Module System: ESM
  • Compilation Target: ES2022

The implementation maintains exact behavioral compatibility with the Python version while leveraging TypeScript's type system for enhanced developer experience.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/5 **Author:** [@open-swe[bot]](https://github.com/apps/open-swe) **Created:** 8/4/2025 **Status:** ✅ Merged **Merged:** 8/5/2025 **Merged by:** [@Palashio](https://github.com/Palashio) **Base:** `main` ← **Head:** `open-swe/8357536e-2207-4292-a24d-00ea431ed4d4` --- ### 📝 Commits (10+) - [`d972ed9`](https://github.com/langchain-ai/deepagentsjs/commit/d972ed936ab13dbbbdb23bb52b50918daa612b64) Apply patch [skip ci] - [`4abae93`](https://github.com/langchain-ai/deepagentsjs/commit/4abae93a5d2bcfd98ad51dd389d1bf74350f90e7) Apply patch [skip ci] - [`b27e982`](https://github.com/langchain-ai/deepagentsjs/commit/b27e982e19214e88f8c2036d14efd4f8a6b005ea) Apply patch [skip ci] - [`dcfa5d4`](https://github.com/langchain-ai/deepagentsjs/commit/dcfa5d445ee908e82ffa661870a5ce0c60eb26a8) Apply patch [skip ci] - [`0acb405`](https://github.com/langchain-ai/deepagentsjs/commit/0acb405e237f1ca8705ae1c105e7264120155090) Apply patch [skip ci] - [`4fcf506`](https://github.com/langchain-ai/deepagentsjs/commit/4fcf50684a0c65400e9acb546b4e03c0f619c273) Apply patch [skip ci] - [`0674ef8`](https://github.com/langchain-ai/deepagentsjs/commit/0674ef8c06eaa756c18d7de4923a280153444d13) Apply patch [skip ci] - [`a9afc15`](https://github.com/langchain-ai/deepagentsjs/commit/a9afc153775eac274ef4a4bb35464ec1cba3e3ec) Apply patch [skip ci] - [`3a3e3b1`](https://github.com/langchain-ai/deepagentsjs/commit/3a3e3b1e60c8e94981d8bf7477ed056bd2519dda) Apply patch [skip ci] - [`dbbc663`](https://github.com/langchain-ai/deepagentsjs/commit/dbbc663c77ce0928c93ce027216e2b4a95a97850) Apply patch [skip ci] ### 📊 Changes **17 files changed** (+2608 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `.env.example` (+2 -0) ➕ `.gitignore` (+49 -0) 📝 `README.md` (+71 -1) ➕ `eslint.config.js` (+42 -0) ➕ `package.json` (+71 -0) ➕ `researchAgent.js` (+133 -0) ➕ `src/graph.ts` (+79 -0) ➕ `src/index.ts` (+37 -0) ➕ `src/model.ts` (+24 -0) ➕ `src/prompts.ts` (+284 -0) ➕ `src/state.ts` (+61 -0) ➕ `src/subAgent.ts` (+152 -0) ➕ `src/tools.ts` (+272 -0) ➕ `src/types.ts` (+105 -0) ➕ `test_example.js` (+64 -0) ➕ `tsconfig.json` (+27 -0) ➕ `yarn.lock` (+1135 -0) </details> ### 📄 Description Fixes #4 ## Overview This pull request completes the full TypeScript implementation of the Deep Agents library, providing a 1:1 compatible port of the original Python package. The implementation covers all core functionality including: - Project structure and configuration - State management with LangGraph annotations - Model configuration - Prompt constants - Tool implementations - Sub-agent creation - Deep agent graph construction - Comprehensive type definitions ### Key Accomplishments - ✅ Created complete TypeScript project structure - ✅ Implemented state management with type-safe reducers - ✅ Ported all prompt constants exactly - ✅ Created tool functions with mock filesystem operations - ✅ Implemented sub-agent and task tool creation - ✅ Developed `createDeepAgent()` function with full TypeScript support - ✅ Added comprehensive type definitions - ✅ Configured build scripts and package metadata ### Technical Details - Language: TypeScript - Core Dependencies: - `@langchain/langgraph` - `@langchain/core` - `@langchain/anthropic` - `zod` - Module System: ESM - Compilation Target: ES2022 The implementation maintains exact behavioral compatibility with the Python version while leveraging TypeScript's type system for enhanced developer experience. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 06:17:01 -05:00
yindo closed this issue 2026-02-16 06:17:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#49