You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
The shell-craft project currently facilitates the execution of shell commands and template autofill via OpenAI's API. To extend its utility for developers, I suggest adding a feature that allows the tool to interpret function-like prompts that include a function signature and arguments for execution.
Proposed Solution
Modify the shell-craft tool to parse prompts that mimic a function call, extract the function name, arguments, and return type, and execute them. This functionality would emulate calling a function in a traditional programming environment
Example Usage
shell-craft --prompt function"add(int a, int b) -> int: add(5, 6)"
The tool would interpret this prompt and execute a function add with the provided arguments 5 and 6, expecting an integer return type.