Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bojieli/ai-agent-book
/ types & classes
Types & classes
1,574 in github.com/bojieli/ai-agent-book
⨍
Functions
13,003
◇
Types & classes
1,574
↳
Endpoints
161
↓ 112 callers
Class
Figure
scripts/book_figures/introduction.py:10
↓ 97 callers
Class
Agent
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:127
↓ 97 callers
Class
BrowserProfile
A BrowserProfile is a static template collection of kwargs that can be passed to: - BrowserType.launch(**BrowserLaunchArgs) - BrowserType.connec
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:527
↓ 95 callers
Class
BrowserSession
Event-driven browser session with backwards compatibility. This class provides a 2-layer architecture: - High-level event handling for agents/tools
chapter9/browser-use-rpa/browser-use/browser_use/browser/session.py:190
↓ 91 callers
Class
CostEfficiencyAnalyzer
Analyze the cost-efficiency of a recorded agent trajectory. Parameters ---------- pricing: Per-million-token USD prices with keys
chapter7/agent-cost-analysis/cost_efficiency_analyzer.py:72
↓ 86 callers
Class
ActionResult
Result of executing an action
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:90
↓ 70 callers
Class
AccessContext
Identity and attributes of the accessor.
chapter5/permission-embedded-data-objects/pedo/core/models.py:80
↓ 67 callers
Class
DataObject
A permission-embedded data object instance.
chapter5/permission-embedded-data-objects/pedo/core/models.py:120
↓ 66 callers
Class
ChatOpenAI
A wrapper around AsyncOpenAI that implements the BaseLLM protocol. This class accepts all AsyncOpenAI parameters while adding model and temperatu
chapter9/browser-use-rpa/browser-use/browser_use/llm/openai/chat.py:25
↓ 63 callers
Class
SFTDataQualityAuditor
Audit SFT JSONL training data for common quality issues. Parameters ---------- max_length: Approximate token (word) count above w
chapter8/cot-distillation/sft_data_auditor.py:101
↓ 60 callers
Class
ActionResponse
Standard response format for all perception tool actions.
chapter4/perception-tools/src/base.py:16
↓ 59 callers
Class
TextContent
chapter4/perception-tools/src/test_negative_max_length.py:15
↓ 54 callers
Class
NavigateToUrlEvent
Navigate to a specific URL.
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:111
↓ 39 callers
Class
GoToUrlAction
chapter9/browser-use-rpa/browser-use/browser_use/tools/views.py:11
↓ 36 callers
Class
NotificationDispatcher
Unified multi-channel dispatcher and HITL timeout policy engine. By default, built-in channels (telegram, slack, email, webhook) are wired to
chapter4/collaboration-tools/src/notification_dispatcher.py:105
↓ 35 callers
Class
ContextAwareAgent
AI Agent with configurable LLM providers and context modes for ablation studies
chapter1/context/agent.py:377
↓ 35 callers
Class
GrepTool
Pure Python grep implementation
chapter5/coding-agent/tools/grep_tool.py:14
↓ 34 callers
Class
DuplexInterruptionManager
Manages real-time interruption (barge-in) detection and handling for duplex speech systems. Monitors user audio input streams via VAD energy
chapter6/streaming-speech/interruption_manager.py:51
↓ 34 callers
Class
Tools
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:102
↓ 33 callers
Class
DownstreamAblationEngine
Evaluates baseline vs. self-evolved agent performance across task suites.
chapter9/hermes-self-evolution/run_downstream_ablation.py:83
↓ 30 callers
Class
SafetyPolicyGate
Harness Safety Policy Gate for tool call security inspection and confirmation.
chapter9/harness-safety-gate/safety_policy_gate.py:46
↓ 29 callers
Class
ObjectStore
Permission-embedded data object store with three-tier pipeline. Tier 1: Permission checks + read-only validators (synchronous, gates operation)
chapter5/permission-embedded-data-objects/pedo/core/store.py:46
↓ 29 callers
Class
UserMessage
chapter9/browser-use-rpa/browser-use/browser_use/llm/messages.py:135
↓ 27 callers
Class
ChatGoogle
A wrapper around Google's Gemini chat model using the genai client. This class accepts all genai.Client parameters while adding model, temperatur
chapter9/browser-use-rpa/browser-use/browser_use/llm/google/chat.py:41
↓ 27 callers
Class
MultilingualReasoningEvaluator
Evaluates reasoning LLMs across multiple languages. Computes: - CoT Language Fidelity Score: Consistency of reasoning steps with target langu
chapter8/MultilingualReasoning/evaluate_multilingual.py:158
↓ 26 callers
Class
HybridStructuredRetriever
Retriever that merges RAPTOR tree summaries and GraphRAG graph summaries into a hybrid index. Supports Reciprocal Rank Fusion (RRF) across hi
chapter3/structured-index/hybrid_retriever.py:69
↓ 26 callers
Class
PEDOSecurityEvaluator
Evaluates agent-generated queries and mutations against PEDO access control models. When a ``store`` (ObjectStore) or ``dsn`` is provided, the ev
chapter5/permission-embedded-data-objects/run_live_security_eval.py:168
↓ 25 callers
Class
SecurityScenario
A test scenario for evaluating PEDO security policies.
chapter5/permission-embedded-data-objects/run_live_security_eval.py:126
↓ 24 callers
Class
AblationTask
A task in the ablation evaluation suite.
chapter9/hermes-self-evolution/run_downstream_ablation.py:27
↓ 24 callers
Class
BashTool
Executes bash commands in persistent shell sessions
chapter5/coding-agent/tools/bash_tool.py:11
↓ 24 callers
Class
DeviceAuthClient
Client for OAuth2 device authorization flow
chapter9/browser-use-rpa/browser-use/browser_use/sync/auth.py:87
↓ 24 callers
Class
PermissionRule
A single permission rule in the filter chain.
chapter5/permission-embedded-data-objects/pedo/core/models.py:37
↓ 23 callers
Class
AccessContext
chapter5/permission-embedded-data-objects/run_live_security_eval.py:59
↓ 23 callers
Class
ObjectType
Schema definition for a type of object.
chapter5/permission-embedded-data-objects/pedo/core/models.py:107
↓ 23 callers
Class
RateRampBenchmark
Simulates or executes multi-concurrency rate-ramping load tests on LLM endpoints. Measures: - 429 rate limit backoff curves (attempts, rate l
chapter7/model-benchmark/rate_ramp_benchmark.py:42
↓ 20 callers
Class
Usage
chapter7/user-memory-system-evaluation/experiment.py:41
↓ 19 callers
Class
RetrievalStageEvaluator
Measure how much each stage of a retrieval pipeline contributes. The evaluator is stage-agnostic: it works with any ordered set of stages who
chapter3/retrieval-pipeline/stage_evaluator.py:148
↓ 18 callers
Class
EloRatingSystem
Implementation of Elo rating system for model comparison. The Elo system updates ratings based on pairwise comparison outcomes, wher
chapter7/elo-leaderboard/elo_rating.py:9
↓ 18 callers
Class
FileSystem
Enhanced file system with in-memory storage and multiple file type support
chapter9/browser-use-rpa/browser-use/browser_use/filesystem/file_system.py:167
↓ 18 callers
Class
Registry
Service for registering and managing actions
chapter9/browser-use-rpa/browser-use/browser_use/tools/registry/service.py:32
↓ 18 callers
Class
SecurityWatchdog
Monitors and enforces security policies for URL access.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/security_watchdog.py:22
↓ 18 callers
Class
TreasureHuntGame
A text-based game with hidden mechanics that agents must discover: 1. Certain colored keys open corresponding colored doors 2. Guards blo
chapter1/learning-from-experience/game_environment.py:39
↓ 17 callers
Class
LLMHelper
Helper class for LLM-based operations.
chapter4/execution-tools/llm_helper.py:45
↓ 17 callers
Class
ReadTool
Reads files from the local filesystem
chapter5/coding-agent/tools/read_tool.py:11
↓ 16 callers
Class
MultimodalAgent
Main agent class supporting multiple extraction modes
chapter4/multimodal-agent/agent.py:303
↓ 16 callers
Class
TimeoutError
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:263
↓ 15 callers
Class
BilingualConsistencyAuditor
Auditor for checking consistency between source and translated technical Markdown files.
chapter10/book-translation/consistency_auditor.py:87
↓ 15 callers
Class
CloudSync
Service for syncing events to the Browser Use cloud
chapter9/browser-use-rpa/browser-use/browser_use/sync/service.py:18
↓ 15 callers
Class
MultiEditTool
Makes multiple edits to a single file in one operation
chapter5/coding-agent/tools/multi_edit_tool.py:11
↓ 15 callers
Class
PromptInjectionRobustnessEvaluator
量化 Agent 对提示注入攻击的抵抗能力。 Parameters: agent_response_fn: 接收攻击载荷、返回 Agent 回复文本的回调。 为 ``None`` 时使用内置的确定性 mock(模拟一个稳健防御的
chapter2/prompt-injection/robustness_evaluator.py:107
↓ 14 callers
Class
DecisionRequest
Request object for Human-in-the-Loop approval/decision.
chapter4/collaboration-tools/src/notification_dispatcher.py:24
↓ 14 callers
Class
DimensionResult
chapter9/trajectory-verifier/verifier.py:21
↓ 14 callers
Class
ReactionDeclaration
A declared reaction that fires after a successful write.
chapter5/permission-embedded-data-objects/pedo/core/models.py:100
↓ 14 callers
Class
SystemHintAgent
AI Agent with enhanced system hints for better trajectory management
chapter2/system-hint/agent.py:84
↓ 14 callers
Class
SystemHintConfig
Configuration for system hints
chapter2/system-hint/agent.py:71
↓ 14 callers
Class
SystemMessage
chapter9/browser-use-rpa/browser-use/browser_use/llm/messages.py:168
↓ 14 callers
Class
SystemState
System state tracking for system hints
chapter5/coding-agent/system_state.py:13
↓ 13 callers
Class
ChatInvokeCompletion
Response from a chat model invocation.
chapter9/browser-use-rpa/browser-use/browser_use/llm/views.py:32
↓ 13 callers
Class
EditTool
Performs exact string replacements in files
chapter5/coding-agent/tools/edit_tool.py:11
↓ 13 callers
Class
FieldSpec
chapter10/autonomous-phone-registration/models.py:16
↓ 13 callers
Class
LLMAgent
LLM-based agent that uses in-context learning to play the game. Stores experiences and uses them to reason about future actions.
chapter1/learning-from-experience/llm_agent.py:63
↓ 13 callers
Class
LanguageExecutor
Multi-language code executor.
chapter4/execution-tools/multilang_executor.py:95
↓ 13 callers
Class
MockPEDOStore
Minimal mock of pedo.core.store.ObjectStore for live evaluator tests. Implements query/get/create/update/delete with permission checks that r
tests/test_ch5_pedo_live_security_eval.py:279
↓ 13 callers
Class
ModelProviderError
Exception raised when a model provider returns an error.
chapter9/browser-use-rpa/browser-use/browser_use/llm/exceptions.py:5
↓ 13 callers
Class
MultimodalContent
Container for multimodal content
chapter4/multimodal-agent/agent.py:50
↓ 13 callers
Class
NotebookEditTool
Completely replaces the contents of a specific cell in a Jupyter notebook
chapter5/coding-agent/tools/notebook_edit_tool.py:11
↓ 13 callers
Class
ProductTelemetry
Service for capturing anonymized telemetry data. If the environment variable `ANONYMIZED_TELEMETRY=False`, anonymized telemetry will be disabled.
chapter9/browser-use-rpa/browser-use/browser_use/telemetry/service.py:24
↓ 12 callers
Class
CreateAgentTaskEvent
chapter9/browser-use-rpa/browser-use/browser_use/agent/cloud_events.py:185
↓ 12 callers
Class
GPT5NativeAgent
GPT-5.6 Sol with OpenAI-hosted web search and Python tools.
chapter1/search-codegen/agent.py:21
↓ 12 callers
Class
LSTool
Lists files and directories
chapter5/coding-agent/tools/ls_tool.py:12
↓ 12 callers
Class
Message
chapter2/prompt-engineering/tau_bench/model_utils/model/chat.py:40
↓ 12 callers
Class
ReportingEnvironment
Small, auditable tool environment backed by a CSV file.
chapter7/public-health-reporting-eval/reporting_tools.py:20
↓ 12 callers
Class
SemanticRouter
Hierarchical semantic routing for tool discovery.
chapter4/active-tool-selection/semantic_router.py:20
↓ 11 callers
Class
BrowserStartEvent
Start/connect to browser.
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:288
↓ 11 callers
Class
ChatAnthropic
A wrapper around Anthropic's chat model.
chapter9/browser-use-rpa/browser-use/browser_use/llm/anthropic/chat.py:33
↓ 11 callers
Class
MemoryIndexer
Indexes and searches conversation chunks using the retrieval pipeline service
chapter3/agentic-rag-for-user-memory/indexer.py:117
↓ 11 callers
Class
MessageBus
异步消息总线:注册订阅者、投递信封、打印消息流日志。
chapter10/parallel-web-research/message_bus.py:92
↓ 11 callers
Class
ViewportSize
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:178
↓ 11 callers
Class
WriteTool
Writes files to the local filesystem
chapter5/coding-agent/tools/write_tool.py:11
↓ 10 callers
Class
AssistantMessage
chapter9/browser-use-rpa/browser-use/browser_use/llm/messages.py:196
↓ 10 callers
Class
BrowserStopEvent
Stop/disconnect from browser.
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:297
↓ 10 callers
Class
ClickElementAction
chapter9/browser-use-rpa/browser-use/browser_use/tools/views.py:16
↓ 10 callers
Class
ConversationChunk
A chunk of conversation with metadata
chapter3/contextual-retrieval-for-user-memory/chunker.py:33
↓ 10 callers
Class
ConversationMessage
Single message in a conversation
chapter3/contextual-retrieval-for-user-memory/chunker.py:22
↓ 10 callers
Class
DataObject
chapter5/permission-embedded-data-objects/run_live_security_eval.py:103
↓ 10 callers
Class
GlobTool
Fast file pattern matching tool
chapter5/coding-agent/tools/glob_tool.py:11
↓ 10 callers
Class
GoToUrlActionModel
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:69
↓ 10 callers
Class
GoToUrlActionModel
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:137
↓ 10 callers
Class
InvertedIndex
Inverted index data structure for efficient term lookup
chapter3/sparse-embedding/bm25_engine.py:121
↓ 10 callers
Class
LLMEvaluator
LLM-based evaluator for agent responses.
chapter3/user-memory-evaluation/evaluator.py:27
↓ 10 callers
Class
TodoWriteTool
Creates and manages structured task lists
chapter5/coding-agent/tools/todo_write_tool.py:9
↓ 10 callers
Class
TrajectoryVerifier
chapter9/trajectory-verifier/verifier.py:367
↓ 10 callers
Class
UserMemoryEvaluationFramework
Framework for evaluating user memory capabilities of AI agents.
chapter3/user-memory-evaluation/framework.py:23
↓ 9 callers
Class
ActiveToolAgent
Agent that actively discovers and requests tools as needed. Key principles: 1. Maintains minimal context by not injecting all tools
chapter4/active-tool-selection/agent.py:16
↓ 9 callers
Class
BrowserError
Browser error with structured memory for LLM context management. This exception class provides separate memory contexts for browser actions: - shor
chapter9/browser-use-rpa/browser-use/browser_use/browser/views.py:128
↓ 9 callers
Class
BrowserErrorEvent
An error occurred in the browser layer.
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:460
↓ 9 callers
Class
ByteLevelTokenizer
chapter2/attention_visualization/test_token_labels.py:11
↓ 9 callers
Class
FileTools
File system tools with verification and safety checks.
chapter4/execution-tools/file_tools.py:11
↓ 9 callers
Class
KVCacheAgent
ReAct Agent with different KV cache optimization modes
chapter2/kv-cache/agent.py:352
↓ 9 callers
Class
KnowledgeBase
Manages storage and retrieval of learned workflows. The knowledge base provides: - Persistent storage of workflows - Intent matc
chapter9/browser-use-rpa/learning_agent/knowledge_base.py:31
next →
1–100 of 1,574, ranked by callers