pub struct WebAgent { /* private fields */ }Expand description
Web Development Agent
A specialized agent for web development that provides recommendations for:
- Frontend frameworks (React, Vue, Angular)
- Styling solutions (CSS, Tailwind CSS, styled-components)
- Build tools (Vite, Webpack)
- Testing frameworks (Jest, Vitest, Playwright)
- Performance optimization
- Deployment patterns
§Examples
ⓘ
use ricecoder_agents::agents::WebAgent;
let agent = WebAgent::new();
assert_eq!(agent.id(), "web-agent");
assert_eq!(agent.domain(), "web");Implementations§
Source§impl WebAgent
impl WebAgent
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new Web Development Agent
Initializes the agent with web-specific capabilities and knowledge.
§Returns
A new WebAgent 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 WebAgent
impl Agent for WebAgent
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
Auto Trait Implementations§
impl Freeze for WebAgent
impl RefUnwindSafe for WebAgent
impl Send for WebAgent
impl Sync for WebAgent
impl Unpin for WebAgent
impl UnwindSafe for WebAgent
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