AfterToolResults
org.llm4s.testkit.AfterToolResults
object AfterToolResults
Matches a conversation that ends with tool results, and extracts all of them as (tool name, result text), in the order they are in the conversation: the results of every tool the model called at once. It never extracts an empty sequence.
case AfterToolResults(results) if results.exists(_._1 == "add_inventory_item") => Reply.text("Taken.")
The names are found as AfterToolResult finds one, and the extractor does not match when any of them is not found.
Attributes
- Source
- RuleExtractors.scala
- Graph
-
- Supertypes
- Self type
-
AfterToolResults.type
Members list
In this article
