├── autogen-ui ├── autogenui │ ├── __init__.py │ ├── web │ │ ├── __init__.py │ │ ├── ui │ │ │ ├── favicon.ico │ │ │ ├── _next │ │ │ │ └── static │ │ │ │ │ ├── B9KwUOa9BD1Ep-rZJrUU9 │ │ │ │ │ ├── _ssgManifest.js │ │ │ │ │ └── _buildManifest.js │ │ │ │ │ ├── chunks │ │ │ │ │ ├── pages │ │ │ │ │ │ ├── _error-d6885ef27f2c5e3d.js │ │ │ │ │ │ └── _app-451d704a741dc8a8.js │ │ │ │ │ ├── main-app-01ee5f2549335411.js │ │ │ │ │ ├── app │ │ │ │ │ │ ├── _not-found-557909583c0e678e.js │ │ │ │ │ │ ├── playground │ │ │ │ │ │ │ └── page-99e96a15b24b92e3.js │ │ │ │ │ │ ├── layout-b1fa3f4e008e91f7.js │ │ │ │ │ │ └── page-92690039f531a3b5.js │ │ │ │ │ └── webpack-73779742c80db59b.js │ │ │ │ │ └── css │ │ │ │ │ ├── b4846eed11c4725f.css │ │ │ │ │ └── 33645606b33eb2d3.css │ │ │ ├── vercel.svg │ │ │ ├── next.svg │ │ │ ├── index.txt │ │ │ ├── playground.txt │ │ │ ├── index.html │ │ │ ├── 404.html │ │ │ └── playground.html │ │ └── app.py │ ├── version.py │ ├── utils.py │ ├── cli.py │ ├── datamodel.py │ ├── manager.py │ └── flow.py ├── setup.py ├── frontend │ ├── .eslintrc.json │ ├── src │ │ ├── app │ │ │ ├── favicon.ico │ │ │ ├── nav.tsx │ │ │ ├── playground │ │ │ │ ├── page.tsx │ │ │ │ └── flow.tsx │ │ │ ├── layout.tsx │ │ │ ├── globals.css │ │ │ ├── page.tsx │ │ │ └── navbar.tsx │ │ └── components │ │ │ ├── types.ts │ │ │ ├── chat │ │ │ ├── messagesview.tsx │ │ │ ├── chatsidebar.tsx │ │ │ └── chatview.tsx │ │ │ ├── utils.ts │ │ │ ├── nodes │ │ │ ├── agent.tsx │ │ │ └── chat.tsx │ │ │ └── markdown.tsx │ ├── postcss.config.js │ ├── next.config.js │ ├── .gitignore │ ├── public │ │ ├── vercel.svg │ │ └── next.svg │ ├── tsconfig.json │ ├── tailwind.config.ts │ ├── package.json │ └── README.md ├── docs │ └── images │ │ └── autogenuiscreen.png ├── package.json ├── MANIFEST.in ├── LICENSE ├── pyproject.toml ├── .gitignore └── yarn.lock └── AutoGen_IterativeCoding ├── flow.png ├── .cache └── 41 │ └── cache.db ├── __pycache__ └── IterativeTools.cpython-39.pyc ├── Coding_WorkDir ├── MasterPlan.txt ├── comments_v2.log ├── comments_v1.log ├── script_v1.py └── script_v2.py ├── main.py ├── LICENSE ├── AndyTools.py └── IterativeTools.py /autogen-ui/autogenui/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /autogen-ui/autogenui/web/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /autogen-ui/setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup 2 | setup() 3 | -------------------------------------------------------------------------------- /autogen-ui/autogenui/version.py: -------------------------------------------------------------------------------- 1 | VERSION = "0.0.04a" 2 | APP_NAME = "autogenui" 3 | -------------------------------------------------------------------------------- /autogen-ui/frontend/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /AutoGen_IterativeCoding/flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoodWork0903/autogen/HEAD/AutoGen_IterativeCoding/flow.png -------------------------------------------------------------------------------- /autogen-ui/autogenui/web/ui/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoodWork0903/autogen/HEAD/autogen-ui/autogenui/web/ui/favicon.ico -------------------------------------------------------------------------------- /autogen-ui/frontend/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoodWork0903/autogen/HEAD/autogen-ui/frontend/src/app/favicon.ico -------------------------------------------------------------------------------- /AutoGen_IterativeCoding/.cache/41/cache.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoodWork0903/autogen/HEAD/AutoGen_IterativeCoding/.cache/41/cache.db -------------------------------------------------------------------------------- /autogen-ui/docs/images/autogenuiscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoodWork0903/autogen/HEAD/autogen-ui/docs/images/autogenuiscreen.png -------------------------------------------------------------------------------- /autogen-ui/frontend/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /autogen-ui/autogenui/web/ui/_next/static/B9KwUOa9BD1Ep-rZJrUU9/_ssgManifest.js: -------------------------------------------------------------------------------- 1 | self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() -------------------------------------------------------------------------------- /autogen-ui/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "react-markdown": "^9.0.0", 4 | "react-syntax-highlighter": "^15.5.0", 5 | "remark-gfm": "^4.0.0" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /AutoGen_IterativeCoding/__pycache__/IterativeTools.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoodWork0903/autogen/HEAD/AutoGen_IterativeCoding/__pycache__/IterativeTools.cpython-39.pyc -------------------------------------------------------------------------------- /autogen-ui/MANIFEST.in: -------------------------------------------------------------------------------- 1 | recursive-include autogenui/web/ui * 2 | recursive-exclude notebooks * 3 | recursive-exclude frontend * 4 | recursive-exclude docs * 5 | recursive-exclude tests * -------------------------------------------------------------------------------- /autogen-ui/frontend/next.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = { 3 | output: "export", 4 | images: { unoptimized: true }, 5 | }; 6 | 7 | module.exports = nextConfig; 8 | -------------------------------------------------------------------------------- /autogen-ui/frontend/src/app/nav.tsx: -------------------------------------------------------------------------------- 1 | import Navbar from './navbar'; 2 | // import { getServerSession } from 'next-auth/next'; 3 | 4 | export default async function Nav() { 5 | // const session = await getServerSession(); 6 | return ; 7 | } 8 | -------------------------------------------------------------------------------- /autogen-ui/autogenui/web/ui/_next/static/B9KwUOa9BD1Ep-rZJrUU9/_buildManifest.js: -------------------------------------------------------------------------------- 1 | self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-d6885ef27f2c5e3d.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); -------------------------------------------------------------------------------- /autogen-ui/autogenui/web/ui/_next/static/chunks/pages/_error-d6885ef27f2c5e3d.js: -------------------------------------------------------------------------------- 1 | (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{81981:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return u(34570)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=81981)}),_N_E=n.O()}]); -------------------------------------------------------------------------------- /AutoGen_IterativeCoding/Coding_WorkDir/MasterPlan.txt: -------------------------------------------------------------------------------- 1 | 1. Create a graphical user interface (GUI) for the app. 2 | 2. Design and implement an analog clock face. 3 | 3. Retrieve the current time from the system. 4 | 4. Update the clock face to display the current time. 5 | 5. Add fancy visual effects to enhance the appearance of the clock face. -------------------------------------------------------------------------------- /autogen-ui/autogenui/web/ui/_next/static/chunks/pages/_app-451d704a741dc8a8.js: -------------------------------------------------------------------------------- 1 | (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{41597:function(_,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return e(28955)}])}},function(_){var __webpack_exec__=function(n){return _(_.s=n)};_.O(0,[774,179],function(){return __webpack_exec__(41597),__webpack_exec__(24751)}),_N_E=_.O()}]); -------------------------------------------------------------------------------- /autogen-ui/frontend/src/app/playground/page.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | import { Card, Title, Text } from '@tremor/react'; 3 | import FlowView from './flow'; 4 | 5 | export const dynamic = 'force-static'; 6 | export default function PlaygroundPage() { 7 | return ( 8 |
9 | Playground 10 |
11 | 12 |
13 |
14 | ); 15 | } 16 | -------------------------------------------------------------------------------- /AutoGen_IterativeCoding/Coding_WorkDir/comments_v2.log: -------------------------------------------------------------------------------- 1 | 1. The code does not create a graphical user interface (GUI) for the app. It only creates a canvas to draw the clock face. 2 | 2. The code does not implement an analog clock face. It only creates an oval shape for the clock face. 3 | 3. The code does not retrieve the current time from the system. 4 | 4. The code does not update the clock face to display the current time. 5 | 5. The code does not add any fancy visual effects to enhance the appearance of the clock face. 6 | 7 | ITERATE -------------------------------------------------------------------------------- /autogen-ui/frontend/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # next.js 12 | /.next/ 13 | /out/ 14 | 15 | # production 16 | /build 17 | 18 | # misc 19 | .DS_Store 20 | *.pem 21 | 22 | # debug 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | 27 | # local env files 28 | .env*.local 29 | 30 | # vercel 31 | .vercel 32 | 33 | # typescript 34 | *.tsbuildinfo 35 | next-env.d.ts 36 | -------------------------------------------------------------------------------- /autogen-ui/autogenui/web/ui/_next/static/chunks/main-app-01ee5f2549335411.js: -------------------------------------------------------------------------------- 1 | (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{8189:function(e,n,_){Promise.resolve().then(_.t.bind(_,33728,23)),Promise.resolve().then(_.t.bind(_,29928,23)),Promise.resolve().then(_.t.bind(_,56954,23)),Promise.resolve().then(_.t.bind(_,3170,23)),Promise.resolve().then(_.t.bind(_,7264,23)),Promise.resolve().then(_.t.bind(_,48297,23))}},function(e){var __webpack_exec__=function(n){return e(e.s=n)};e.O(0,[971,472],function(){return __webpack_exec__(62019),__webpack_exec__(8189)}),_N_E=e.O()}]); -------------------------------------------------------------------------------- /autogen-ui/autogenui/utils.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | from typing import Dict 4 | 5 | 6 | def parse_token_usage(logged_history: Dict): 7 | all_usage = [] 8 | all_cost = 0 9 | all_tokens = 0 10 | for key in logged_history.keys(): 11 | curr_usage = logged_history[key]["response"] 12 | all_cost += curr_usage["cost"] 13 | all_tokens += curr_usage["usage"]["total_tokens"] 14 | all_usage.append(curr_usage) 15 | usage = { 16 | "total_cost": all_cost, 17 | "total_tokens": all_tokens, 18 | "usage": all_usage 19 | } 20 | 21 | return usage 22 | -------------------------------------------------------------------------------- /autogen-ui/frontend/src/components/types.ts: -------------------------------------------------------------------------------- 1 | export interface INodeData { 2 | label: string; 3 | children?: any; 4 | } 5 | 6 | export interface IMessage { 7 | userId: string; 8 | rootMsgId: number; 9 | msgId?: number; 10 | role: string; 11 | content: string; 12 | timestamp: string; 13 | personalize?: boolean; 14 | use_cache?: boolean; 15 | ra?: string; 16 | } 17 | 18 | export interface IStatus { 19 | message: string; 20 | status: boolean; 21 | data?: any; 22 | } 23 | 24 | export interface IChatMessage { 25 | text: string; 26 | sender: 'user' | 'bot'; 27 | metadata?: any; 28 | msgId?: number; 29 | } 30 | -------------------------------------------------------------------------------- /autogen-ui/autogenui/web/ui/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /autogen-ui/frontend/public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /AutoGen_IterativeCoding/main.py: -------------------------------------------------------------------------------- 1 | from IterativeTools import IterativeCoding 2 | 3 | # llm model 4 | llm_model = 'gpt-3.5-turbo'#'gpt-3.5-turbo' 'gpt-4-0613' 5 | 6 | config_list = [ 7 | { 8 | 'model': llm_model, 9 | 'api_key': 'YOUR API KEY HERE', 10 | } # OpenAI API endpoint for gpt-3.5-turbo 11 | 12 | ] 13 | 14 | llm_config = {"config_list": config_list, "seed": 42} 15 | 16 | gpt_config = { 17 | "seed": 42, # change the seed for different trials 18 | "temperature": 0, 19 | "config_list": config_list, 20 | "request_timeout": 120, 21 | } 22 | 23 | p = IterativeCoding(gpt_config) 24 | p.setProjectDir("IterCode_Projects/") 25 | p.run() -------------------------------------------------------------------------------- /autogen-ui/frontend/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": ["dom", "dom.iterable", "esnext"], 5 | "allowJs": true, 6 | "skipLibCheck": true, 7 | "strict": true, 8 | "noEmit": true, 9 | "esModuleInterop": true, 10 | "module": "esnext", 11 | "moduleResolution": "bundler", 12 | "resolveJsonModule": true, 13 | "isolatedModules": true, 14 | "jsx": "preserve", 15 | "incremental": true, 16 | "plugins": [ 17 | { 18 | "name": "next" 19 | } 20 | ], 21 | "paths": { 22 | "@/*": ["./src/*"] 23 | } 24 | }, 25 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 26 | "exclude": ["node_modules"] 27 | } 28 | -------------------------------------------------------------------------------- /autogen-ui/frontend/src/app/layout.tsx: -------------------------------------------------------------------------------- 1 | import "./globals.css"; 2 | 3 | // import { Analytics } from '@vercel/analytics/react'; 4 | import Nav from "./nav"; 5 | import { Suspense } from "react"; 6 | 7 | export const metadata = { 8 | title: "AutoGen UI", 9 | description: 10 | "AutoGen UI is a web-based interface for building AutoGen agents.", 11 | }; 12 | 13 | export default async function RootLayout({ 14 | children, 15 | }: { 16 | children: React.ReactNode; 17 | }) { 18 | return ( 19 | 20 | 21 | 22 |