Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bojieli/ai-agent-book
/ functions
Functions
13,003 in github.com/bojieli/ai-agent-book
⨍
Functions
13,003
◇
Types & classes
1,574
↳
Endpoints
161
Method
__init__
(self, width, height)
book-en/svg_lib.py:283
Method
__init__
(self, width, height)
book-tr/svg_lib.py:283
Method
__init__
(self, environment: ReportingEnvironment, expected: dict[str, dict[str, Any]])
chapter7/public-health-reporting-eval/agent.py:13
Method
__init__
(self, data_path: str | Path)
chapter7/public-health-reporting-eval/reporting_tools.py:23
Method
__init__
(self, model: str, timeout: float = 120.0)
chapter7/user-memory-policy-eval/runner.py:39
Method
__init__
(self, message: str, provider_attempts: list)
chapter7/tts-quality-eval/pipeline.py:398
Method
__init__
(self, repo: Path, test_command: list[str], trace: TraceState)
chapter7/model-action-threshold/experiment.py:285
Method
__init__
(self, cache, fetch_product)
chapter7/model-action-threshold/tasks/cache_contract/repo/cachelib/catalog.py:2
Method
__init__
(self)
chapter7/model-action-threshold/tasks/cache_contract/repo/cachelib/cache.py:2
Method
__init__
(self)
chapter7/model-action-threshold/tasks/crosscutting_identity/repo/accounts/store.py:2
Method
__init__
(self, client=None, name: str = "trace", pricing: Optional[Pricing] = None)
chapter7/agent-cost-analysis/tracer.py:73
Method
__init__
( self, pricing: dict[str, float] | None = None, *, wasteful_token_threshold:
chapter7/agent-cost-analysis/cost_efficiency_analyzer.py:93
Method
__init__
(self, usage)
chapter7/agent-cost-analysis/tests/test_chat_null_usage.py:10
Method
__init__
(self, path: Path)
chapter7/model-benchmark/campaign.py:270
Method
__init__
(self)
chapter7/model-benchmark/campaign.py:361
Method
__init__
(self, config: Optional[dict[str, Any]] = None)
chapter7/model-benchmark/rate_ramp_benchmark.py:52
Method
__init__
( self, *, api_key: str, base_url: str, model: str, seed: int, max_t
chapter7/android-world/run_controlled_experiment.py:695
Method
__init__
Initialize Elo rating system. Args: initial_rating: Starting rating for all models k_factor: Learnin
chapter7/elo-leaderboard/elo_rating.py:17
Method
__init__
(self, backend: str, impl)
chapter7/elo-leaderboard/llm_judge.py:86
Method
__init__
Initialize NumPy-based Elo system.
chapter7/elo-leaderboard/optimized_elo.py:106
Method
__init__
(self)
chapter7/user-memory-system-evaluation/test_experiment.py:29
Method
__init__
(self)
chapter7/user-memory-system-evaluation/test_experiment.py:43
Method
__init__
(self)
chapter7/user-memory-system-evaluation/test_experiment.py:163
Method
__init__
(self)
chapter7/user-memory-system-evaluation/test_experiment.py:205
Method
__init__
(self, spec: EndpointSpec)
chapter7/user-memory-system-evaluation/experiment.py:237
Method
__init__
(self, spec: EndpointSpec)
chapter7/user-memory-system-evaluation/experiment.py:308
Method
__init__
( self, name: str, model: str, api_key_env: str, pricing: Optional[Dic
chapter7/user-memory-system-evaluation/experiment.py:354
Method
__init__
(self, name: str, chat: ChatBackend)
chapter7/user-memory-system-evaluation/experiment.py:398
Method
__init__
(self, chunks: List[Chunk], embedder: EmbeddingBackend)
chapter7/user-memory-system-evaluation/experiment.py:503
Method
__init__
(self, chat: ChatBackend)
chapter7/user-memory-system-evaluation/experiment.py:554
Method
__init__
(self, chat: ChatBackend)
chapter7/user-memory-system-evaluation/experiment.py:636
Method
__init__
(self, chat: ChatBackend)
chapter7/user-memory-system-evaluation/experiment.py:749
Method
__init__
( self, config: Dict[str, Any], judge: Optional[Judge] = None, backend_readine
chapter7/user-memory-system-evaluation/experiment.py:836
Method
__init__
(self, width, height)
book-ar/svg_lib.py:309
Method
__init__
(self)
chapter5/code-for-math/test_empty_problems.py:11
Method
__init__
(self)
chapter5/video-edit/agents.py:113
Method
__init__
(self, meter: TokenMeter = None)
chapter5/video-edit/agents.py:131
Method
__init__
(self, meter: TokenMeter = None)
chapter5/video-edit/agents.py:233
Method
__init__
(self, meter: TokenMeter = None)
chapter5/video-edit/agents.py:286
Method
__init__
(self, provider: str)
chapter5/video-edit/campaign.py:103
Method
__init__
(self, content)
chapter5/paper-to-video/test_campaign.py:38
Method
__init__
(self, content)
chapter5/paper-to-video/test_campaign.py:42
Method
__init__
(self, content, request_id)
chapter5/paper-to-video/test_campaign.py:46
Method
__init__
(self)
chapter5/paper-to-video/test_campaign.py:59
Method
__init__
(self)
chapter5/paper-to-video/test_campaign.py:69
Method
__init__
(self, model: str = MODEL)
chapter5/erp-agent/agent.py:58
Method
__init__
(self, store: Optional[Any] = None, dsn: Optional[str] = None)
chapter5/permission-embedded-data-objects/run_live_security_eval.py:178
Method
__init__
(self, dsn: str, max_reaction_depth: int = 3)
chapter5/permission-embedded-data-objects/pedo/core/store.py:54
Method
__init__
(self, dsn)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety_v2.py:91
Method
__init__
(self, dsn: str)
chapter5/permission-embedded-data-objects/pedo/eval/benchmark_safety.py:45
Method
__init__
(self, model_id: str = "gemini-2.5-flash")
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:63
Method
__init__
(self, model_id: str = "claude-sonnet-4-6")
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:91
Method
__init__
(self, model_id: str = "gpt-4.1")
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:121
Method
__init__
(self)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/agentspec_baseline.py:48
Method
__init__
(self, store: ObjectStore, enforcer: AgentActionEnforcer)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/agentspec_wrap.py:148
Method
__init__
(self, directory)
chapter5/cad-vs-diffusion/receipts.py:28
Method
__init__
(self, reservation: Reservation, now: datetime = SERVER_NOW)
chapter5/small-model-codified-rules/airline_env.py:74
Method
__init__
(self, provider: str, status: int, body: str)
chapter5/provider-failover/providers.py:32
Method
__init__
(self, payload)
chapter5/agent-creator/test_creator.py:26
Method
__init__
(self, payloads)
chapter5/agent-creator/test_creator.py:34
Method
__init__
(self, client: Any, model: str)
chapter5/agent-creator/creator.py:203
Method
__init__
(self, *, model: str | None = None, client: Any | None = None)
chapter5/agent-creator/reference_agent/agent.py:28
Method
__init__
(self)
chapter5/agent-creator/reference_agent/tests/test_contract.py:15
Method
__init__
(self, model: Optional[str] = None)
chapter5/adaptive-log-parser/agent.py:96
Method
__init__
(self, model: Optional[str] = None)
chapter5/adaptive-log-parser/agent.py:180
Method
__init__
(self, line: str)
chapter5/adaptive-log-parser/engine.py:31
Method
__init__
(self)
chapter5/adaptive-log-parser/engine.py:60
Method
__init__
(self, name: str)
chapter5/paper-to-ppt/agents.py:51
Method
__init__
(self, meter: TokenMeter)
chapter5/paper-to-ppt/agents.py:302
Method
__init__
(self, meter: TokenMeter, paper_md: str, figures: dict)
chapter5/paper-to-ppt/agents.py:354
Method
__init__
(self, meter: TokenMeter, paper_md: str, figures: dict)
chapter5/paper-to-ppt/agents.py:431
Method
__init__
Initialize coding agent Args: api_key: API key for the provider model: Model identifier
chapter5/coding-agent/agent.py:27
Method
__init__
(self)
chapter5/coding-agent/tool_registry.py:18
Method
__init__
(self, use_colors: bool = True)
chapter5/coding-agent/main.py:44
Method
__init__
(self, sandbox_config: dict[str, bool] | None = None)
chapter5/coding-agent/sandbox_evaluator.py:157
Method
__init__
Initialize coding agent Args: api_key: API key for Anthropic/OpenRouter model: Model identifier
chapter5/coding-agent/agent_new.py:26
Method
__init__
(self, system_state: 'SystemState')
chapter5/coding-agent/tools/base.py:32
Method
__init__
(self, model: str = MODEL)
chapter5/log-diagnosis/diagnoser.py:49
Method
__init__
(self, width, height)
book-ru/svg_lib.py:283
Method
__init__
(self, width, height)
book-es/svg_lib.py:283
Method
__init__
(self, max_length: int = 4096, min_length: int = 10)
chapter8/cot-distillation/sft_data_auditor.py:114
Method
__init__
(self, *a, **k)
chapter8/cot-distillation/test_empty_problems.py:16
Method
__init__
(self)
chapter8/orpheus/test_orpheus_inference.py:44
Method
__init__
Initialize the Orpheus TTS inference engine. Args: model_path: HuggingFace model path or local path
chapter8/orpheus/inference.py:39
Method
__init__
(self, pad)
chapter8/exact-copy-sft/train_sft.py:26
Method
__init__
(self, pad_id: int)
chapter8/speech-sft-experiment/run_orpheus.py:56
Method
__init__
(self, target_languages: Optional[Sequence[str]] = None)
chapter8/MultilingualReasoning/evaluate_multilingual.py:168
Method
__init__
(self, pad)
chapter8/curly-quote-sft/train_sft.py:34
Method
__init__
(self)
scripts/clean_site_files.py:26
Method
__init__
(self)
scripts/homepage_index.py:15
Method
__init__
(self, title, description, height)
scripts/book_figures/introduction.py:11
Method
__init__
(self, width, height)
book-mn/svg_lib.py:283
Method
__init__
(self, objects: dict[str, Any] | None = None, types: dict[str, Any] | None = None)
tests/test_ch5_pedo_live_security_eval.py:287
Method
__init__
(self)
tests/test_ch7_evaluate_multilingual.py:157
Method
__init__
(self, input_tokens=12, output_tokens=24, total_tokens=36)
tests/test_ch7_evaluate_multilingual.py:208
Method
__init__
(self)
tests/test_ch7_evaluate_multilingual.py:214
Method
__init__
(self, payload)
tests/test_ch8_llm_judge_non_dict_payload.py:15
Method
__init__
(self)
tests/test_ch8_evaluate_multilingual.py:157
Method
__init__
(self, input_tokens=12, output_tokens=24, total_tokens=36)
tests/test_ch8_evaluate_multilingual.py:208
Method
__init__
(self)
tests/test_ch8_evaluate_multilingual.py:214
← previous
next →
7,601–7,700 of 13,003, ranked by callers