pub struct AgentBackendDeveloper {
attributes: BasicAgent,
bug_errors: Option<String>,
bug_count: u8,
}
Expand description
Struct representing a backend developer agent Attributes:
attributes
: Basic agent properties (objective, position, etc.)bug_errors
: Optional string describing encountered errorsbug_count
: Counter for the number of bugs encountered
Fields§
§attributes: BasicAgent
§bug_errors: Option<String>
§bug_count: u8
Implementations§
source§impl AgentBackendDeveloper
impl AgentBackendDeveloper
sourceasync fn call_initial_backend_code(&mut self, fact_sheet: &mut FactSheet)
async fn call_initial_backend_code(&mut self, fact_sheet: &mut FactSheet)
Generates initial backend code based on a code template and project description
§Parameters
fact_sheet
: A mutable reference to the fact sheet containing project information
sourceasync fn call_improved_backend_code(&mut self, fact_sheet: &mut FactSheet)
async fn call_improved_backend_code(&mut self, fact_sheet: &mut FactSheet)
Requests improved backend code from the AI
§Parameters
fact_sheet
: A mutable reference to the fact sheet containing project information
sourceasync fn call_fix_code_bugs(&mut self, fact_sheet: &mut FactSheet)
async fn call_fix_code_bugs(&mut self, fact_sheet: &mut FactSheet)
Fixes code bugs based on error messages and broken code
§Parameters
fact_sheet
: A mutable reference to the fact sheet containing project information
sourceasync fn call_extract_rest_api_endpoints(&self) -> String
async fn call_extract_rest_api_endpoints(&self) -> String
Extracts REST API endpoints from the backend code
§Returns
- A string containing the extracted API endpoints
Trait Implementations§
source§impl Debug for AgentBackendDeveloper
impl Debug for AgentBackendDeveloper
source§impl SpecialFunctions for AgentBackendDeveloper
impl SpecialFunctions for AgentBackendDeveloper
Implementation of special functions for AgentBackendDeveloper
source§fn get_attributes_from_agent(&self) -> &BasicAgent
fn get_attributes_from_agent(&self) -> &BasicAgent
Retrieves the attributes of the agent
Auto Trait Implementations§
impl Freeze for AgentBackendDeveloper
impl RefUnwindSafe for AgentBackendDeveloper
impl Send for AgentBackendDeveloper
impl Sync for AgentBackendDeveloper
impl Unpin for AgentBackendDeveloper
impl UnwindSafe for AgentBackendDeveloper
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more