MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / build_executor

Function build_executor

crates/opencode-agent/src/executor.rs:549–555  ·  view source on GitHub ↗
(agent: AgentInfo)

Source from the content-addressed store, hash-verified

547 use opencode_permission::{PermissionAction, PermissionRule};
548
549 fn build_executor(agent: AgentInfo) -> AgentExecutor {
550 AgentExecutor::new(
551 agent,
552 Arc::new(ProviderRegistry::new()),
553 Arc::new(ToolRegistry::new()),
554 )
555 }
556
557 #[tokio::test]
558 async fn persisted_subsessions_roundtrip() {

Calls 1

newFunction · 0.85