LLMMessage
class LLMMessage extends AbstractObject implements IdAble, Node
A single message in an LLM conversation.
Properties
| $lastQuery | from AbstractObject |
Methods
from
AbstractObject
null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
from
AbstractObject
array
content()
The message's content blocks, in the order the model produced them.
LLMMessageRole
role()
The role that produced this message.
tokenUsage()
Token usage reported by the provider for the API call that produced this message; all zeros except on assistant responses.
Details
in
AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
in
AbstractObject at line 19
protected null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
at line 19
array
content()
The message's content blocks, in the order the model produced them.
at line 28
Id
id()
A unique identifier for this LLMMessage.
at line 37
LLMMessageRole
role()
The role that produced this message.
at line 46
LLMTokenUsage
tokenUsage()
Token usage reported by the provider for the API call that produced this message; all zeros except on assistant responses.