StringSchema
org.llm4s.toolapi.StringSchema
case class StringSchema(description: String, enumValues: Option[Seq[String]], minLength: Option[Int], maxLength: Option[Int]) extends SchemaDefinition[String]
String schema with validation options.
Value parameters
- description
-
Human-readable description shown to the LLM
- enumValues
-
Restricts valid values to this closed set
- maxLength
-
Maximum allowed string length
- minLength
-
Minimum allowed string length
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SchemaDefinition[String]class Objecttrait Matchableclass Any
Members list
In this article