Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

ChatGPT integration 🤖 #183

@Dimchikkk

Description

@Dimchikkk

Steps to be taken to integrate ChatGPT to velo (in the simplest way for milestone 1 of this feature):

  • create simple velo DSL:
create_note <NOTE_HUMAN_READABLE_ID> <NOTE_TYPE> <TEXT> <NOTE_STYLE>
connect_note <NOTE_HUMAN_READABLE_ID_1> <NOTE_HUMAN_READABLE_ID_2> <ARROW_STYLE>

NOTE_HUMAN_READABLE_ID | "A"
NOTE_TYPE | rect, circle, paperlike
TEXT | "hello \n world"
NOTE_STYLE | { bg_color: "red", size: (100, 100) }
ARROW_STYLE | { arrow_type: "two head", color: "blue" }
pub trait RenderBackend {
    fn draw_rect(
        &mut self,
        xy: Point,
        size: Point,
        look: &StyleAttr,
        clip: Option<ClipHandle>
    );
    fn draw_line(&mut self, start: Point, stop: Point, look: &StyleAttr);
    fn draw_circle(&mut self, xy: Point, size: Point, look: &StyleAttr);
    fn draw_text(&mut self, xy: Point, text: &str, look: &StyleAttr);
    fn draw_arrow(
        &mut self,
        path: &[(Point, Point)],
        dashed: bool,
        head: (bool, bool),
        look: &StyleAttr,
        text: &str
    );
    fn create_clip(
        &mut self,
        xy: Point,
        size: Point,
        rounded_px: usize
    ) -> ClipHandle;
}

pub struct StyleAttr {
    pub line_color: Color,
    pub line_width: usize,
    pub fill_color: Option<Color>,
    pub rounded: usize,
    pub font_size: usize,
}
  • add "magic" button that explains selected note or breaks down tasks on subtask if note text starts from "TODO". It should insert explanations/sub-tasks as leaves of the note, ChatGPT should use velo DSL for that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions