org.llm4s.javaapi.Answer
See theAnswer companion object
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 Objecttrait Matchableclass Any
Members list
In this article