Skip to main content

Just Agents - Coding Components

Project description

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

pip install just-agents-coding

Usage Example

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

just_agents_coding-0.4.4.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

just_agents_coding-0.4.4-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file just_agents_coding-0.4.4.tar.gz.

File metadata

  • Download URL: just_agents_coding-0.4.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.8.0-50-lowlatency

File hashes

Hashes for just_agents_coding-0.4.4.tar.gz
Algorithm Hash digest
SHA256 b69864291257c60c211cbafa8c00ee86600197a10bc822ea95f949b188d2b98b
MD5 4c942ffa7a6c17b6f266b125dff89c53
BLAKE2b-256 fae5c60809aca883c1e9d062d26f80af49b6ed3de24c88b9dbfef934aaa4cf59

See more details on using hashes here.

File details

Details for the file just_agents_coding-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: just_agents_coding-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.8.0-50-lowlatency

File hashes

Hashes for just_agents_coding-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5fe34b01057fde9d792afb07f02cb8c5f2917c79ff88bfdc0b4f1d0dd47ed0c2
MD5 ba3c452b198593f65a8d714c67760aca
BLAKE2b-256 cc2a35d0a1fd41e422e332e0bac8a14c8a3f8a886939b32cbbee079b50f7ced9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page