update_deployment
Change a deployment's metadata, sizing, or execution mode. Provide only the fields to update; omitted fields stay as-is.
Instructions
Updates a deployment's metadata, sizing, or execution mode.
Only fields you provide are changed; omitted fields keep their current value. :param deployment_id: ID of the deployment to update. :param name: New name for the deployment. :param description: New description. :param group_label: New group label. :param deployment_mode: New execution mode, "MANAGED" or "SERVERLESS". :param service_level: New sizing tier, "PRODUCTION", "DEVELOPMENT", or "CUSTOM". :param idle_timeout_in_seconds: New idle timeout, in seconds. :param min_query_replica_count: New minimum number of query replicas. :param max_query_replica_count: New maximum number of query replicas. :param max_index_replica_count: New maximum number of index replicas. :param cpu_request: New requested CPU per replica. :param cpu_limit: New CPU limit per replica. :param memory_request: New requested memory per replica. :param memory_limit: New memory limit per replica. :param gpu_limit_gigabyte: New GPU memory limit in gigabytes. :returns: The updated deployment or error message.
All parameters accept object references in the form @obj_id or @obj_id.path.to.value.
Examples::
# Direct call with values
update_deployment(data={'key': 'value'}, threshold=10)
# Call with references
update_deployment(data='@obj_123', threshold='@obj_456.config.threshold')
# Mixed call
update_deployment(data='@obj_123.items', threshold=10)The output is automatically stored and can be referenced in other functions.
Returns a formatted preview with an object ID (e.g., @obj_123).
Use the object store tools in combination with the object ID to view nested properties of the object.
Use the returned object ID to pass this result to other functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| cpu_limit | No | ||
| cpu_request | No | ||
| description | No | ||
| group_label | No | ||
| memory_limit | No | ||
| deployment_id | Yes | ||
| service_level | No | ||
| memory_request | No | ||
| deployment_mode | No | ||
| gpu_limit_gigabyte | No | ||
| idle_timeout_in_seconds | No | ||
| max_index_replica_count | No | ||
| max_query_replica_count | No | ||
| min_query_replica_count | No |