Skip to content

@sqlrooms/ai / SessionType

Type Alias: SessionType

SessionType: object

Represents a session in the AI system.

Type declaration

NameTypeDescription
idstringUnique identifier for the session
namestringDisplay name of the session
modelProvider?stringProvider of the AI model (e.g., "openai")
model?stringName of the AI model being used (e.g., "gpt-4o-mini")

Example

typescript
const session: SessionType = {
  id: "session_123",
  name: "My Analysis Session",
  modelProvider: "openai",
  model: "gpt-4o-mini"
};