From a61730ae4c4724fc472295f2d7cc1c3c42d002c6 Mon Sep 17 00:00:00 2001 From: martin sarsale Date: Tue, 17 Jun 2025 11:20:44 -0300 Subject: [PATCH] Fix: fix types.Part.from_data to types.Part.from_bytes in docs/artifacts/index.md Fixes wrong `types.Part.from_data` to `types.Part.from_bytes` --- docs/artifacts/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/artifacts/index.md b/docs/artifacts/index.md index 634800853..0bf638c1b 100644 --- a/docs/artifacts/index.md +++ b/docs/artifacts/index.md @@ -350,7 +350,7 @@ The artifact interaction methods are available directly on instances of `Callbac async def save_generated_report_py(context: CallbackContext, report_bytes: bytes): """Saves generated PDF report bytes as an artifact.""" - report_artifact = types.Part.from_data( + report_artifact = types.Part.from_bytes( data=report_bytes, mime_type="application/pdf" )