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

SessionInput

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

Input for the session.

interface SessionInput {
audio?: Uint8Array;
blob?: Blob;
dtmf?: string;
event?: Event;
image?: Image;
text?: string;
toolResponses?: ToolResponses;
variables?: {
[key: string]: any;
}
;
willContinue?: boolean;
}

§Properties

§
audio?: Uint8Array
[src]

Optional. Audio data from the end user.

§
blob?: Blob
[src]

Optional. Blob data from the end user.

§
dtmf?: string
[src]

Optional. DTMF digits from the end user.

§
event?: Event
[src]

Optional. Event input.

§
image?: Image
[src]

Optional. Image data from the end user.

§
text?: string
[src]

Optional. Text data from the end user.

§
toolResponses?: ToolResponses
[src]

Optional. Execution results for the tool calls from the client.

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

Optional. Contextual variables for the session, keyed by name. Only variables declared in the app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow agent as additional session parameters.

§
willContinue?: boolean
[src]

Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When true, the agent will defer processing until a subsequent message with will_continue set to false is received. Note: This flag has no effect on audio and DTMF inputs, which are always processed in real-time.