Skip to content

@sqlrooms/ai-core / SessionType

Type Alias: SessionType ​

SessionType = object

Represents a session in the AI system.

Example ​

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

Properties ​

id ​

id: string

Unique identifier for the session


name ​

name: string

Display name of the session


modelProvider? ​

optional modelProvider?: string

Provider of the AI model (e.g., "openai")


model? ​

optional model?: string

Name of the AI model being used (e.g., "gpt-4o-mini")