GeezerVison is showing adk.dev — LlmResponse | ADK for TypeScript: API Reference - v2.5.0
LLM response class that provides the first candidate response from the
model if available. Otherwise, returns error code and message.
Properties
OptionalcitationMetadata
citationMetadata?: CitationMetadata
The citation metadata of the response.
Optionalcontent
content?: Content
The content of the response.
OptionalcustomMetadata
customMetadata?: { [key: string]: unknown }
The custom metadata of the LlmResponse.
An optional key-value pair to label an LlmResponse.
NOTE: the entire object must be JSON serializable.
OptionalerrorCode
errorCode?: string
Error code if the response is an error. Code varies by model.
OptionalerrorMessage
errorMessage?: string
Error message if the response is an error.
OptionalfinishReason
finishReason?: FinishReason
The finish reason of the response.
OptionalgoAway
goAway?: LiveServerGoAway
Server-side signal that the live connection will be closed soon. The
caller should reconnect using the latest session resumption handle.
OptionalgroundingMetadata
groundingMetadata?: GroundingMetadata
The grounding metadata of the response.
OptionalinputTranscription
inputTranscription?: Transcription
Audio transcription of user input.
OptionalinteractionId
interactionId?: string
The interaction ID returned by the model, if any.
Optionalinterrupted
interrupted?: boolean
Flag indicating that LLM was interrupted when generating the content.
Usually it's due to user interruption during a bidi streaming.
OptionalliveSessionId
liveSessionId?: string
The session ID of the Live session.
OptionalliveSessionResumptionUpdate
liveSessionResumptionUpdate?: LiveServerSessionResumptionUpdate
The session resumption update of the LlmResponse
OptionalmodelVersion
modelVersion?: string
The model version used to generate the response.
OptionaloutputTranscription
outputTranscription?: Transcription
Audio transcription of model output.
Optionalpartial
partial?: boolean
Indicates whether the text content is part of a unfinished text stream.
Only used for streaming mode and when the content is plain text.
OptionalturnComplete
turnComplete?: boolean
Indicates whether the response from the model is complete.
Only used for streaming mode.
OptionalusageMetadata
usageMetadata?: GenerateContentResponseUsageMetadata
The usage metadata of the LlmResponse.