Returns
Returns a Session object.Example
Parameters
The ID of the version to associate with this session.
The ID of a test case. Forbidden when
is_production=True. Sessions backed by a test case derive their context from the test case rather than the request.A client-provided custom ID for the session.
This is useful to associate sessions in the Galtea platform with those in your application.
The context provided to the AI product during the session. Forbidden when
test_case_id is set (it would be derived from the test case).A flag to indicate if the session represents real production traffic. When omitted, the API derives it from
test_case_id presence: no test case means production. A non-production session no longer requires a test_case_id — externally ingested sessions (e.g. imported traces) may be classified as development data without being linked to a test case.