toggle menu
Embabel Agent Documentation
JVM
switch theme
search in API
Embabel Agent Documentation
/
com.embabel.common.ai.model
/
ModelSelectionContextHolder
/
with
with
fun
<
T
>
with
(
context
:
ModelSelectionContext
,
block
:
(
)
->
T
)
:
T
Run
block
with
context
active, restoring the previous context afterwards.