Interface SendMessageParameters

Parameters for sending a message within a chat session.

These parameters are used with the chat.sendMessage() method.

interface SendMessageParameters {
    config?: GenerateContentConfig;
    message: PartListUnion;
}

Properties

Properties

Config for this specific request.

Please note that the per-request config does not change the chat level config, nor inherit from it. If you intend to use some values from the chat's default config, you must explicitly copy them into this per-request config.

message: PartListUnion

The message to send to the model.

The SDK will combine all parts into a single 'user' content to send to the model.

MMNEPVFCICPMFPCPTTAAATR