Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a typescript version of autogen #5677

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
117fbca
first drafts
rysweet Feb 23, 2025
ec44efe
add base agent
rysweet Feb 23, 2025
e72c49c
ai-assisted draft
rysweet Feb 23, 2025
f7b05ff
message delivery
rysweet Feb 23, 2025
70cd8f2
MessageContext, TopicId, KVStringParseHelper
rysweet Feb 23, 2025
e41659f
alignment of types/exceptions etc
rysweet Feb 23, 2025
a321e2f
add GettingStarted for typescript
rysweet Feb 23, 2025
e64a20e
add missing imports for IAgentRuntime
rysweet Feb 23, 2025
672fcd9
add Readme for the sample
rysweet Feb 23, 2025
9be0f65
boot strap tests and move packages into src
rysweet Feb 23, 2025
deb3e02
resolving errors in tests
rysweet Feb 23, 2025
dfa0819
fixing tests, updating deps
rysweet Feb 23, 2025
186d141
interim check - tests are still failing
rysweet Feb 24, 2025
63f68bf
fix inprocessruntime tests
rysweet Feb 24, 2025
2f35a82
make tests closer to dotnet tests
rysweet Feb 24, 2025
76a7954
agents tests pass
rysweet Feb 24, 2025
969f0ac
improving test hygiene
rysweet Feb 24, 2025
b4ae757
Rysweet typescript doc comments (#5678)
rysweet Feb 24, 2025
9aee01b
Update typescript/samples/GettingStarted/index.ts
rysweet Feb 24, 2025
e02d7f1
more doc coments
rysweet Feb 24, 2025
8635c15
initial draft of documentation
rysweet Feb 24, 2025
df08f14
adding doc coments to core
rysweet Feb 24, 2025
5a75c2d
remove duplicate
rysweet Feb 24, 2025
af2d3d8
updates to make sure GettingStarted works
rysweet Feb 24, 2025
3ac65f7
Merge branch 'main' into rysweet-typescript
rysweet Feb 24, 2025
20fd3fa
initial agentchat impl
rysweet Feb 24, 2025
693587f
adding tests for agentchat
rysweet Feb 24, 2025
6bafa25
interim trying to fix agentchat
rysweet Feb 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions typescript/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# AutoGen TypeScript Implementation

This is the TypeScript implementation of the AutoGen framework.

## Prerequisites

- Node.js 18 or later
- npm 8 or later

## Setup

Install dependencies:

```bash
npm install
```

## Building

The project uses TypeScript and can be built using:

```bash
npm run build
```

## Testing

Run all tests:

```bash
npm test
```

Run specific test file(s):
```bash
npm test test/core/InProcessRuntime.test.ts
```

Run tests matching a pattern:
```bash
npm test -- -t "should not deliver to self"
```

Run tests in watch mode during development:

```bash
npm run test:watch
```

## Project Structure

- `/src` - Source code
- `/contracts` - Interface definitions
- `/core` - Core implementation
- `/test` - Test files
- `/core` - Core tests

## Development Notes

- The project uses Jest for testing
- TypeScript decorators are enabled and used for subscriptions
- Tests require `reflect-metadata` for decorator support
13 changes: 13 additions & 0 deletions typescript/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/test/**/*.test.ts'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
transform: {
'^.+\\.tsx?$': ['ts-jest', {
tsconfig: 'tsconfig.json'
}]
}
};
Loading
Loading