pub struct TomlProfile {
name: String,
description: String,
tools: Vec<String>,
system_prompt: String,
}Expand description
An profile defined inline in TOML configuration.
The simplest profile type — has a static system prompt and fixed tool list. No dynamic context injection or arguments.
Created automatically by ProfileRegistry::from_config for each
[profiles.inline.<name>] entry.
Fields§
§name: String§description: String§tools: Vec<String>§system_prompt: StringImplementations§
Trait Implementations§
Source§impl Profile for TomlProfile
impl Profile for TomlProfile
Source§fn description(&self) -> &str
fn description(&self) -> &str
Returns a one-line description for profile discovery.
Source§fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
_args: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<ProfilePrompt>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
_args: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<ProfilePrompt>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve the profile’s prompt, optionally using the
ToolContext
for dynamic context injection (e.g., pre-searching the KB). Read moreAuto Trait Implementations§
impl Freeze for TomlProfile
impl RefUnwindSafe for TomlProfile
impl Send for TomlProfile
impl Sync for TomlProfile
impl Unpin for TomlProfile
impl UnsafeUnpin for TomlProfile
impl UnwindSafe for TomlProfile
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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