pub async fn run_agent_loop(
llm: Arc<dyn LLMProviderTrait>,
initial_prompt: &str,
system_prompt: &str,
config: AgentLoopConfig,
) -> Result<String>Expand description
Run the agent loop with security integration (PolicyEngine + Sandbox + AuditLog)
This is the security-integrated version that:
- Checks all tool calls against PolicyEngine before execution
- Executes shell commands in the Sandbox
- Logs all tool calls, policy decisions, and results to AuditLog