import asynciofrom praisonaiagents import Agentfrom praisonai.integrations.managed_agents import ManagedAgent, ManagedConfigmanaged = ManagedAgent( provider="local", config=ManagedConfig( model="gpt-4o-mini", system="You are a full-stack developer with access to a persistent Daytona workspace." ), compute="daytona")agent = Agent(name="developer", backend=managed)# Provision development workspaceinfo = asyncio.run(managed.provision_compute(template="full-stack"))# LLM-driven development workflowresult = agent.start("""Create a complete REST API for a todo application:1. Set up a Node.js/Express project2. Implement CRUD endpoints (GET, POST, PUT, DELETE)3. Add in-memory storage4. Include error handling5. Write unit tests6. Create documentationThe workspace should persist all files for future development.""", stream=True)
import asynciofrom praisonaiagents import Agentfrom praisonai.integrations.managed_agents import ManagedAgent, ManagedConfigmanaged = ManagedAgent( provider="local", config=ManagedConfig( model="gpt-4o-mini", system="You are a full-stack developer using a Daytona workspace for development." ), compute="daytona")agent = Agent(name="fullstack-dev", backend=managed)# Full-stack workspaceinfo = asyncio.run(managed.provision_compute( template="full-stack", resources={"cpu": 4, "memory": 8192} # 8GB for full development))# Build full applicationresult = agent.start("""Create a full-stack web application:1. Backend: Node.js/Express API with user authentication2. Frontend: React application with login/dashboard3. Database: JSON file-based storage4. Testing: Unit and integration tests5. Documentation: README with setup instructionsStructure the project professionally with separate folders.""")
import asynciofrom praisonaiagents import Agentfrom praisonai.integrations.managed_agents import ManagedAgent, ManagedConfigmanaged = ManagedAgent( provider="local", config=ManagedConfig(model="gpt-4o-mini"), compute="daytona")agent = Agent(name="devops-engineer", backend=managed)# DevOps workspace with toolsinfo = asyncio.run(managed.provision_compute(template="devops"))# Set up CI/CD pipelineresult = agent.start("""Create a DevOps pipeline setup:1. Dockerfile for containerization2. GitHub Actions workflow3. Docker Compose for local development4. Makefile for common operations5. Environment configuration files6. Deployment scriptsFocus on best practices and maintainability.""")
import asynciofrom praisonaiagents import Agentfrom praisonai.integrations.managed_agents import ManagedAgent, ManagedConfigmanaged = ManagedAgent( provider="local", config=ManagedConfig( model="gpt-4o-mini", system="You are working on a long-term project in a persistent workspace." ), compute="daytona")agent = Agent(name="project-lead", backend=managed)# Resume existing workspace (if available)existing_workspace_id = "workspace-123" # From previous sessionif existing_workspace_id: managed.resume_session(existing_workspace_id)# Continue developmentresult = agent.start("""Continue working on the project:1. Check current project status2. Review recent changes3. Plan next development phase4. Implement new features5. Update documentationUse git to track all changes.""")