createSession
Creates a new session with the specified parameters.
Return
The newly created Session instance.
Parameters
The composite identifier of the session. If SessionKey.id is null, the service generates a unique session id and the returned Session will reflect it.
An optional map representing the initial state of the session.
Creates a session that expires, addressing the reasoning engine fixed at construction.
At most one of ttl and expireTime may be set, because the backend models them as a single choice; setting both is rejected. The backend also requires the expiry to be at least 24 hours out. When neither is given, the service-wide sessionTtl applies if one was configured.
Return
The newly created Session.
Parameters
The composite identifier of the session; SessionKey.appName is only a label.
An optional map representing the initial state of the session.
How long the session lives, measured from creation. Sub-second precision is dropped.
The absolute instant at which the session expires.