ContentPartContract

org.llm4s.testkit.ContentPartContract

The content-part contract: a chat client sends every part its provider takes, and fails the request with an org.llm4s.error.UnsupportedContentPartError naming any other, before anything is sent - never dropping a part or sending it as text. ProviderModuleChecks.assertContentParts runs it.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

A conversation whose user message, or tool result, has two text parts.

A conversation whose user message, or tool result, has two text parts.

Attributes

Concrete fields

val FirstText: String

Two text parts every client must send, in a user message and in a tool result.

Two text parts every client must send, in a user message and in a tool result.

Attributes

val SecondText: String
val TextDocument: String

The text of the plain-text document case.

The text of the plain-text document case.

Attributes

An image uploaded to a provider no client is: every client must refuse it.

An image uploaded to a provider no client is: every client must refuse it.

Attributes