mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
27 lines
1.3 KiB
TypeScript
27 lines
1.3 KiB
TypeScript
/** Model-visible continuation prompt for one same-session goal round. */
|
|
|
|
import type { ContentBlock } from '@deepseek-ai/dsh-llm'
|
|
import type { GoalView } from '@deepseek-ai/dsh-goal'
|
|
|
|
/**
|
|
* Render the complete goal-round instruction retained in session history.
|
|
* @param goal - exact active goal revision being admitted.
|
|
* @param round - next positive round number.
|
|
* @returns a fresh one-block prompt for `Agent.followup()`.
|
|
*/
|
|
export function renderGoalRoundPrompt(goal: GoalView, round: number): ContentBlock[] {
|
|
return [{
|
|
type: 'text',
|
|
text: '<goal_round>\n'
|
|
+ `Objective: ${JSON.stringify(goal.objective)}\n`
|
|
+ `Round: ${round}/${goal.maxGoalRounds}\n\n`
|
|
+ 'Continue working toward the objective in this same session. Treat the current workspace, '
|
|
+ 'tool results, and durable session state as authoritative; inspect them instead of assuming '
|
|
+ 'earlier narration is still current. Make concrete progress and verify the result. Before '
|
|
+ 'claiming completion, gather evidence that the whole objective is achieved, read the current '
|
|
+ 'goal, and mark it complete. If work remains, leave the goal active for the next round. Follow '
|
|
+ 'the configured goal-tool policy before reporting a blocker.\n'
|
|
+ '</goal_round>',
|
|
}]
|
|
}
|