Skip to main content

build_system

Function build_system 

Source
pub fn build_system(
    schema_dump: &str,
    cache_schema: Option<CacheControl>,
) -> Vec<SystemBlock>
Expand description

Build the system array for an Anthropic request.

cache_schema controls whether the schema block carries a cache_control breakpoint. Pass None to skip caching (e.g., schemas under the model’s ~2K-token minimum cacheable prefix — they silently won’t cache anyway, so the cache_control marker is noise without it).