Skip to content

Add attachment upload operation to the API client - #168

Merged
Stephen Belanger (Qard) merged 4 commits into
mainfrom
feat/attachment-upload-client
Nov 17, 2026
Merged

Stephen Belanger (Qard) merged 4 commits into
mainfrom
feat/attachment-upload-client

Conversation

@Qard

Copy link
Copy Markdown
Contributor

Add upload_attachment to the API client's non-generated backend operations so callers can upload files without implementing the signed-upload protocol themselves. The method requests a slot, sends bytes with only the returned storage headers, and marks the attachment ready after upload succeeds.

Tests cover credential isolation and retry after a failed upload. All 12 backend operation tests and strict Clippy for the API client passed.

Supports SDK-834 and braintrustdata/braintrust-coding-agent-plugins#293.

@Qard
Stephen Belanger (Qard) merged commit c029f03 into main Nov 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants