Skip to content

lumilio-web / hooks/util-hooks/useLLM / UseLLMReturn

Interface: UseLLMReturn

Defined in: hooks/util-hooks/useLLM.tsx:32

Properties

cancelGeneration()

cancelGeneration: () => void

Defined in: hooks/util-hooks/useLLM.tsx:43

Returns

void


clearConversation()

clearConversation: () => void

Defined in: hooks/util-hooks/useLLM.tsx:42

Returns

void


conversation

conversation: LLMMessage[]

Defined in: hooks/util-hooks/useLLM.tsx:36


currentModelId

currentModelId: null | string

Defined in: hooks/util-hooks/useLLM.tsx:37


generateAnswer()

generateAnswer: (userInput, options?) => Promise<undefined | string>

Defined in: hooks/util-hooks/useLLM.tsx:38

Parameters

userInput

string

options?

LLMOptions

Returns

Promise<undefined | string>


isGenerating

isGenerating: boolean

Defined in: hooks/util-hooks/useLLM.tsx:34


isInitializing

isInitializing: boolean

Defined in: hooks/util-hooks/useLLM.tsx:33


progress

progress: null | LLMProgress

Defined in: hooks/util-hooks/useLLM.tsx:35


setSystemPrompt()

setSystemPrompt: (prompt) => void

Defined in: hooks/util-hooks/useLLM.tsx:44

Parameters

prompt

string

Returns

void