Skip to content

Commit

Permalink
refactor(ccc/export/types): split extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Nov 16, 2024
1 parent 3de2c9a commit 74dbb5a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/ccc/src/export/types/character_book.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import type { Extensions } from './extensions'

export interface CharacterBook {
description?: string
entries: CharacterBookEntry[]
extensions: Extensions
extensions: CharacterBookExtensions
name?: string
recursive_scanning?: boolean
scan_depth?: number
Expand All @@ -18,7 +16,7 @@ export interface CharacterBookEntry {
constant?: boolean
content: string
enabled: boolean
extensions: Extensions
extensions: CharacterBookEntryExtensions

// FIELDS WITH NO CURRENT EQUIVALENT IN SILLY
/** not used in prompt engineering */
Expand All @@ -39,3 +37,7 @@ export interface CharacterBookEntry {
/** if `true`, require a key from both `keys` and `secondary_keys` to trigger the entry */
selective?: boolean
}

export interface CharacterBookExtensions extends Record<string, unknown> {}

export interface CharacterBookEntryExtensions extends Record<string, unknown> {}

0 comments on commit 74dbb5a

Please sign in to comment.