Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/core/src/evaluation/validation/eval-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,12 @@ function validateMessages(
continue;
}

// Content object shorthand: items with 'type' (e.g., {type: "file", value: "..."})
// but no 'role' are valid content shorthands — the runtime wraps them implicitly.
if (!('role' in message) && 'type' in message) {
continue; // Accept silently — runtime handles expansion
}

// Validate role field
const role = message.role;
const validRoles = ['system', 'user', 'assistant'];
Expand Down
Loading