RecordedReply

org.llm4s.testkit.RecordedReply
See theRecordedReply companion object
final case class RecordedReply(complete: HttpExchange => Unit, stream: HttpExchange => Unit)

How a provider answers one ContractCase: its reply to complete and its reply to streamComplete, each a handler for a LocalProviderTestServer that writes the bytes the provider sends, captured from the real service where possible.

Value parameters

complete

answers a non-streaming request, e.g. LocalProviderTestServer.sendJsonResponse(_, 200, body)

stream

answers a streaming request, e.g. LocalProviderTestServer.sendSseResponse(_, body)

Attributes

Companion
object
Source
ModelCallContract.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product