Overview
The SDK provides a streamlined interface for making requests to the Secton API. This section covers the core request methods and their configurations.Basic Requests
Basic Requests
Instantiate the client and use the For multi-turn conversations, utilize the
ask()
method for a single query:chat()
method:These methods are suitable for interactions without the need for context management.
Advanced Streaming
Advanced Streaming
For real-time interactions, the You can also apply transformations to the stream:
stream()
method allows you to receive chunks of data as they are generated:This approach is ideal for apps requiring real-time data processing.