Provider-specific metadata. Structure varies by provider.
string|nullthinking
Thinking/reasoning content from models that support extended thinking
(e.g., Claude with thinking enabled).
isComplete(): bool
Check if response finished normally.
wasTruncated(): bool
Check if response hit max_tokens limit.
wasFiltered(): bool
Check if content was filtered.
hasToolCalls(): bool
Check if response contains tool calls.
hasThinking(): bool
Check if response contains thinking/reasoning content.
getText(): string
Alias for content property.
VisionResponse
classVisionResponse
Fully qualified name
\Netresearch\NrLlm\Domain\Model\VisionResponse
Response from vision/image analysis operations.
stringdescription
The generated image analysis text.
stringmodel
The model used for analysis.
UsageStatisticsusage
Token usage statistics.
stringprovider
The provider identifier.
float|nullconfidence
Confidence score for the analysis (if available).
array|nulldetectedObjects
Detected objects in the image (if available).
array|nullmetadata
Provider-specific metadata.
getText(): string
Get the analysis text. Alias for description property.
getDescription(): string
Alias for description property.
meetsConfidence(float $threshold): bool
Check if confidence score meets or exceeds a threshold.
param float $threshold
Minimum confidence value
Returns
bool True if confidence is not null and meets threshold
EmbeddingResponse
classEmbeddingResponse
Fully qualified name
\Netresearch\NrLlm\Domain\Model\EmbeddingResponse
Response from embedding operations.
arrayembeddings
Array of embedding vectors.
stringmodel
The model used for embedding.
UsageStatisticsusage
Token usage statistics.
stringprovider
The provider identifier.
getVector(): array
Get the first embedding vector.
staticcosineSimilarity(array $a, array $b)
Calculate cosine similarity between vectors.
returns
float
TranslationResult
classTranslationResult
Fully qualified name
\Netresearch\NrLlm\Domain\Model\TranslationResult
Response from translation operations.
stringtranslation
The translated text.
stringsourceLanguage
Detected or provided source language.
stringtargetLanguage
The target language.
floatconfidence
Confidence score (0.0 to 1.0).
UsageStatistics
classUsageStatistics
Fully qualified name
\Netresearch\NrLlm\Domain\Model\UsageStatistics
Token usage and cost tracking.
intpromptTokens
Tokens in the prompt/input.
intcompletionTokens
Tokens in the completion/output.
inttotalTokens
Total tokens used.
float|nullestimatedCost
Estimated cost in USD (if available).
Reference to the headline
Copy and freely share the link
This link target has no permanent anchor assigned. You can make a pull request on GitHub to suggest an anchor.
The link below can be used, but is prone to change if the page gets moved.