Skip to main content
Single-turn queries are the simplest way to use the SDK. You send one prompt and get a response, similar to using a chat interface.

Basic Single-Turn Query

With Permission Control

Allow only read operations:

With Specific Model

Processing All Message Types

With YOLO Mode

YOLO mode allows all operations. Use only in trusted environments.

With Error Handling

Collecting All Responses

With Session ID Tracking

With Custom Error Handler

See Also