strict

org.llm4s.repl.strict
@Experimental
object strict

The helpers for scripts: the same calls, returning Result so that a script can stop on the first failure with a for comprehension. They print nothing on failure; strict.ask still streams the answer.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
strict.type

Members list

Value members

Concrete methods

def ask(prompt: String, tools: ToolRegistry)(using session: Session): Result[String]

org.llm4s.repl.ask, returning Left(error) instead of printing it.

org.llm4s.repl.ask, returning Left(error) instead of printing it.

Attributes

def extract[A](text: String)(using session: Session, schema: SchemaOf[A], reader: Reader[A]): Result[A]

org.llm4s.repl.extract, returning Left(error) instead of printing it.

org.llm4s.repl.extract, returning Left(error) instead of printing it.

Attributes