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

Enhanced Function Signature Interpretation and Execution #102

@JohnnyIrvin

Description

@JohnnyIrvin

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions