pub struct BackendAgent { /* private fields */ }Expand description
Backend Development Agent
A specialized agent for backend development that provides recommendations for:
- API design patterns (REST, GraphQL, gRPC)
- Architecture guidance (microservices, monolithic, serverless)
- Database design (relational, NoSQL, graph)
- Scalability guidance (caching, load balancing, horizontal scaling)
- Security patterns (auth, authorization, data protection)
- Observability setup (logging, metrics, tracing)
§Examples
ⓘ
use ricecoder_agents::agents::BackendAgent;
let agent = BackendAgent::new();
assert_eq!(agent.id(), "backend-agent");
assert_eq!(agent.domain(), "backend");Implementations§
Source§impl BackendAgent
impl BackendAgent
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new Backend Development Agent
Initializes the agent with backend-specific capabilities and knowledge.
§Returns
A new BackendAgent instance
Sourcepub fn capabilities(&self) -> &[DomainCapability]
pub fn capabilities(&self) -> &[DomainCapability]
Get the capabilities of this agent
Sourcepub fn knowledge(&self) -> &DomainKnowledge
pub fn knowledge(&self) -> &DomainKnowledge
Get the knowledge of this agent
Sourcepub fn domain_agent(&self) -> &DomainAgent
pub fn domain_agent(&self) -> &DomainAgent
Get the underlying domain agent
Trait Implementations§
Source§impl Agent for BackendAgent
impl Agent for BackendAgent
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get the agent’s description Read more
Source§fn supports(&self, task_type: TaskType) -> bool
fn supports(&self, task_type: TaskType) -> bool
Check if the agent supports a specific task type Read more
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
input: AgentInput,
) -> Pin<Box<dyn Future<Output = Result<AgentOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
input: AgentInput,
) -> Pin<Box<dyn Future<Output = Result<AgentOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the agent with the given input Read more
Source§fn config_schema(&self) -> ConfigSchema
fn config_schema(&self) -> ConfigSchema
Get the agent’s configuration schema Read more
Source§fn metrics(&self) -> AgentMetrics
fn metrics(&self) -> AgentMetrics
Get the agent’s performance metrics Read more
Source§impl Clone for BackendAgent
impl Clone for BackendAgent
Source§fn clone(&self) -> BackendAgent
fn clone(&self) -> BackendAgent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendAgent
impl Debug for BackendAgent
Auto Trait Implementations§
impl Freeze for BackendAgent
impl RefUnwindSafe for BackendAgent
impl Send for BackendAgent
impl Sync for BackendAgent
impl Unpin for BackendAgent
impl UnwindSafe for BackendAgent
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