LastUser
org.llm4s.testkit.LastUser
object LastUser
Matches a conversation that has a user message, and extracts the text of the latest one, whatever follows it: every model call of a turn, not only the first. It extracts lastUserText.
case LastUser(text) if text.contains("Oslo") => Reply.text("cold")
Attributes
- Source
- RuleExtractors.scala
- Graph
-
- Supertypes
- Self type
-
LastUser.type
Members list
In this article
