pub struct GuideBuildContext {
pub language: GuideLanguage,
pub include_best_practices: bool,
pub max_examples_per_tool: usize,
}Expand description
Build context for generating tool guides.
Contains language settings and configuration options for guide generation.
Fields§
§language: GuideLanguageDetected or configured language for guide content
include_best_practices: boolWhether to include best practices section
max_examples_per_tool: usizeMaximum number of examples to include per tool
Implementations§
Source§impl GuideBuildContext
impl GuideBuildContext
Sourcepub fn from_system_prompt(prompt: &str) -> Self
pub fn from_system_prompt(prompt: &str) -> Self
Creates a build context by detecting language from a system prompt.
§Arguments
prompt- The system prompt to analyze for language detection
Sourcepub fn best_practices(&self) -> &'static [&'static str]
pub fn best_practices(&self) -> &'static [&'static str]
Returns best practices appropriate for the configured language.
Trait Implementations§
Source§impl Clone for GuideBuildContext
impl Clone for GuideBuildContext
Source§fn clone(&self) -> GuideBuildContext
fn clone(&self) -> GuideBuildContext
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 GuideBuildContext
impl Debug for GuideBuildContext
Auto Trait Implementations§
impl Freeze for GuideBuildContext
impl RefUnwindSafe for GuideBuildContext
impl Send for GuideBuildContext
impl Sync for GuideBuildContext
impl Unpin for GuideBuildContext
impl UnsafeUnpin for GuideBuildContext
impl UnwindSafe for GuideBuildContext
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