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
§
toolResponses?: ToolResponses
[src]Optional. Execution results for the tool calls from the client.
§
variables?: {}
[src][key: string]: any;
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.