Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
25 lines
878 B
Python
25 lines
878 B
Python
# coding: utf-8
|
|
|
|
from typing import Optional
|
|
from aworld.config.conf import AgentConfig
|
|
from typing import Literal
|
|
|
|
ToolCallingMethod = Literal['function_calling', 'json_mode', 'raw', 'auto']
|
|
|
|
|
|
class BrowserAgentConfig(AgentConfig):
|
|
use_vision: bool = True
|
|
use_vision_for_planner: bool = False
|
|
save_conversation_path: Optional[str] = None
|
|
save_conversation_path_encoding: Optional[str] = 'utf-8'
|
|
max_failures: int = 3
|
|
retry_delay: int = 10
|
|
validate_output: bool = False
|
|
message_context: Optional[str] = None
|
|
generate_gif: bool | str = False
|
|
available_file_paths: Optional[list[str]] = None
|
|
override_system_message: Optional[str] = None
|
|
extend_system_message: Optional[str] = None
|
|
tool_calling_method: Optional[ToolCallingMethod] = 'auto'
|
|
max_llm_json_retries: int = 3
|
|
save_file_path: str = "browser_agent_history.json" |