This pull request introduces the capability to generate abilities not only in Python but also in Kotlin. It extends the existing functionality within the create_new_ability.py script to accept a new parameter specifying the programming language and implements the necessary logic to handle Kotlin code generation.
Summary
Added a new programming_language parameter to the create_new_ability.py script to specify the language for the ability code (Python or Kotlin).
Updated the code parameter description to indicate support for both Python and Kotlin.
Implemented conditional logic within the __call__ method to handle code generation based on the specified programming language.
Ensured that the new programming_language parameter is required and validates correctly against the supported languages (Python, Kotlin).
PR Feedback (click)
Description
This pull request introduces the capability to generate abilities not only in Python but also in Kotlin. It extends the existing functionality within the
create_new_ability.py
script to accept a new parameter specifying the programming language and implements the necessary logic to handle Kotlin code generation.Summary
programming_language
parameter to thecreate_new_ability.py
script to specify the language for the ability code (Python or Kotlin).code
parameter description to indicate support for both Python and Kotlin.__call__
method to handle code generation based on the specified programming language.programming_language
parameter is required and validates correctly against the supported languages (Python, Kotlin).Affected files:
autogpts/autogpt/autogpt/core/ability/builtins/create_new_ability.py
Fixes #1.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.