Outcome
org.llm4s.repl.Outcome
@Experimental
What a REPL helper returns: the value, or the error that stopped it. A REPL prints it as the value itself, or as error: <kind>: <message and hint>, never as a stack trace. A script that wants a Result calls toResult, or uses the helpers of strict.
val answer = ask("What is a monad?")
answer.getOrElse("") // the text, or "" when the call failed
answer.toResult // Right(text) or Left(error)
Attributes
- Graph
-
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article