BackendToolResultMedia class abstract

Optional backend capability for media in LlamaToolResultContent.content.

The backend takes each such part at its marker in the prompt that LlamaEngine.create renders, in the order the parts were passed, through BackendChatPromptGeneration or LlamaBackend.generate. The engine reports a type in LlamaEngineCapabilities.toolResultMedia, and accepts a request carrying it, only when toolResultMedia has it and the loaded projector takes that media. Without this interface, tool-result media throw LlamaUnsupportedException.

Constructors

BackendToolResultMedia()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
toolResultMedia → Set<LlamaToolResultMedia>
The media types the backend places at a tool result's markers; empty when it places none, as when no model is loaded.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited