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

Add CodeInterpreter service #51

Merged
merged 4 commits into from
Feb 19, 2024

Conversation

ValentaTomas
Copy link
Collaborator

@ValentaTomas ValentaTomas commented Feb 18, 2024

Add code interpreter that allows executing code to analyze provided data.

@homanp homanp marked this pull request as ready for review February 19, 2024 00:58
@homanp
Copy link
Contributor

homanp commented Feb 19, 2024

This should be implemented in the semantic router, ex:

async with CodeInterpreterService(
        session_id=payload.session_id,
        file_urls=[
            "https://raw.githubusercontent.com/datasciencedojo/datasets/master/titanic.csv"
        ],
    ) as service:
        code = "df0.info()"
        output = await service.run_python(code=code)
        print(output.stderr)
        print(output.stdout)

@homanp homanp self-assigned this Feb 19, 2024
@homanp homanp linked an issue Feb 19, 2024 that may be closed by this pull request
@homanp homanp merged commit ad35ca4 into superagent-ai:main Feb 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for computational q&a
2 participants