Skip to content

docs(sdk): Document JSON remote values, runtime credentials, and reserved env names - #984

Merged
lavanya-gunreddi merged 1 commit into
mainfrom
promptless/sdk-json-remote-values-runtime-credentials
Nov 20, 2026
Merged

lavanya-gunreddi merged 1 commit into
mainfrom
promptless/sdk-json-remote-values-runtime-credentials

Conversation

@promptless

@promptless promptless Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Open in Promptless

Motivation

The runpod-python stack #644 and #679 (part of CON-1833) changes how Runpod SDK apps pass values and authenticate:

  • Remote calls send arguments, return values, and stream chunks as finite JSON. Cloudpickle is removed, so tuples arrive as lists, non-string dictionary keys arrive as strings, and bytes, custom objects, and NaN fail with an error. .local() stays a direct Python call.
  • Deployed workers no longer receive the deployer's RUNPOD_API_KEY. They use platform-issued runtime credentials and can call only resources in their own app and environment.
  • rp flash deploy rejects reserved runtime names in a resource's env, and task mounts that overlap reserved runtime paths.
  • A new runpod.Task stub calls deployed tasks by name, and deploy output lists tasks as registered.
  • Serverless handlers that return or stream non-JSON or non-finite values fail the job with a serialization error.

Changes

  • sdk/apps/dev-sessions.mdx: Adds "Arguments and return values" and corrects the Python version explanation, which described pickled payloads.
  • sdk/apps/deploy.mdx: Documents runpod.Task, the deploy output for tasks, and the new "Calls from deployed workers" section.
  • sdk/configuration/parameters.mdx: Lists reserved env names for queue, API, and task resources.
  • sdk/configuration/storage.mdx: Lists reserved task mount paths.
  • serverless/workers/handler-functions.mdx: Documents that results that aren't valid JSON fail the job.

Before merging

#644 is still open, and #679 merged into its branch, not main. Merge this after #644 lands on main and a runpod release that includes it is published (check the runpod-python releases for a release after v2.0.0 that lists "Deployed Flash calls use endpoint or pod runtime credentials" in its changelog). The runtime side also depends on sdk-runtime#9.

Verification

  • Claims checked against runpod-python at dea0cb1.
  • Vale: no new collection errors. node scripts/validate-tooltips.js and node scripts/validate-redirect-sources.js pass.

Trigger Events


Tip: Tag @Promptless in a GitHub issue to turn it into a documentation update 🐙

Comment thread sdk/apps/deploy.mdx Resolved
Comment thread sdk/apps/deploy.mdx Resolved
@mintlify

mintlify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
runpod-docs 🟢 Ready View Preview Nov 20, 2026, 3:22 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

Comment thread sdk/apps/deploy.mdx Resolved
Comment thread sdk/configuration/parameters.mdx Resolved
Comment thread sdk/apps/dev-sessions.mdx Resolved
Comment thread sdk/apps/dev-sessions.mdx Resolved
Comment thread sdk/apps/dev-sessions.mdx Resolved
Comment thread sdk/configuration/storage.mdx Resolved
Comment thread sdk/configuration/parameters.mdx Resolved
Comment thread sdk/apps/deploy.mdx Resolved
@lavanya-gunreddi
lavanya-gunreddi merged commit 6c4f1c4 into main Nov 20, 2026
2 checks passed
@lavanya-gunreddi
lavanya-gunreddi deleted the promptless/sdk-json-remote-values-runtime-credentials branch November 20, 2026 17:25

This branch was successfully deployed

1 active deployment
staging — 11b80e4d Deployed Nov 20, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant