pub struct AISystem { /* private fields */ }Expand description
Main AI system coordinating all AI operations
Implementations§
Source§impl AISystem
impl AISystem
Sourcepub async fn initialize(&mut self) -> Result<()>
pub async fn initialize(&mut self) -> Result<()>
Initialize the AI system
Sourcepub async fn spawn_agent(
&mut self,
agent_type: AgentType,
capabilities: Option<Vec<String>>,
custom_config: Option<HashMap<String, String>>,
) -> Result<String>
pub async fn spawn_agent( &mut self, agent_type: AgentType, capabilities: Option<Vec<String>>, custom_config: Option<HashMap<String, String>>, ) -> Result<String>
Spawn a new AI agent
Sourcepub async fn execute_task(
&mut self,
agent_id: &str,
task: Task,
) -> Result<TaskResult>
pub async fn execute_task( &mut self, agent_id: &str, task: Task, ) -> Result<TaskResult>
Execute a task with an agent
Sourcepub async fn use_tool(
&mut self,
agent_id: &str,
tool_name: &str,
parameters: HashMap<String, Value>,
) -> Result<ToolResult>
pub async fn use_tool( &mut self, agent_id: &str, tool_name: &str, parameters: HashMap<String, Value>, ) -> Result<ToolResult>
Use a tool via MCP
Sourcepub async fn get_agent_memory(&self, agent_id: &str) -> Result<Vec<MemoryEntry>>
pub async fn get_agent_memory(&self, agent_id: &str) -> Result<Vec<MemoryEntry>>
Get agent memory
Sourcepub async fn store_memory(
&mut self,
agent_id: &str,
key: String,
data: Value,
metadata: Option<HashMap<String, String>>,
) -> Result<()>
pub async fn store_memory( &mut self, agent_id: &str, key: String, data: Value, metadata: Option<HashMap<String, String>>, ) -> Result<()>
Store information in agent memory
Sourcepub async fn get_statistics(&self) -> AIStatistics
pub async fn get_statistics(&self) -> AIStatistics
Get system statistics
Auto Trait Implementations§
impl Freeze for AISystem
impl !RefUnwindSafe for AISystem
impl Send for AISystem
impl Sync for AISystem
impl Unpin for AISystem
impl !UnwindSafe for AISystem
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