UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

31 lines (30 loc) 1.03 kB
import type { PromptResult } from '../../../../execution/PromptResult'; import type { Prompt } from '../../../../types/Prompt'; import type { string_semantic_version } from '../../../../types/string_sha256'; import type { string_date_iso8601 } from '../../../../types/string_token'; import type { string_promptbook_version } from '../../../../version'; /** * Represents a single item stored in the LLM cache. */ export type CacheItem = { /** * The date and time when the cache item was created, in ISO 8601 format. */ date: string_date_iso8601; /** * The version of the Promptbook library used when this cache item was created. */ promptbookVersion?: string_promptbook_version; /** * The version of the Book language used when this cache item was created. */ bookVersion?: string_semantic_version; /** * The prompt that was sent to the LLM. */ prompt: Prompt; /** * The response received from the LLM. */ promptResult: PromptResult; };