MCPcopy Create free account
hub / github.com/Autoparallel/learner / from_path

Method from_path

crates/learner/src/lib.rs:630–632  ·  view source on GitHub ↗

Creates a new Learner instance from a configuration file path. Loads configuration from the specified directory, which should contain a config.toml file. # Arguments `path` - Directory containing config.toml # Errors Returns error if: - Configuration file does not exist - TOML parsing fails - Directory creation fails - Initialization fails # Examples ```no_run # use learner::Learner; # asyn

(path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

628 /// # }
629 /// ```
630 pub async fn from_path(path: impl AsRef<Path>) -> Result<Self> {
631 Self::builder().with_path(path).build().await
632 }
633
634 /// Creates a new Learner instance with explicit configuration.
635 ///

Callers

nothing calls this directly

Calls 2

buildMethod · 0.80
with_pathMethod · 0.80

Tested by

no test coverage detected