smoltalk
Preparing search index...
SmolGoogle
Class SmolGoogle
Hierarchy
BaseClient
SmolGoogle
Implements
SmolClient
Index
Constructors
constructor
Properties
config
statelog
Client?
Methods
__
text
Sync
_
text
Stream
_
text
Sync
apply
Budget
check
For
Tool
Loops
check
Message
Limit
extract
Response
get
Abort
Signal
get
Client
get
Model
is
Abort
Error
text
text
Stream
text
Sync
text
With
Retry
Constructors
constructor
new
SmolGoogle
(
config
:
ResolvedSmolConfig
)
:
SmolGoogle
Parameters
config
:
ResolvedSmolConfig
Returns
SmolGoogle
Properties
Protected
config
config
:
ResolvedSmolConfig
Protected
Optional
statelog
Client
statelogClient
?:
StatelogClient
Methods
__
text
Sync
__textSync
(
request
:
GeneratedRequest
)
:
Promise
<
Result
<
PromptResult
>
>
Parameters
request
:
GeneratedRequest
Returns
Promise
<
Result
<
PromptResult
>
>
_
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
>
>
apply
Budget
applyBudget
(
promptConfig
:
PromptConfig
,
)
:
{
config
:
PromptConfig
;
failure
?:
Result
<
PromptResult
>
}
Parameters
promptConfig
:
PromptConfig
Returns
{
config
:
PromptConfig
;
failure
?:
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
get
Client
getClient
()
:
GoogleGenAI
Returns
GoogleGenAI
get
Model
getModel
()
:
ModelName
Returns
ModelName
Protected
is
Abort
Error
isAbortError
(
err
:
unknown
)
:
boolean
Parameters
err
:
unknown
Returns
boolean
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
Sync
_
text
Stream
_
text
Sync
apply
Budget
check
For
Tool
Loops
check
Message
Limit
extract
Response
get
Abort
Signal
get
Client
get
Model
is
Abort
Error
text
text
Stream
text
Sync
text
With
Retry
smoltalk
Loading...