Coder Social home page Coder Social logo

chatflow_pkg's People

Contributors

hwonyo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chatflow_pkg's Issues

노드 간 Transition 정의

상태 노드 간 전이를 담당하는 클래스를 설계하려고 합니다.

기본적인 아이디어는
사용자가 (우리가 만든)Transition 클래스를 상속한 커스텀 클래스를 작성하고
내부에 전이 로직을 직접 짜면
사용자의 의도대로 상태가 전이되는 그런?

물론 각 state 마다 실행되어야 하는 상태전이 함수명을 각각 갖고 있어야겠죠
혹시 다른 의견이나 아이디어 있으면 알려주세요

state 클래스화

JSON 파일 내부에 정의되어 있는 state를 클래스화하여
사용자들이 커스터마이징하기 쉬운 구조로 만들려고 합니다.

id, name, message 등을 property로 갖고
최소한의 gredient check을 수행하는 기능 등이 포함됩니다.

Chatflow 생성자

chatflow 생성자에서 path로 초기화하는 부분 독립 제안

chatflow 인스턴스를 생성할 때 기본적으로는 dict를 인수로 받고
path를 사용해서 인스턴스를 생성할 때는 별도 함수를 사용하는 것이 모듈 사용의 가독성과 유연성을 높일듯

#path를 사용하여 초기화하는 경우
chatflow = Chatflow.init_with_path(path)

#dict를 사용하여 초기화하는 경우
chatflow = Chatflow(json_dict)

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.