LLMContentBlock
class LLMContentBlock extends AbstractObject implements IdAble, Node
A single piece of content within an LLM message.
Properties
| $lastQuery | from AbstractObject |
Methods
No description
The unique ID of a tool call (for TOOL_CALL or TOOL_RESULT kinds).
Whether the tool call resulted in an error (for TOOL_RESULT kind).
The kind of content block, which determines the other populated fields.
Provider-specific opaque data (e.g. Anthropic thinking signature). Preserve it when reconstructing a conversation.
Text content (for TEXT, THINKING, or TOOL_RESULT kinds).
The name of the tool called (for TOOL_CALL kind).
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
Json
arguments()
The arguments passed to the tool, JSON-encoded (for TOOL_CALL kind).
at line 28
string
callId()
The unique ID of a tool call (for TOOL_CALL or TOOL_RESULT kinds).
at line 37
bool
errored()
Whether the tool call resulted in an error (for TOOL_RESULT kind).
at line 46
Id
id()
A unique identifier for this LLMContentBlock.
at line 55
LLMContentBlockKind
kind()
The kind of content block, which determines the other populated fields.
at line 64
string
signature()
Provider-specific opaque data (e.g. Anthropic thinking signature). Preserve it when reconstructing a conversation.
at line 73
string
text()
Text content (for TEXT, THINKING, or TOOL_RESULT kinds).
at line 82
string
toolName()
The name of the tool called (for TOOL_CALL kind).