Skip to main content

GeneratedContent

Trait GeneratedContent 

Source
pub trait GeneratedContent {
    // Required methods
    fn builtin_index(&self) -> Vec<(String, String)>;
    fn tool_help(&self, name: &str) -> Option<String>;
}
Expand description

Live, schema-derived content the static fragments can’t hold.

The kernel implements this (it owns the tool registry); this crate stays free of the registry. SchemaContent is the standard implementation.

Required Methods§

Source

fn builtin_index(&self) -> Vec<(String, String)>

(name, one-line description) for every available builtin, in list order.

Source

fn tool_help(&self, name: &str) -> Option<String>

The schema skeleton for one tool, or None if it isn’t registered.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§