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ở
#363 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.