pub struct CeylonConfig {
pub package: PackageConfig,
pub agent: AgentConfig,
pub tools: ToolsConfig,
pub memory: MemoryConfig,
pub build: BuildConfig,
}Expand description
Configuration loaded from ceylon.toml
Fields§
§package: PackageConfig§agent: AgentConfig§tools: ToolsConfig§memory: MemoryConfig§build: BuildConfigImplementations§
Source§impl CeylonConfig
impl CeylonConfig
Sourcepub fn load<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn load<P: AsRef<Path>>(path: P) -> Result<Self>
Load configuration from a ceylon.toml file
Sourcepub fn load_from_current_dir() -> Result<Self>
pub fn load_from_current_dir() -> Result<Self>
Load configuration from the current directory
Sourcepub fn load_from_dir<P: AsRef<Path>>(dir: P) -> Result<Self>
pub fn load_from_dir<P: AsRef<Path>>(dir: P) -> Result<Self>
Load configuration from a project directory
Sourcepub fn system_prompt_path(&self, base_dir: &Path) -> Option<PathBuf>
pub fn system_prompt_path(&self, base_dir: &Path) -> Option<PathBuf>
Get the absolute path to the system prompt file
Sourcepub fn read_system_prompt(&self, base_dir: &Path) -> Result<Option<String>>
pub fn read_system_prompt(&self, base_dir: &Path) -> Result<Option<String>>
Read the system prompt from the configured file
Sourcepub fn memory_path(&self, base_dir: &Path) -> Option<PathBuf>
pub fn memory_path(&self, base_dir: &Path) -> Option<PathBuf>
Get the memory path, resolved relative to the base directory
Trait Implementations§
Source§impl Clone for CeylonConfig
impl Clone for CeylonConfig
Source§fn clone(&self) -> CeylonConfig
fn clone(&self) -> CeylonConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CeylonConfig
impl Debug for CeylonConfig
Source§impl<'de> Deserialize<'de> for CeylonConfig
impl<'de> Deserialize<'de> for CeylonConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CeylonConfig
impl RefUnwindSafe for CeylonConfig
impl Send for CeylonConfig
impl Sync for CeylonConfig
impl Unpin for CeylonConfig
impl UnwindSafe for CeylonConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more