smoltalk
Preparing search index...
LlamaCPP
Class LlamaCPP
Hierarchy (
View Summary
)
BaseClient
LlamaCPP
Index
Constructors
constructor
Properties
config
statelog
Client?
Methods
_
text
Stream
_
text
Sync
check
For
Tool
Loops
check
Message
Limit
extract
Response
get
Abort
Signal
is
Abort
Error
setup
text
text
Stream
text
Sync
text
With
Retry
Constructors
constructor
new
LlamaCPP
(
config
:
ResolvedSmolConfig
)
:
LlamaCPP
Parameters
config
:
ResolvedSmolConfig
Returns
LlamaCPP
Properties
Protected
config
config
:
ResolvedSmolConfig
Protected
Optional
statelog
Client
statelogClient
?:
StatelogClient
Methods
_
text
Stream
_textStream
(
config
:
PromptConfig
)
:
AsyncGenerator
<
StreamChunk
>
Parameters
config
:
PromptConfig
Returns
AsyncGenerator
<
StreamChunk
>
_
text
Sync
_textSync
(
config
:
PromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
config
:
PromptConfig
Returns
Promise
<
Result
<
PromptResult
>
>
check
For
Tool
Loops
checkForToolLoops
(
promptConfig
:
PromptConfig
,
)
:
{
continue
:
boolean
;
newPromptConfig
:
PromptConfig
}
Parameters
promptConfig
:
PromptConfig
Returns
{
continue
:
boolean
;
newPromptConfig
:
PromptConfig
}
check
Message
Limit
checkMessageLimit
(
promptConfig
:
PromptConfig
)
:
Result
<
PromptResult
>
|
null
Parameters
promptConfig
:
PromptConfig
Returns
Result
<
PromptResult
>
|
null
extract
Response
extractResponse
(
promptConfig
:
PromptConfig
,
rawValue
:
any
,
schema
:
any
,
depth
?:
number
,
)
:
any
Parameters
promptConfig
:
PromptConfig
rawValue
:
any
schema
:
any
depth
:
number
= 0
Returns
any
Protected
get
Abort
Signal
getAbortSignal
(
promptConfig
:
PromptConfig
)
:
AbortSignal
|
undefined
Parameters
promptConfig
:
PromptConfig
Returns
AbortSignal
|
undefined
Protected
is
Abort
Error
isAbortError
(
err
:
unknown
)
:
boolean
Parameters
err
:
unknown
Returns
boolean
setup
setup
()
:
Promise
<
void
>
Returns
Promise
<
void
>
text
text
(
promptConfig
:
Omit
<
PromptConfig
,
"stream"
>
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
promptConfig
:
Omit
<
PromptConfig
,
"stream"
>
Returns
Promise
<
Result
<
PromptResult
>
>
text
(
promptConfig
:
Omit
<
PromptConfig
,
"stream"
>
&
{
stream
:
false
}
,
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
promptConfig
:
Omit
<
PromptConfig
,
"stream"
>
&
{
stream
:
false
}
Returns
Promise
<
Result
<
PromptResult
>
>
text
(
promptConfig
:
Omit
<
PromptConfig
,
"stream"
>
&
{
stream
:
true
}
,
)
:
AsyncGenerator
<
StreamChunk
>
Parameters
promptConfig
:
Omit
<
PromptConfig
,
"stream"
>
&
{
stream
:
true
}
Returns
AsyncGenerator
<
StreamChunk
>
text
(
promptConfig
:
PromptConfig
,
)
:
Promise
<
Result
<
PromptResult
>
>
|
AsyncGenerator
<
StreamChunk
,
any
,
any
>
Parameters
promptConfig
:
PromptConfig
Returns
Promise
<
Result
<
PromptResult
>
>
|
AsyncGenerator
<
StreamChunk
,
any
,
any
>
text
Stream
textStream
(
config
:
PromptConfig
)
:
AsyncGenerator
<
StreamChunk
>
Parameters
config
:
PromptConfig
Returns
AsyncGenerator
<
StreamChunk
>
text
Sync
textSync
(
promptConfig
:
PromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
promptConfig
:
PromptConfig
Returns
Promise
<
Result
<
PromptResult
>
>
text
With
Retry
textWithRetry
(
promptConfig
:
PromptConfig
,
retries
:
number
,
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
promptConfig
:
PromptConfig
retries
:
number
Returns
Promise
<
Result
<
PromptResult
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
statelog
Client
Methods
_
text
Stream
_
text
Sync
check
For
Tool
Loops
check
Message
Limit
extract
Response
get
Abort
Signal
is
Abort
Error
setup
text
text
Stream
text
Sync
text
With
Retry
smoltalk
Loading...