SDK reference / Models / Ai

InvokeEndpointResponse

Kind: class

Namespace: Egulu.Sdk.Models.Ai

Synchronous :invoke completion response with integer micro-euro settlement receipt and ADR-1004 provenance.

Properties

NameTypeJSON nameDescription
AiGeneratedbool?aiGeneratedAlways `true` for generative completions (`ai-generated` header; ADR-1004).
CacheSaltAppliedbool?cacheSaltAppliedTrue when per-project HMAC `cache_salt` isolation was applied (ADR-1004).
CachedPromptTokensint?cachedPromptTokensPrompt tokens the engine took from its KV cache (`0` on a replica shared by more than one project; ADR-1004).
ChargedMicroslong?chargedMicrosExact settled charge in integer micro-euros (`0` on pre-billing safety refusal).
EmbeddingList<float?>?embeddingThe embedding of `prompt` (an `embeddings` endpoint).
FinishReasonstring?finishReasonCompletion stop reason: `stop` | `length` (burst-cap or `max_tokens` clamp) | `content_filter`.
InputTokensint?inputTokensSettled prompt input tokens (`tokens-in`).
ModelDigeststring?modelDigestImmutable model digest (`model-digest` header).
OutputTextstring?outputTextGenerated completion text.
OutputTokensint?outputTokensSettled completion output tokens (`tokens-out`).
PlacementRecordstring?placementRecordSigned/structured placement record (`placement-record` header).
ProcessingLocationstring?processingLocationProcessing location (`processing-location` header).
ReceiptSha256string?receiptSha256Deterministic SHA-256 billing receipt (`plat-inference-receipt-v1|...`).
RemainingBudgetMicroslong?remainingBudgetMicrosRemaining project burst budget in integer micro-euros (`>= 0`).
RequestIdstring?requestIdRequest identifier echoed in `x-request-id`.
RerankResultsList<Models.Ai.InvokeRerankResult>?rerankResultsThe documents ranked best first (a `rerank` endpoint).
ReservedMicroslong?reservedMicrosThe reservation held for the call before the engine ran, in integer micro-euros (the charge never exceeds it; ADR-1008).
WasColdStartbool?wasColdStartTrue when the activator woke the endpoint from `SCALED_TO_ZERO`.