mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
fix(subagent): omit undefined scoped fixture options
This commit is contained in:
+9
-7
@@ -16,14 +16,16 @@ export function apply(ctx: Context, config: Config): void {
|
||||
ctx.on('agent/created', ({ agent }) => {
|
||||
agent.ctx.plugin(ToolSubagent, {
|
||||
provider: config.provider,
|
||||
toolName: config.toolName,
|
||||
modelSelectionSettings: true,
|
||||
enableRunInBackground: config.enableRunInBackground,
|
||||
backgroundMode: config.backgroundMode,
|
||||
agentOptions: config.agentOptions,
|
||||
persona: config.persona,
|
||||
toolFilter: config.toolFilter,
|
||||
maxDepth: config.maxDepth,
|
||||
...(config.toolName === undefined ? {} : { toolName: config.toolName }),
|
||||
...(config.enableRunInBackground === undefined
|
||||
? {}
|
||||
: { enableRunInBackground: config.enableRunInBackground }),
|
||||
...(config.backgroundMode === undefined ? {} : { backgroundMode: config.backgroundMode }),
|
||||
...(config.agentOptions === undefined ? {} : { agentOptions: config.agentOptions }),
|
||||
...(config.persona === undefined ? {} : { persona: config.persona }),
|
||||
...(config.toolFilter === undefined ? {} : { toolFilter: config.toolFilter }),
|
||||
...(config.maxDepth === undefined ? {} : { maxDepth: config.maxDepth }),
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user