ContentPartCase

org.llm4s.testkit.ContentPartCase
enum ContentPartCase(val role: MessageRole)

One content part a chat client may or may not send, in the role it is sent in. A provider module's spec names the cases its client supports to ProviderModuleChecks.assertContentParts, which checks that each of those reaches the server and that every other case is refused with an org.llm4s.error.UnsupportedContentPartError before anything is sent.

Attributes

Source
ContentPartContract.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

An image, inline, in a tool result.

An image, inline, in a tool result.

Attributes

Source
ContentPartContract.scala

A PDF, inline, in a tool result.

A PDF, inline, in a tool result.

Attributes

Source
ContentPartContract.scala

An image uploaded to the client's own provider, in a user message.

An image uploaded to the client's own provider, in a user message.

Attributes

Source
ContentPartContract.scala

An image, inline, in a user message.

An image, inline, in a user message.

Attributes

Source
ContentPartContract.scala

An image, by URL, in a user message.

An image, by URL, in a user message.

Attributes

Source
ContentPartContract.scala

A PDF uploaded to the client's own provider, in a user message.

A PDF uploaded to the client's own provider, in a user message.

Attributes

Source
ContentPartContract.scala

A PDF, inline, in a user message.

A PDF, inline, in a user message.

Attributes

Source
ContentPartContract.scala

A PDF, by URL, in a user message.

A PDF, by URL, in a user message.

Attributes

Source
ContentPartContract.scala

A plain-text document, inline, in a user message.

A plain-text document, inline, in a user message.

Attributes

Source
ContentPartContract.scala