发布

  • Agent max clickable parameter (#4107)

    frostbyte_neo 发布于 2026-02-17 02:38:18 +00:00

    Expose max_clickable_elements_length as a configurable parameter in
    the Agent and bump the version.

    This parameter controls the maximum length of clickable elements text
    included in the agent's prompt, allowing users to adjust the level of
    detail or manage prompt token usage.


    Slack
    Thread

    Open in Cursor Open in Web


    Summary by cubic

    Adds a new Agent setting, max_clickable_elements_length, to cap
    clickable element text in prompts and control token usage. Defaults to
    40000; behavior is unchanged unless you override it.

    • New Features
    • AgentSettings now includes max_clickable_elements_length (default
      40000).
    • Agent accepts the parameter and passes it through MessageManager to
      prompt creation.
      • Bumped package version to 0.11.10a2.

    Written for commit 270e418cea.
    Summary will update on new commits.

    下载附件