Coder Social home page Coder Social logo

shanmu-raoyunfei / chocolate-factory Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unit-mesh/choco-builder

0.0 0.0 0.0 15.4 MB

Chocolate Factory 是一款开源的 AI Agent 应用引擎/应用框架,旨在帮助您轻松打造强大的 SDLC + LLM 生成助手。无论您是需要生成前端页面、后端 API、SQL 图表,还是测试用例数据,Chocolate Factory 都能满足您的需求。

Home Page: https://framework.unitmesh.cc/

License: Mozilla Public License 2.0

JavaScript 1.36% Kotlin 53.13% TypeScript 42.43% CSS 0.50% ANTLR 1.68% Dockerfile 0.91%

chocolate-factory's Introduction

Chocolate Factory

Chocolate Factory 是一款开源的 AI Agent 应用引擎/应用框架,旨在帮助您轻松打造强大的 SDLC + LLM 生成助手。无论您是需要生成前端页面、后端 API、SQL 图表,还是测试用例数据,Chocolate Factory 都能满足您的需求。

CI Docker Image Version (tag latest semver)

The key core concepts of Chocolate Factory are:

Chocolate Factory Concepts

(PS: Origin made by Michael Plöd at Aligning organization and architecture with strategic DDD)

a user query is processed by the following steps:

  1. ProblemClarifier.kt
  2. ProblemAnalyzer.kt
  3. SolutionDesigner.kt
  4. SolutionReviewer.kt
  5. SolutionExecutor.kt

Development

See in https://framework.unitmesh.cc/ or see in documents

Examples

Online Demo: https://framework.unitmesh.cc/ (TODO)

Video Demo: https://www.bilibili.com/video/BV1T14y1C7p2

Gif Demo:

Chocolate Factory Demo

Examples 1: Frontend Screenshot

  • 步骤 1:ProblemClarifier:使用响应式布局,编写一个聊天页面
    • 步骤 1.1:ProblemClarifier:左边是一个导航,中间是聊天区,聊天区的下方是一个输入按钮。
  • 步骤 2:SolutionDesigner:请确认以下的设计是否符合您的要求。如果符合,请回复"YES",如果不符合,请提出你的要求。
  • 步骤 3:SolutionExecutor:生成一个聊天页面

Frontend

Examples 2: Code Interpreter

  • 步骤 1:SolutionExecutor

示例 1:编写乘法表

输出示例:

1    2    3    4    5    6    7    8    9
2    4    6    8    10    12    14    16    18
3    6    9    12    15    18    21    24    27
4    8    12    16    20    24    28    32    36
5    10    15    20    25    30    35    40    45
6    12    18    24    30    36    42    48    54
7    14    21    28    35    42    49    56    63
8    16    24    32    40    48    56    64    72
9    18    27    36    45    54    63    72    81    

示例 2:根据需求生成图表 (TODO)

生成一个 2023 年上半年电费图,信息如下:###1~6 月:201.2,222,234.3,120.2,90,90.4###

过程代码:

%use lets-plot

import kotlin.math.PI
import kotlin.random.Random


val incomeData = mapOf(
    "x" to listOf("一月", "二月", "三月", "四月", "五月", "六月"),
    "y" to listOf(201.2, 222, 234.3, 120.2, 90, 94.4)
)
letsPlot(incomeData) { x = "x"; y = "y" } +
        geomBar(stat = Stat.identity) +
        geomText(labelFormat = "\${.2f}") { label = "y"; } +
        ggtitle("2023 年上半年电费")

最终输出:

Frontend

Example 3: Testcase Generator

  • 步骤 1:ProblemAnalyzer 分析用户的需求,确认是否是一个测试用例生成的需求
    • 多 Temperature 模式:TemperatureMode.Default, TemperatureMode.Creative
  • 步骤 2:SolutionDesigner 设计测试用例生成的方案
  • 步骤 3:SolutionReviewer 确认方案是否符合用户的需求

示例输入:用户发表文章

最终输出:

Testcases

License

This code is distributed under the MPL 2.0 license. See LICENSE in this directory.

chocolate-factory's People

Contributors

phodal avatar tianweiliu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.