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.

id
string

A client-provided session ID. If not provided, one will be auto-generated.

test_case_id
string

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

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.