agentscope-ai / agentscope-ai/agentscope-runtime

[Question] How to set custom headers and read cookie information to maintain login status in a browser sandbox

未关闭
#363 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
Python
星标
863
派生
168
PR 合并指标
30 天内没有已合并 PR

描述

I noticed that BrowserSandbox does not provide tools for custom headers or reading cookies. How can these functionalities be implemented?

and I see BrowserSandbox has attribute "timeout", what it means and how can I change "timeout"

class BrowserSandbox(GUIMixin, BaseSandbox):
def __init__( # pylint: disable=useless-parent-delegation
self,
sandbox_id: Optional[str] = None,
timeout: int = 3000,
base_url: Optional[str] = None,
bearer_token: Optional[str] = None,
sandbox_type: SandboxType = SandboxType.BROWSER,
):

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。