Interface: LLM
Unified language model interface
Implemented by
Methods
chat
▸ chat(messages
, parentEvent?
): Promise
<ChatResponse
>
Get a chat response from the LLM
Parameters
Name | Type |
---|---|
messages | ChatMessage [] |
parentEvent? | Event |
Returns
Promise
<ChatResponse
>
Defined in
complete
▸ complete(prompt
, parentEvent?
): Promise
<ChatResponse
>
Get a prompt completion from the LLM
Parameters
Name | Type | Description |
---|---|---|
prompt | string | the prompt to complete |
parentEvent? | Event | - |
Returns
Promise
<ChatResponse
>