Interface: IConversation
Defined in: packages/agentos/src/core/storage/IStorageAdapter.ts:44
Represents a stored conversation with metadata.
IConversation
Example
const conversation: IConversation = {
id: 'conv-123',
userId: 'user-456',
agentId: 'agent-coding',
createdAt: Date.now(),
lastActivity: Date.now(),
title: 'Build a React component',
metadata: { tags: ['coding', 'react'], starred: true }
};
Properties
agentId?
optionalagentId:string
Defined in: packages/agentos/src/core/storage/IStorageAdapter.ts:47
Optional agent ID if conversation is tied to specific agent
createdAt
createdAt:
number
Defined in: packages/agentos/src/core/storage/IStorageAdapter.ts:48
Unix timestamp (milliseconds) when conversation was created
id
id:
string
Defined in: packages/agentos/src/core/storage/IStorageAdapter.ts:45
Unique identifier for the conversation (UUID recommended)
lastActivity
lastActivity:
number
Defined in: packages/agentos/src/core/storage/IStorageAdapter.ts:49
Unix timestamp (milliseconds) of last message in conversation
metadata?
optionalmetadata:Record<string,any>
Defined in: packages/agentos/src/core/storage/IStorageAdapter.ts:51
Arbitrary metadata object for extensibility
title?
optionaltitle:string
Defined in: packages/agentos/src/core/storage/IStorageAdapter.ts:50
Optional human-readable title for the conversation
userId
userId:
string
Defined in: packages/agentos/src/core/storage/IStorageAdapter.ts:46
User who owns this conversation