Function: setDefaults()
setDefaults(
patch):void
Defined in: packages/core/src/core/defaults.ts:127
Set process-wide defaults, merged over whatever is already set.
Call it once at startup. A library should not: it is the host's to own, and
an invocation-scoped ProcessOptions.defaults is the polite way to steer one
run.
Parameters
patch
Returns
void
Example
import { setDefaults } from '@baleybots/core';
import '@baleybots/core/providers/typesafe';
setDefaults({
generation: { model: openai('gpt-5.6-luna') },
decisions: { model: { id: 'jev', provider: 'typesafe', config: { apiKey: KEY } } },
});