![JAR search and dependency download from the Maven repository](/logo.png)
cc.unitmesh.prompt.validate.MarkdownCodeBlockValidator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prompt-script Show documentation
Show all versions of prompt-script Show documentation
Chocolate Factory is a cutting-edge LLM toolkit designed to empower you in creating your very own AI assistant.
package cc.unitmesh.prompt.validate
import cc.unitmesh.cf.core.parser.MarkdownCode
class MarkdownCodeBlockValidator(override val input: String) : Validator {
override fun validate(): Boolean {
val input = MarkdownCode.parse(input)
return input.text.isNotBlank()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy