ModelName

org.llm4s.types.`package`.ModelName
See theModelName companion class
object ModelName

Validation and smart constructors for type-safe IDs and names. These objects provide methods to create and validate type-safe IDs and names, ensuring they meet specific criteria. They also provide common constants for frequently used models and providers. These methods return Result types for error handling, allowing users to create type-safe IDs and names with confidence that they are valid. This approach ensures type safety without runtime overhead, and provides a clear and consistent API for creating and validating IDs and names.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ModelName.type

Members list

Value members

Concrete methods

def apply(value: String): Result[ModelName]
def fromString(value: String): ModelName
def unsafe(value: String): ModelName