agentscope-ai / agentscope-ai/agentscope-runtime
[Question] How to set custom headers and read cookie information to maintain login status in a browser sandbox
Open
question
- Dominant language
- Python
- Stars
- 863
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
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,
):
Contributor guide
Assessment
This issue has not been assessed yet.