MCPcopy Create free account
hub / github.com/AI45Lab/Code / new

Method new

core/src/agent_api.rs:343–346  ·  view source on GitHub ↗

Create from a config file path or inline ACL-compatible string. Auto-detects `.acl` file paths vs inline ACL-compatible config.

(config_source: impl Into<String>)

Source from the content-addressed store, hash-verified

341 ///
342 /// Auto-detects `.acl` file paths vs inline ACL-compatible config.
343 pub async fn new(config_source: impl Into<String>) -> Result<Self> {
344 let config = agent_bootstrap::load_code_config(config_source.into())?;
345 Self::from_config(config).await
346 }
347
348 /// Create from a config file path or inline ACL-compatible string.
349 ///

Callers

nothing calls this directly

Calls 1

load_code_configFunction · 0.85

Tested by

no test coverage detected