@conciergus/chat - v0.3.1
Preparing search index...
components
useFallbackManager
Function useFallbackManager
useFallbackManager
()
:
{
fallbackManager
:
FallbackManager
;
executeWithFallback
:
<
T
>
(
chainName
:
string
|
string
[]
,
operation
:
(
modelId
:
string
,
model
:
any
)
=>
Promise
<
T
>
,
context
?:
{
query
?:
string
;
requirements
?:
{
capabilities
?:
any
[]
;
costTier
?:
"low"
|
"medium"
|
"high"
;
}
;
}
,
)
=>
Promise
<
FallbackResult
<
T
>
>
;
performanceMetrics
:
ModelPerformanceMetrics
[]
;
resetMetrics
:
()
=>
void
;
}
Hook for using fallback manager with current gateway configuration
Returns
{
fallbackManager
:
FallbackManager
;
executeWithFallback
:
<
T
>
(
chainName
:
string
|
string
[]
,
operation
:
(
modelId
:
string
,
model
:
any
)
=>
Promise
<
T
>
,
context
?:
{
query
?:
string
;
requirements
?:
{
capabilities
?:
any
[]
;
costTier
?:
"low"
|
"medium"
|
"high"
;
}
;
}
,
)
=>
Promise
<
FallbackResult
<
T
>
>
;
performanceMetrics
:
ModelPerformanceMetrics
[]
;
resetMetrics
:
()
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@conciergus/chat - v0.3.1
Loading...
Hook for using fallback manager with current gateway configuration