smoltalk
Preparing search index...
SmolClient
Interface SmolClient
interface
SmolClient
{
_textStream
(
config
:
PromptConfig
)
:
AsyncGenerator
<
StreamChunk
>
;
_textSync
(
config
:
PromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
;
text
(
promptConfig
:
PromptConfig
,
)
:
Promise
<
Result
<
PromptResult
>
>
|
AsyncGenerator
<
StreamChunk
,
any
,
any
>
;
textStream
(
config
:
PromptConfig
)
:
AsyncGenerator
<
StreamChunk
>
;
textSync
(
config
:
PromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
;
}
Implemented by
SmolAnthropic
SmolGoogle
SmolOpenAi
SmolOpenAiResponses
Index
Methods
_
text
Stream
_
text
Sync
text
text
Stream
text
Sync
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
>
>
text
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
(
config
:
PromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
config
:
PromptConfig
Returns
Promise
<
Result
<
PromptResult
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
_
text
Stream
_
text
Sync
text
text
Stream
text
Sync
smoltalk
Loading...