AsposeLLMApi.StartNewChatAsync
AsposeLLMApi.StartNewChatAsync method
Starts a new chat session using the supplied preset.
public Task<string> StartNewChatAsync(PresetCoreBase? preset = null, string? sessionId = null)
| Parameter | Type | Description |
|---|---|---|
| preset | PresetCoreBase | Preset that provides chat, context, and sampler parameters. |
| sessionId | String | Optional session identifier; generates one if null. |
Return Value
Identifier of the newly created chat session.
See Also
- class AsposeLLMApi
- namespace Aspose.LLM
- assembly Aspose.LLM