Skip to main content

createAttachmentContextProvider

@retinue/monorepo


@retinue/monorepo / backend/src / createAttachmentContextProvider

Function: createAttachmentContextProvider()

createAttachmentContextProvider(deps): ContextProvider

Defined in: backend/src/files/context.ts:159

The attachment section for a conversation.

knowledge rather than history: an attachment is a durable fact about the conversation, not a turn, and putting it in the history bucket would make it compete with recent messages for the same budget. It is prunable at the old-knowledge stage — an attachment list is worth dropping before a recent turn is.

Parameters​

deps​

conversationId​

ConversationId

metadata​

FileMetadataStore

Returns​

ContextProvider