Files
herolib/lib/develop/heroprompt
2025-12-01 16:45:47 +01:00
..
...
2025-08-17 11:07:26 +02:00
...
2025-08-17 11:07:26 +02:00
...
2025-10-29 09:36:37 +04:00
...
2025-12-01 16:45:47 +01:00
2025-11-24 05:48:13 +01:00

heroprompt

To get started



import incubaid.herolib.develop.heroprompt

// Example Usage:

// 1. Create a new workspace
mut workspace := heroprompt.new(name: 'my_workspace', path: os.getwd())!

// 2. Add a directory to the workspace
workspace.add_dir(path: './my_project_dir')!

// 3. Add a file to the workspace
workspace.add_file(path: './my_project_dir/main.v')!

// 4. Generate a prompt
user_instructions := 'Explain the code in main.v'
prompt_output := workspace.prompt(text: user_instructions)
println(prompt_output)