smoltalk
Preparing search index...
Strategy
Interface Strategy
interface
Strategy
{
_text
(
config
:
SmolPromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
;
_textSync
(
config
:
SmolPromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
;
text
(
config
:
SmolPromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
;
textStream
(
config
:
SmolPromptConfig
,
)
:
Promise
<
Result
<
AsyncIterable
<
PromptResult
,
any
,
any
>
>
>
;
textSync
(
config
:
SmolPromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
;
toJSON
()
:
StrategyJSON
;
toShortString
()
:
string
;
toString
()
:
string
;
}
Implemented by
BaseStrategy
Index
Methods
_
text
_
text
Sync
text
text
Stream
text
Sync
to
JSON
to
Short
String
to
String
Methods
_
text
_text
(
config
:
SmolPromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
config
:
SmolPromptConfig
Returns
Promise
<
Result
<
PromptResult
>
>
_
text
Sync
_textSync
(
config
:
SmolPromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
config
:
SmolPromptConfig
Returns
Promise
<
Result
<
PromptResult
>
>
text
text
(
config
:
SmolPromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
config
:
SmolPromptConfig
Returns
Promise
<
Result
<
PromptResult
>
>
text
Stream
textStream
(
config
:
SmolPromptConfig
,
)
:
Promise
<
Result
<
AsyncIterable
<
PromptResult
,
any
,
any
>
>
>
Parameters
config
:
SmolPromptConfig
Returns
Promise
<
Result
<
AsyncIterable
<
PromptResult
,
any
,
any
>
>
>
text
Sync
textSync
(
config
:
SmolPromptConfig
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
config
:
SmolPromptConfig
Returns
Promise
<
Result
<
PromptResult
>
>
to
JSON
toJSON
()
:
StrategyJSON
Returns
StrategyJSON
to
Short
String
toShortString
()
:
string
Returns
string
to
String
toString
()
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
_
text
_
text
Sync
text
text
Stream
text
Sync
to
JSON
to
Short
String
to
String
smoltalk
Loading...