create

public AsyncChat create(String model, GenerateContentConfig config)

Creates a new async chat session.

Return

The async chat session.

Parameters

model

The model to use for the async chat session.

config

The configuration for the async chat session.


public AsyncChat create(String model)

Creates a new async chat session.

Return

The async chat session.

Parameters

model

The model to use for the async chat session.