ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
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

This commit is contained in:
2026-08-20 13:12:50 +00:00
commit b119135836
10275 changed files with 3284984 additions and 0 deletions
@@ -0,0 +1,25 @@
# 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"