Skip to content

Commit

Permalink
🔄 synced local 'skyvern/' with remote 'skyvern/'
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Allow `max_iterations_override` to be `int`, `str`, or `None` in `cloud_async_executor.py`, `agent_protocol.py`, and `temporal_workflow_parameters.py`.
>
>   - **Behavior**:
>     - `max_iterations_override` parameter in `execute_cruise()` in `cloud_async_executor.py` now accepts `int`, `str`, or `None`.
>     - `x_max_iterations_override` in `observer_task()` in `agent_protocol.py` updated to accept `int`, `str`, or `None`.
>   - **Parameters**:
>     - `RunObserverCruiseParams` in `temporal_workflow_parameters.py` updated to allow `max_iterations_override` as `int`, `str`, or `None`.
>   - **Misc**:
>     - Converts `max_iterations_override` to string in `execute_cruise()` if not `None`.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for af7d96e106b68cabe37978d512777db1d99da274. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
wintonzheng committed Feb 6, 2025
1 parent 0d5d726 commit 2c7155d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/forge/sdk/routes/agent_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ async def observer_task(
background_tasks: BackgroundTasks,
data: ObserverTaskRequest,
organization: Organization = Depends(org_auth_service.get_current_org),
x_max_iterations_override: Annotated[int | None, Header()] = None,
x_max_iterations_override: Annotated[int | str | None, Header()] = None,
) -> dict[str, Any]:
if x_max_iterations_override:
LOG.info("Overriding max iterations for observer", max_iterations_override=x_max_iterations_override)
Expand Down

0 comments on commit 2c7155d

Please sign in to comment.