From 44dc1c50e0f54259e61aee7b654c98ecdbd8ef1f Mon Sep 17 00:00:00 2001 From: Jeremy Mathon Date: Wed, 1 Oct 2025 15:25:03 -0700 Subject: [PATCH] fix: add maxTotalChargeUsd run option --- src/resource_clients/actor.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/resource_clients/actor.ts b/src/resource_clients/actor.ts index 195c42b0..168b5556 100644 --- a/src/resource_clients/actor.ts +++ b/src/resource_clients/actor.ts @@ -396,7 +396,12 @@ export interface ActorStartOptions { */ maxItems?: number; - // TODO(PPE): add maxTotalChargeUsd after finished + /** + * Specifies the maximum cost of the Actor run. + * This parameter is useful for pay-per-event Actors, as it allows you to limit the amount charged to your subscription. + * Value can be accessed in actor run using `ACTOR_MAX_TOTAL_CHARGE_USD` environment variable. + */ + maxTotalChargeUsd?: number; /** * Override the Actor's permissions for this run. If not set, the Actor will run with permissions configured in the