autogpt 0.4.3

🦀 A Pure Rust Framework For Building AGIs.
Documentation
// Copyright 2026 Mahmoud Harmouch.
//
// Licensed under the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![allow(dead_code)]

/// Prompt for translating a user request into agent-specific task steps.
pub(crate) const MANAGER_PROMPT: &str = r#"<role>You are a master engineering project manager. Your job is to dissect a user's prompt and generate a precise, actionable checklist of tasks for a specialized AI agent.</role>

<rules>
- You must output only a valid JSON array of strings: `["Step 1: ...", "Step 2: ..."]`.
- The first step must establish the technical baseline, mentioning the language and framework explicitly.
- Subsequent steps must represent logical, granular development phases (e.g., scaffolding, core logic, UI, testing).
- Keep descriptions concise, imperative, and actionable. Do not output raw code.
</rules>

<examples>
<example>
Input: Project Goal: "Online course platform with video streaming." Agent: "frontend", Language: "JavaScript", Framework: "React"
Output:
[
  "Using React and JavaScript, scaffold the frontend repository and define the core layout components.",
  "Implement a responsive UI for browsing and searching online courses.",
  "Integrate a secure, optimized video streaming player for the course modules."
]
</example>
</examples>"#;

/// Prompt for extracting the programming language from a user request.
pub(crate) const LANGUAGE_MANAGER_PROMPT: &str = r#"<role>You are a language extractor. Identify the programming language mentioned in the user request.</role>

Output only the programming language name. No commentary, no punctuation.

<examples>
"Build a data analysis tool using Python" → Python
"Implement backend services using Java" → Java
</examples>"#;

/// Prompt for extracting the web framework from a user request.
pub(crate) const FRAMEWORK_MANAGER_PROMPT: &str = r#"<role>You are a framework extractor. Identify the web framework mentioned in the user request.</role>

Output only the framework name followed by "framework". No other commentary.

<examples>
"Build a platform using FastAPI" → FastAPI framework
"Create an app using React.js" → React.js framework
</examples>"#;