prompt.svelte.ts

Declarations
#

7 declarations

view source

Prompt
#

prompt.svelte.ts view source

inheritance

extends:
  • Cell<typeof PromptJson>

name

type string

parts

type Array<PartUnion>

content

type string

readonly

length

type number

readonly

token_count

type number

readonly

content_preview

type string

readonly

constructor

type new (options: PromptOptions): Prompt

options

add_part

Add a part to this prompt.

type (part: PartUnion): PartUnion

part
returns PartUnion

remove_part

type (id: string & $brand<"Uuid">): boolean

id
type string & $brand<"Uuid">
returns boolean

remove_all_parts

type (): void

returns void

reorder_parts

type (from_index: number, to_index: number): void

from_index
type number
to_index
type number
returns void

PromptActionContent
#

PromptJson
#

prompt.svelte.ts view source

ZodObject<{ id: ZodDefault<$ZodBranded<ZodUUID, "Uuid">>; created: ZodDefault<$ZodBranded<ZodISODateTime, "Datetime">>; updated: ZodDefault<...>; name: ZodDefault<...>; parts: ZodDefault<...>; }, $strict>

PromptJsonInput
#

prompt.svelte.ts view source

{ id?: string | undefined; created?: string | undefined; updated?: string | undefined; name?: string | undefined; parts?: ({ id?: string | undefined; created?: string | undefined; updated?: string | undefined; ... 10 more ...; content?: string | undefined; } | { ...; })[] | undefined; }

PromptMessage
#

PromptOptions
#

PromptSchema
#

Depends on
#

Imported by
#