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 摘要。