agentscope-ai / agentscope-ai/agentscope-runtime
[Question] How to set custom headers and read cookie information to maintain login status in a browser sandbox
Đang mở
question
- Ngôn ngữ chính
- Python
- Star
- 863
- Fork
- 168
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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,
):
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.