mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-12 04:01:20 +00:00
22 lines
631 B
TypeScript
22 lines
631 B
TypeScript
import type { Inbox } from '@deepseek-ai/dsh-agent'
|
|
|
|
/**
|
|
* Create an unsupported Inbox placeholder for Agent stubs whose tests do not exercise Inbox behavior.
|
|
* @returns an Inbox whose pending lists are empty and whose mutation methods throw.
|
|
*/
|
|
export function unsupportedInbox(): Inbox {
|
|
const rejectMutation = (): never => {
|
|
throw new Error('this test Agent does not support Inbox mutations')
|
|
}
|
|
return {
|
|
nextTurn: [],
|
|
nextStep: [],
|
|
clear: rejectMutation,
|
|
append: rejectMutation,
|
|
prepend: rejectMutation,
|
|
replace: rejectMutation,
|
|
remove: rejectMutation,
|
|
splice: rejectMutation,
|
|
}
|
|
}
|