Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

373 B
Raw Blame
import type { VerifyCodingScope } from '@lobechat/types';

import type { AcceptanceBundle } from '@/services/verify';

export const acceptanceCodingScope = (rounds: AcceptanceBundle['rounds']) =>
  [...rounds]
    .reverse()
    .find((round) => (round.run.scenario ?? 'coding') === 'coding' && round.run.context)?.run
    .context as VerifyCodingScope | null | undefined;