mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
18 lines
504 B
TypeScript
18 lines
504 B
TypeScript
/** Test-only Loader plugin that creates a goal at the first real step edge. */
|
|
|
|
import type { Context } from 'cordis'
|
|
import type {} from '@deepseek-ai/dsh-goal'
|
|
|
|
export const name = 'seed-goal'
|
|
export const inject = ['goals']
|
|
|
|
export function apply(ctx: Context): void {
|
|
ctx.on('agent/pre-step', (agent) => {
|
|
if (ctx.goals.get(agent) !== undefined) return
|
|
ctx.goals.create(agent, {
|
|
objective: 'Prove the composed goal survives in the session log',
|
|
maxGoalRounds: 7,
|
|
})
|
|
})
|
|
}
|