Skip to content

wait_between_actions in AgentExecuteOptions unused #200

@aditya-silna

Description

@aditya-silna

class AgentExecuteOptions(StagehandBaseModel):
"""
Options for agent execution.

Attributes:
    instruction (str): The task instruction for the agent.
    max_steps (Optional[int]): Maximum number of steps the agent can take.
    auto_screenshot (Optional[bool]): Whether to automatically take screenshots between steps.
    wait_between_actions (Optional[int]): Milliseconds to wait between actions.
    context (Optional[str]): Additional context for the agent.
"""

instruction: str = Field(..., description="The task instruction for the agent.")
max_steps: Optional[int] = None
auto_screenshot: Optional[bool] = None
wait_between_actions: Optional[int] = None
context: Optional[str] = None

wait_between_actions seems to be unused in the actual agent logic in the handler. Can this be implemented? Particularly would be very useful for our use case (dropdowns loading options after a delay)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions