Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SessionOutput

import type { SessionOutput } from "https://googleapis.deno.dev/v1/ces:v1.ts";

Output for the session.

interface SessionOutput {
audio?: Uint8Array;
citations?: Citations;
diagnosticInfo?: SessionOutputDiagnosticInfo;
endSession?: EndSession;
googleSearchSuggestions?: GoogleSearchSuggestions;
payload?: {
[key: string]: any;
}
;
text?: string;
toolCalls?: ToolCalls;
turnCompleted?: boolean;
turnIndex?: number;
}

§Properties

§
audio?: Uint8Array
[src]

Output audio from the CES agent.

§
citations?: Citations
[src]

Citations that provide the source information for the agent's generated text.

§

Optional. Diagnostic information contains execution details during the processing of the input. Only populated in the last SessionOutput (with turn_completed=true) for each turn.

§
endSession?: EndSession
[src]

Indicates the session has ended.

§
googleSearchSuggestions?: GoogleSearchSuggestions
[src]

The suggestions returned from Google Search as a result of invoking the GoogleSearchTool.

§
payload?: {
[key: string]: any;
}
[src]

Custom payload with structured output from the CES agent.

§
text?: string
[src]

Output text from the CES agent.

§
toolCalls?: ToolCalls
[src]

Request for the client to execute the tools.

§
turnCompleted?: boolean
[src]

If true, the CES agent has detected the end of the current conversation turn and will provide no further output for this turn.

§
turnIndex?: number
[src]

Indicates the sequential order of conversation turn to which this output belongs to, starting from 1.