Skip to main content
Vrin supports multi-turn conversations where each query has access to the full conversation history. The client tracks session state automatically.

Start a conversation

Resets the current session. Returns self for chaining:

Continue a conversation

continue_conversation() is syntactic sugar for query() with maintain_context=True. All query() parameters are accepted as keyword arguments:

Parameters

string
required
Natural-language question with automatic conversation context.
All additional keyword arguments are forwarded to query().

End a conversation

Archives the current session ID to conversation_history_ids and clears the active session. Returns self for chaining.

Resume a previous conversation

Sets the active session to an existing conversation ID. Subsequent continue_conversation() calls will include that conversation’s history.

Parameters

string
required
The session ID of a previous conversation to resume.

List conversations

Parameters

int
default:"50"
Maximum number of conversations to return.

Get conversation history

Delete a conversation

Performs a soft-delete. If the deleted conversation is the current active session, the session is cleared.

Rename a conversation

Full example