Applies to:
Summary
Goal: Access log attachment data within Python custom scorers using the ReadonlyAttachment class. Features: Custom scorers, ReadonlyAttachment class, attachment data retrieval methods.Configuration Steps
Step 1: Import ReadonlyAttachment
Import the ReadonlyAttachment class from the Braintrust logger module.Step 2: Access attachment in scorer
Attachment objects in scorer parameters contain metadata only; use ReadonlyAttachment methods to retrieve actual data.Step3: Test
