-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e32025b
commit f533a10
Showing
14 changed files
with
91 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# just-agents-coding | ||
|
||
A submodule of just-agents focused on code generation and execution capabilities. | ||
|
||
## Overview | ||
|
||
just-agents-coding provides secure code execution environments and tools for LLM-powered coding agents. It enables safe code generation and execution through containerized environments, protecting your system while allowing AI agents to write and test code. | ||
|
||
## Key Features | ||
|
||
- 🔒 Secure code execution through isolated containers | ||
- 🐳 Multiple specialized containers: | ||
- Standard sandbox for general Python code | ||
- Biosandbox for bioinformatics tasks | ||
- Websandbox for web-related code | ||
- 📁 Simple I/O management with mounted `/input` and `/output` directories | ||
- 🔍 Code execution monitoring and logging | ||
|
||
## Quick Start | ||
|
||
```bash | ||
pip install just-agents-coding | ||
``` | ||
|
||
## Usage Example | ||
|
||
```python | ||
from just_agents.base_agent import BaseAgent | ||
from dotenv import load_dotenv | ||
|
||
# Load environment variables | ||
load_dotenv() | ||
|
||
# Initialize agent from configuration | ||
agent = BaseAgent.from_yaml("SimpleCodeAgent", file_path="path/to/coding_agents.yaml") | ||
|
||
# Execute code through the agent | ||
result = agent.query(""" | ||
Get FGF2 human protein sequence from uniprot using biopython. | ||
As a result, return only the sequence | ||
""") | ||
|
||
print(result) | ||
``` | ||
|
||
## Container Types | ||
|
||
### Standard Sandbox | ||
- General Python code execution | ||
- Basic Python packages pre-installed | ||
- Isolated from host system | ||
|
||
### Biosandbox | ||
- Specialized for bioinformatics tasks | ||
- Includes common bio packages (Biopython, etc.) | ||
- Safe handling of biological data | ||
|
||
### Websandbox | ||
- Web development and testing | ||
- Network access controls | ||
- Common web frameworks available | ||
|
||
## Security Features | ||
|
||
- Root access disabled in containers | ||
- Resource usage limits | ||
- Network isolation | ||
- Temporary file system | ||
- Controlled package installation | ||
|
||
## Documentation | ||
|
||
For more detailed documentation and examples, visit: | ||
- [Basic Usage Tutorial](examples/notebooks/03_coding_agent.ipynb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/just_agents/examples/coding/chain_of_though_coding_agent.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters