Answer

org.llm4s.javaapi.Answer
See theAnswer companion object
final class Answer

An answer to one pending approval or question of a suspended turn, for JAgent.resume or JAgent.streamResume: built with Answer.approve, Answer.reject, Answer.edit or Answer.reply, with JSON as a String. The id is a PendingInterrupt's, from JAgent.pending.

agent.resume(threadId, List.of(Answer.approve(pending.id())));

A null argument or malformed JSON is reported when the answer is used: resume and streamResume return a failed result.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val interruptId: String