QueryError

com.alecdorrington.iris.query.QueryError
enum QueryError(message: String) extends Exception

An error reading a value from what the model wrote.

Value parameters

message

The error's message.

Attributes

Graph
Supertypes
trait Enum
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class Unreadable

Members list

Type members

Enum entries

final case class Unreadable(detail: String, responses: List[PromptResponse]) extends QueryError

A response that could not be read as the value asked for: after the model was told why as often as allowed, or at once where asking again could not help, as for a response cut off at the token limit.

A response that could not be read as the value asked for: after the model was told why as often as allowed, or at once where asking again could not help, as for a response cut off at the token limit.

Value parameters

detail

The description of why the last response could not be read, as the model was told it, which may repeat what the response said, as a host's own refusal of a value may or a map's keys do, and so is kept out of the message.

responses

Every response asked for, oldest first, with their usage, also kept out of the message.

Attributes