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

feat(runtime): Execute codes in a sandbox environment #2119

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

fangyinc
Copy link
Collaborator

@fangyinc fangyinc commented Nov 7, 2024

Description

Execute codes in a sandbox environment. The sandbox environment relies on Lyric for support.

How Has This Been Tested?

Install Dependencies

pip install -e ".[code]"

Case 1: Run Sandbox Code Assistant Agent

python examples/agents/sandbox_code_agent_example.py

Case 2: Use Code Operator In AWEL Flow

Use code operator to process your LLM response

image

image

Use code operator to prepare your data before pass to LLM

image

image

Snapshots:

Include snapshots for easier review.

Checklist:

  • My code follows the style guidelines of this project
  • I have already rebased the commits and make the commit message conform to the project standard.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules

@github-actions github-actions bot added the enhancement New feature or request label Nov 7, 2024
Copy link
Collaborator

@csunny csunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Lyric runtime is very cool and worth investing more effort in development, and very worth looking forward to. let's keep watching

Copy link
Collaborator

@Aries-ckt Aries-ckt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aries-ckt Aries-ckt merged commit a134257 into eosphoros-ai:main Nov 10, 2024
3 checks passed
@fangyinc fangyinc deleted the code-executor branch November 11, 2024 21:22
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

Successfully merging this pull request may close these issues.

3 participants