# Interface Session

Represents a session in a conversation between agents and users.

interface Session {
appName: string;
events: Event[];
id: string;
lastUpdateTime: number;
state: Record<string, unknown>;
userId: string;
}

- Defined in sessions/session.ts:12

## Properties

### appName

appName: string

The name of the app.

- Defined in sessions/session.ts:21

### events

events: Event[]

The events of the session, e.g. user input, model response, function call/response, etc.

- Defined in sessions/session.ts:37

### id

id: string

The unique identifier of the session.

- Defined in sessions/session.ts:16

### lastUpdateTime

lastUpdateTime: number

The last update time of the session.

- Defined in sessions/session.ts:42

### state

state: Record<string, unknown>

The state of the session.

- Defined in sessions/session.ts:31

### userId

userId: string

The id of the user.

- Defined in sessions/session.ts:26