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

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

A PDF, inline, in a tool result.

A PDF, inline, in a tool result.

Attributes

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

An image, inline, in a user message.

An image, inline, in a user message.

Attributes

An image, by URL, in a user message.

An image, by URL, in a user message.

Attributes

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

A PDF, inline, in a user message.

A PDF, inline, in a user message.

Attributes

A PDF, by URL, in a user message.

A PDF, by URL, in a user message.

Attributes

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

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

Attributes