def block

bend-kit-llm@0.13.0.1 · llm.bend:177

import bend-kit-llm@0.13.0.1/llm.bend as Llm
import Base

177# Is p the text of a content block, "content.<i>.text"?
178def block(+p: String) -> Bool:
179  Bool.and(Bool.and(String.starts_with(p, "content."), String.ends_with(p, ".text")), U32.is_eq(dots(p, 0), 2))

Uses (7)

Used by (1)