GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — LlmResponse | ADK for TypeScript: API Reference - v2.5.0

  • LlmResponse

Interface LlmResponse

LLM response class that provides the first candidate response from the model if available. Otherwise, returns error code and message.

interface LlmResponse {
    citationMetadata?: CitationMetadata;
    content?: Content;
    customMetadata?: { [key: string]: unknown };
    errorCode?: string;
    errorMessage?: string;
    finishReason?: FinishReason;
    goAway?: LiveServerGoAway;
    groundingMetadata?: GroundingMetadata;
    inputTranscription?: Transcription;
    interactionId?: string;
    interrupted?: boolean;
    liveSessionId?: string;
    liveSessionResumptionUpdate?: LiveServerSessionResumptionUpdate;
    modelVersion?: string;
    outputTranscription?: Transcription;
    partial?: boolean;
    turnComplete?: boolean;
    usageMetadata?: GenerateContentResponseUsageMetadata;
}

Hierarchy (View Summary)

  • LlmResponse
    • Event
  • Defined in core/src/models/llm_response.ts:23

Properties

OptionalcitationMetadata

citationMetadata?: CitationMetadata

The citation metadata of the response.

  • Defined in core/src/models/llm_response.ts:37

Optionalcontent

content?: Content

The content of the response.

  • Defined in core/src/models/llm_response.ts:27

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.

  • Defined in core/src/models/llm_response.ts:72

OptionalerrorCode

errorCode?: string

Error code if the response is an error. Code varies by model.

  • Defined in core/src/models/llm_response.ts:54

OptionalerrorMessage

errorMessage?: string

Error message if the response is an error.

  • Defined in core/src/models/llm_response.ts:59

OptionalfinishReason

finishReason?: FinishReason

The finish reason of the response.

  • Defined in core/src/models/llm_response.ts:82

OptionalgoAway

goAway?: LiveServerGoAway

Server-side signal that the live connection will be closed soon. The caller should reconnect using the latest session resumption handle.

  • Defined in core/src/models/llm_response.ts:93

OptionalgroundingMetadata

groundingMetadata?: GroundingMetadata

The grounding metadata of the response.

  • Defined in core/src/models/llm_response.ts:32

OptionalinputTranscription

inputTranscription?: Transcription

Audio transcription of user input.

  • Defined in core/src/models/llm_response.ts:98

OptionalinteractionId

interactionId?: string

The interaction ID returned by the model, if any.

  • Defined in core/src/models/llm_response.ts:108

Optionalinterrupted

interrupted?: boolean

Flag indicating that LLM was interrupted when generating the content. Usually it's due to user interruption during a bidi streaming.

  • Defined in core/src/models/llm_response.ts:65

OptionalliveSessionId

liveSessionId?: string

The session ID of the Live session.

  • Defined in core/src/models/llm_response.ts:114

OptionalliveSessionResumptionUpdate

liveSessionResumptionUpdate?: LiveServerSessionResumptionUpdate

The session resumption update of the LlmResponse

  • Defined in core/src/models/llm_response.ts:87

OptionalmodelVersion

modelVersion?: string

The model version used to generate the response.

  • Defined in core/src/models/llm_response.ts:111

OptionaloutputTranscription

outputTranscription?: Transcription

Audio transcription of model output.

  • Defined in core/src/models/llm_response.ts:103

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.

  • Defined in core/src/models/llm_response.ts:43

OptionalturnComplete

turnComplete?: boolean

Indicates whether the response from the model is complete. Only used for streaming mode.

  • Defined in core/src/models/llm_response.ts:49

OptionalusageMetadata

usageMetadata?: GenerateContentResponseUsageMetadata

The usage metadata of the LlmResponse.

  • Defined in core/src/models/llm_response.ts:77
Properties
citationMetadatacontentcustomMetadataerrorCodeerrorMessagefinishReasongoAwaygroundingMetadatainputTranscriptioninteractionIdinterruptedliveSessionIdliveSessionResumptionUpdatemodelVersionoutputTranscriptionpartialturnCompleteusageMetadata
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.