microsoft / genaiscript

Generative AI Scripting
https://microsoft.github.io/genaiscript/
MIT License
81 stars 22 forks source link

support shelloutput from tools #552

Closed pelikhan closed 2 weeks ago

pelikhan commented 2 weeks ago

Allow to return of 'exec' from a tool without processing.

generated by pr-describe

github-actions[bot] commented 2 weeks ago

The changes seem to be primarily focused on renaming and refining type assignments. For example, ChatFunctionDefinition is renamed to ToolDefinition and ChatFunctionCallTrace to ToolCallTrace. This seems to be a cleanup effort to make the naming more generalized and applicable to context beyond chat functionalities.

Additionally, the type of ShellOutput returned by some functions has been moved from Partial<ShellOutput> to ShellOutput, indicating a requirement for a full ShellOutput object to be returned.

Also, there are consistent labeling changes from "output" and "error" to "stdout" and "stderr" respectively. This helps in better aligning with conventional terminology associated with command execution responses.

Although the changes seem to be major, they are mostly on terminology and type consistency. There do not appear to be any functional issues introduced by the updates.

Overall, LGTM :rocket:

generated by pr-review