Function: pickFallbackRuntimeOptions()
Makaio Framework / services-core / pickFallbackRuntimeOptions
Function: pickFallbackRuntimeOptions()
Section titled “Function: pickFallbackRuntimeOptions()”pickFallbackRuntimeOptions(
payload):FallbackRuntimeOptions
Defined in: ../../../packages/services/core/src/session/fallback-runtime-options.ts:31
Picks fallback-relevant runtime options from an object that carries
AdapterRuntimeOptions-compatible fields.
Covers both adapter.startAgent payloads (which merge AdapterRuntimeOptionsSchema
at the top level) and caller-extracted agent sub-objects from
session.agent.attach payloads (which carry the same fields on AgentSelectionBase).
Only defined fields are included — omitted keys are not forwarded to avoid
overwriting adapter or schema defaults with undefined.
Parameters
Section titled “Parameters”payload
Section titled “payload”Partial<Pick<AdapterRuntimeOptions, "cwd" | "systemPrompt" | "allowedTools" | "disallowedTools">>
Object carrying the runtime option fields
Returns
Section titled “Returns”Sparse runtime options object used for fallback attach