MCPcopy Create free account

hub / github.com/bojieli/ai-agent-book / types & classes

Types & classes1,574 in github.com/bojieli/ai-agent-book

↓ 112 callersClassFigure
scripts/book_figures/introduction.py:10
↓ 97 callersClassAgent
chapter9/browser-use-rpa/browser-use/browser_use/agent/service.py:127
↓ 97 callersClassBrowserProfile
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 callersClassBrowserSession
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 callersClassCostEfficiencyAnalyzer
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 callersClassActionResult
Result of executing an action
chapter9/browser-use-rpa/browser-use/browser_use/agent/views.py:90
↓ 70 callersClassAccessContext
Identity and attributes of the accessor.
chapter5/permission-embedded-data-objects/pedo/core/models.py:80
↓ 67 callersClassDataObject
A permission-embedded data object instance.
chapter5/permission-embedded-data-objects/pedo/core/models.py:120
↓ 66 callersClassChatOpenAI
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 callersClassSFTDataQualityAuditor
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 callersClassActionResponse
Standard response format for all perception tool actions.
chapter4/perception-tools/src/base.py:16
↓ 59 callersClassTextContent
chapter4/perception-tools/src/test_negative_max_length.py:15
↓ 54 callersClassNavigateToUrlEvent
Navigate to a specific URL.
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:111
↓ 39 callersClassGoToUrlAction
chapter9/browser-use-rpa/browser-use/browser_use/tools/views.py:11
↓ 36 callersClassNotificationDispatcher
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 callersClassContextAwareAgent
AI Agent with configurable LLM providers and context modes for ablation studies
chapter1/context/agent.py:377
↓ 35 callersClassGrepTool
Pure Python grep implementation
chapter5/coding-agent/tools/grep_tool.py:14
↓ 34 callersClassDuplexInterruptionManager
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 callersClassTools
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:102
↓ 33 callersClassDownstreamAblationEngine
Evaluates baseline vs. self-evolved agent performance across task suites.
chapter9/hermes-self-evolution/run_downstream_ablation.py:83
↓ 30 callersClassSafetyPolicyGate
Harness Safety Policy Gate for tool call security inspection and confirmation.
chapter9/harness-safety-gate/safety_policy_gate.py:46
↓ 29 callersClassObjectStore
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 callersClassUserMessage
chapter9/browser-use-rpa/browser-use/browser_use/llm/messages.py:135
↓ 27 callersClassChatGoogle
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 callersClassMultilingualReasoningEvaluator
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 callersClassHybridStructuredRetriever
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 callersClassPEDOSecurityEvaluator
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 callersClassSecurityScenario
A test scenario for evaluating PEDO security policies.
chapter5/permission-embedded-data-objects/run_live_security_eval.py:126
↓ 24 callersClassAblationTask
A task in the ablation evaluation suite.
chapter9/hermes-self-evolution/run_downstream_ablation.py:27
↓ 24 callersClassBashTool
Executes bash commands in persistent shell sessions
chapter5/coding-agent/tools/bash_tool.py:11
↓ 24 callersClassDeviceAuthClient
Client for OAuth2 device authorization flow
chapter9/browser-use-rpa/browser-use/browser_use/sync/auth.py:87
↓ 24 callersClassPermissionRule
A single permission rule in the filter chain.
chapter5/permission-embedded-data-objects/pedo/core/models.py:37
↓ 23 callersClassAccessContext
chapter5/permission-embedded-data-objects/run_live_security_eval.py:59
↓ 23 callersClassObjectType
Schema definition for a type of object.
chapter5/permission-embedded-data-objects/pedo/core/models.py:107
↓ 23 callersClassRateRampBenchmark
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 callersClassUsage
chapter7/user-memory-system-evaluation/experiment.py:41
↓ 19 callersClassRetrievalStageEvaluator
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 callersClassEloRatingSystem
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 callersClassFileSystem
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 callersClassRegistry
Service for registering and managing actions
chapter9/browser-use-rpa/browser-use/browser_use/tools/registry/service.py:32
↓ 18 callersClassSecurityWatchdog
Monitors and enforces security policies for URL access.
chapter9/browser-use-rpa/browser-use/browser_use/browser/watchdogs/security_watchdog.py:22
↓ 18 callersClassTreasureHuntGame
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 callersClassLLMHelper
Helper class for LLM-based operations.
chapter4/execution-tools/llm_helper.py:45
↓ 17 callersClassReadTool
Reads files from the local filesystem
chapter5/coding-agent/tools/read_tool.py:11
↓ 16 callersClassMultimodalAgent
Main agent class supporting multiple extraction modes
chapter4/multimodal-agent/agent.py:303
↓ 16 callersClassTimeoutError
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:263
↓ 15 callersClassBilingualConsistencyAuditor
Auditor for checking consistency between source and translated technical Markdown files.
chapter10/book-translation/consistency_auditor.py:87
↓ 15 callersClassCloudSync
Service for syncing events to the Browser Use cloud
chapter9/browser-use-rpa/browser-use/browser_use/sync/service.py:18
↓ 15 callersClassMultiEditTool
Makes multiple edits to a single file in one operation
chapter5/coding-agent/tools/multi_edit_tool.py:11
↓ 15 callersClassPromptInjectionRobustnessEvaluator
量化 Agent 对提示注入攻击的抵抗能力。 Parameters: agent_response_fn: 接收攻击载荷、返回 Agent 回复文本的回调。 为 ``None`` 时使用内置的确定性 mock(模拟一个稳健防御的
chapter2/prompt-injection/robustness_evaluator.py:107
↓ 14 callersClassDecisionRequest
Request object for Human-in-the-Loop approval/decision.
chapter4/collaboration-tools/src/notification_dispatcher.py:24
↓ 14 callersClassDimensionResult
chapter9/trajectory-verifier/verifier.py:21
↓ 14 callersClassReactionDeclaration
A declared reaction that fires after a successful write.
chapter5/permission-embedded-data-objects/pedo/core/models.py:100
↓ 14 callersClassSystemHintAgent
AI Agent with enhanced system hints for better trajectory management
chapter2/system-hint/agent.py:84
↓ 14 callersClassSystemHintConfig
Configuration for system hints
chapter2/system-hint/agent.py:71
↓ 14 callersClassSystemMessage
chapter9/browser-use-rpa/browser-use/browser_use/llm/messages.py:168
↓ 14 callersClassSystemState
System state tracking for system hints
chapter5/coding-agent/system_state.py:13
↓ 13 callersClassChatInvokeCompletion
Response from a chat model invocation.
chapter9/browser-use-rpa/browser-use/browser_use/llm/views.py:32
↓ 13 callersClassEditTool
Performs exact string replacements in files
chapter5/coding-agent/tools/edit_tool.py:11
↓ 13 callersClassFieldSpec
chapter10/autonomous-phone-registration/models.py:16
↓ 13 callersClassLLMAgent
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 callersClassLanguageExecutor
Multi-language code executor.
chapter4/execution-tools/multilang_executor.py:95
↓ 13 callersClassMockPEDOStore
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 callersClassModelProviderError
Exception raised when a model provider returns an error.
chapter9/browser-use-rpa/browser-use/browser_use/llm/exceptions.py:5
↓ 13 callersClassMultimodalContent
Container for multimodal content
chapter4/multimodal-agent/agent.py:50
↓ 13 callersClassNotebookEditTool
Completely replaces the contents of a specific cell in a Jupyter notebook
chapter5/coding-agent/tools/notebook_edit_tool.py:11
↓ 13 callersClassProductTelemetry
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 callersClassCreateAgentTaskEvent
chapter9/browser-use-rpa/browser-use/browser_use/agent/cloud_events.py:185
↓ 12 callersClassGPT5NativeAgent
GPT-5.6 Sol with OpenAI-hosted web search and Python tools.
chapter1/search-codegen/agent.py:21
↓ 12 callersClassLSTool
Lists files and directories
chapter5/coding-agent/tools/ls_tool.py:12
↓ 12 callersClassMessage
chapter2/prompt-engineering/tau_bench/model_utils/model/chat.py:40
↓ 12 callersClassReportingEnvironment
Small, auditable tool environment backed by a CSV file.
chapter7/public-health-reporting-eval/reporting_tools.py:20
↓ 12 callersClassSemanticRouter
Hierarchical semantic routing for tool discovery.
chapter4/active-tool-selection/semantic_router.py:20
↓ 11 callersClassBrowserStartEvent
Start/connect to browser.
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:288
↓ 11 callersClassChatAnthropic
A wrapper around Anthropic's chat model.
chapter9/browser-use-rpa/browser-use/browser_use/llm/anthropic/chat.py:33
↓ 11 callersClassMemoryIndexer
Indexes and searches conversation chunks using the retrieval pipeline service
chapter3/agentic-rag-for-user-memory/indexer.py:117
↓ 11 callersClassMessageBus
异步消息总线:注册订阅者、投递信封、打印消息流日志。
chapter10/parallel-web-research/message_bus.py:92
↓ 11 callersClassViewportSize
chapter9/browser-use-rpa/browser-use/browser_use/browser/profile.py:178
↓ 11 callersClassWriteTool
Writes files to the local filesystem
chapter5/coding-agent/tools/write_tool.py:11
↓ 10 callersClassAssistantMessage
chapter9/browser-use-rpa/browser-use/browser_use/llm/messages.py:196
↓ 10 callersClassBrowserStopEvent
Stop/disconnect from browser.
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:297
↓ 10 callersClassClickElementAction
chapter9/browser-use-rpa/browser-use/browser_use/tools/views.py:16
↓ 10 callersClassConversationChunk
A chunk of conversation with metadata
chapter3/contextual-retrieval-for-user-memory/chunker.py:33
↓ 10 callersClassConversationMessage
Single message in a conversation
chapter3/contextual-retrieval-for-user-memory/chunker.py:22
↓ 10 callersClassDataObject
chapter5/permission-embedded-data-objects/run_live_security_eval.py:103
↓ 10 callersClassGlobTool
Fast file pattern matching tool
chapter5/coding-agent/tools/glob_tool.py:11
↓ 10 callersClassGoToUrlActionModel
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:69
↓ 10 callersClassGoToUrlActionModel
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_ClickElementEvent.py:137
↓ 10 callersClassInvertedIndex
Inverted index data structure for efficient term lookup
chapter3/sparse-embedding/bm25_engine.py:121
↓ 10 callersClassLLMEvaluator
LLM-based evaluator for agent responses.
chapter3/user-memory-evaluation/evaluator.py:27
↓ 10 callersClassTodoWriteTool
Creates and manages structured task lists
chapter5/coding-agent/tools/todo_write_tool.py:9
↓ 10 callersClassTrajectoryVerifier
chapter9/trajectory-verifier/verifier.py:367
↓ 10 callersClassUserMemoryEvaluationFramework
Framework for evaluating user memory capabilities of AI agents.
chapter3/user-memory-evaluation/framework.py:23
↓ 9 callersClassActiveToolAgent
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 callersClassBrowserError
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 callersClassBrowserErrorEvent
An error occurred in the browser layer.
chapter9/browser-use-rpa/browser-use/browser_use/browser/events.py:460
↓ 9 callersClassByteLevelTokenizer
chapter2/attention_visualization/test_token_labels.py:11
↓ 9 callersClassFileTools
File system tools with verification and safety checks.
chapter4/execution-tools/file_tools.py:11
↓ 9 callersClassKVCacheAgent
ReAct Agent with different KV cache optimization modes
chapter2/kv-cache/agent.py:352
↓ 9 callersClassKnowledgeBase
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