Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Skills in other languages than Python #2834

Open
stracker-phil opened this issue May 30, 2024 · 0 comments
Open

[Feature Request]: Skills in other languages than Python #2834

stracker-phil opened this issue May 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@stracker-phil
Copy link

Is your feature request related to a problem? Please describe.

I'm not very familiar with Python, so I have trouble creating advanced Skill-functions.

I would love to create Skills using PHP or JS, but could not find a way to instruct the agent to use php-clior nodejs to execute the skills. Apparently, they are currently limited to only run python code.

Describe the solution you'd like

Allow running skills in any language that is currently available on the system.

To do this, I suggest to respect the Shebang line that defines the interpreter.
If no Shebang is present, assume the current behavior or using Python

Additional context

sample-skill.php

#!/usr/bin/env php
<?php

function sample_skill() {
    return 'Hello World';
}

sample-skill.js

#!/usr/bin/env node

function sample_skill() {
    return 'Hello World';
}

sample-skill.py

#!/usr/bin/env python3

def sample_skill():
    return 'Hello World'
@stracker-phil stracker-phil added the enhancement New feature or request label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant