pub struct DevOpsAgent { /* private fields */ }Expand description
DevOps Agent
A specialized agent for DevOps that provides recommendations for:
- CI/CD pipeline setup (GitHub Actions, GitLab CI, Jenkins)
- Infrastructure as Code (Terraform, CloudFormation, Ansible)
- Containerization (Docker, Kubernetes)
- Observability infrastructure (monitoring, logging, alerting)
- Security scanning setup
- Auto-scaling configuration
§Examples
ⓘ
use ricecoder_agents::agents::DevOpsAgent;
let agent = DevOpsAgent::new();
assert_eq!(agent.id(), "devops-agent");
assert_eq!(agent.domain(), "devops");Implementations§
Source§impl DevOpsAgent
impl DevOpsAgent
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new DevOps Agent
Initializes the agent with DevOps-specific capabilities and knowledge.
§Returns
A new DevOpsAgent 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 DevOpsAgent
impl Agent for DevOpsAgent
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 DevOpsAgent
impl Clone for DevOpsAgent
Source§fn clone(&self) -> DevOpsAgent
fn clone(&self) -> DevOpsAgent
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 DevOpsAgent
impl Debug for DevOpsAgent
Auto Trait Implementations§
impl Freeze for DevOpsAgent
impl RefUnwindSafe for DevOpsAgent
impl Send for DevOpsAgent
impl Sync for DevOpsAgent
impl Unpin for DevOpsAgent
impl UnwindSafe for DevOpsAgent
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