Skip to main content
Conversation is created via client.conversation() and manages a growing message array across turns.

Constructor

Via GatelitClient.conversation():

ConversationOptions

Properties

messages

The full conversation history. Starts empty and grows with each send() and stream() call. Includes both user and assistant messages.

Methods

send(content, signal?)

Sends a user message and waits for the full assistant response. Both messages are appended to messages.

stream(content, signal?)

Same as send() but streams the response. The assistant message is appended to messages after the stream completes.

reset()

Clears the message history.