smoltalk
Preparing search index...
IDStrategy
Class IDStrategy
Hierarchy (
View Summary
)
BaseStrategy
IDStrategy
Index
Constructors
constructor
Properties
model
statelog
Client?
Methods
_
text
_
text
Sync
text
text
Stream
text
Sync
to
JSON
to
Short
String
to
String
from
JSON
Constructors
constructor
new
IDStrategy
(
model
:
ModelLike
,
provider
?:
string
)
:
IDStrategy
Parameters
model
:
ModelLike
Optional
provider
:
string
Returns
IDStrategy
Properties
model
model
:
Model
Optional
statelog
Client
statelogClient
?:
StatelogClient
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
Static
from
JSON
fromJSON
(
json
:
unknown
)
:
IDStrategy
Parameters
json
:
unknown
Returns
IDStrategy
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
model
statelog
Client
Methods
_
text
_
text
Sync
text
text
Stream
text
Sync
to
JSON
to
Short
String
to
String
from
JSON
smoltalk
Loading...