Returns

Returns a Session object.

Example

session = galtea.sessions.create(
    version_id="YOUR_VERSION_ID",
    test_case_id="YOUR_TEST_CASE_ID", # Optional, for non-production
    is_production=False
)

Parameters

version_id
string
required

The ID of the version to associate with this session.

test_case_id
string

The ID of a test case. Required for non-production sessions (is_production=False).

custom_id
string

A client-provided custom ID for the session.

This is useful to associate sessions in the Galtea platform with those in your application.

context
string

The context provided to the AI product during the session.

is_production
boolean

A flag to indicate if the session is from a production environment. Defaults to False.