Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bojieli/ai-agent-book
/ functions
Functions
2,925 in github.com/bojieli/ai-agent-book
⨍
Functions
2,925
◇
Types & classes
570
↳
Endpoints
80
Method
load_memory
Load advanced JSON memory cards from storage
chapter3/user-memory/memory_manager.py:442
Function
log_call
(func)
chapter2/prompt-engineering/tau_bench/model_utils/api/logging.py:43
Function
log_execution_time
Decorator to log function execution time for educational purposes. Args: logger: Logger instance to use
chapter3/dense-embedding/logger.py:58
Method
log_index_build
Log index building process.
chapter3/dense-embedding/logger.py:153
Function
main
Main demo function
chapter2/local_llm_serving/demo_streaming.py:191
Function
main
Demo the sample tasks
chapter1/context/demo_samples.py:11
Function
mcp_browser_execute_task
Execute a browser task using autonomous AI agent.
chapter4/collaboration-tools/src/main.py:113
Function
mcp_browser_get_content
Get content from the current page.
chapter4/collaboration-tools/src/main.py:104
Function
mcp_browser_list_tabs
List all open browser tabs.
chapter4/collaboration-tools/src/main.py:132
Function
mcp_browser_navigate
Navigate to a URL in the browser.
chapter4/collaboration-tools/src/main.py:94
Function
mcp_browser_screenshot
Take a screenshot of the current page.
chapter4/collaboration-tools/src/main.py:123
Function
mcp_cancel_timer
Cancel an active timer.
chapter4/collaboration-tools/src/main.py:268
Function
mcp_chess_get_board_state
Get current board state.
chapter4/collaboration-tools/src/main.py:331
Function
mcp_chess_get_game_status
Get game status.
chapter4/collaboration-tools/src/main.py:338
Function
mcp_chess_get_legal_moves
Get all legal moves.
chapter4/collaboration-tools/src/main.py:324
Function
mcp_chess_get_move_history
Get move history.
chapter4/collaboration-tools/src/main.py:352
Function
mcp_chess_load_fen
Load a chess position from FEN.
chapter4/collaboration-tools/src/main.py:306
Function
mcp_chess_make_move
Make a chess move.
chapter4/collaboration-tools/src/main.py:315
Function
mcp_chess_new_game
Start a new chess game with the standard starting position.
chapter4/collaboration-tools/src/main.py:299
Function
mcp_chess_reset_board
Reset the board.
chapter4/collaboration-tools/src/main.py:359
Function
mcp_chess_undo_move
Undo the last move.
chapter4/collaboration-tools/src/main.py:345
Function
mcp_excel_apply_formula
Apply Excel formula.
chapter4/collaboration-tools/src/main.py:411
Function
mcp_excel_create_workbook
Create Excel workbook.
chapter4/collaboration-tools/src/main.py:392
Function
mcp_excel_create_worksheet
Create Excel worksheet.
chapter4/collaboration-tools/src/main.py:401
Function
mcp_excel_get_metadata
Get Excel metadata.
chapter4/collaboration-tools/src/main.py:423
Function
mcp_excel_read
Read Excel data.
chapter4/collaboration-tools/src/main.py:370
Function
mcp_excel_screenshot
Create Excel screenshot.
chapter4/collaboration-tools/src/main.py:432
Function
mcp_excel_write
Write Excel data.
chapter4/collaboration-tools/src/main.py:381
Function
mcp_get_timer_status
Get timer status.
chapter4/collaboration-tools/src/main.py:286
Function
mcp_intelligence_generate_code
Generate Python code.
chapter4/collaboration-tools/src/main.py:447
Function
mcp_intelligence_guard
Guard reasoning process.
chapter4/collaboration-tools/src/main.py:469
Function
mcp_intelligence_think
Complex problem reasoning.
chapter4/collaboration-tools/src/main.py:458
Function
mcp_list_pending_requests
List all pending approval requests.
chapter4/collaboration-tools/src/main.py:233
Function
mcp_list_timers
List all timers.
chapter4/collaboration-tools/src/main.py:277
Function
mcp_request_admin_approval
Request approval from human administrator.
chapter4/collaboration-tools/src/main.py:198
Function
mcp_request_admin_input
Request input from human administrator.
chapter4/collaboration-tools/src/main.py:210
Function
mcp_respond_to_request
Admin response to an approval request.
chapter4/collaboration-tools/src/main.py:222
Function
mcp_send_discord_message
Send a Discord message.
chapter4/collaboration-tools/src/main.py:183
Function
mcp_send_email
Send an email notification.
chapter4/collaboration-tools/src/main.py:143
Function
mcp_send_slack_message
Send a Slack message.
chapter4/collaboration-tools/src/main.py:171
Function
mcp_send_telegram_message
Send a Telegram message.
chapter4/collaboration-tools/src/main.py:160
Function
mcp_set_recurring_timer
Set a recurring timer.
chapter4/collaboration-tools/src/main.py:256
Function
mcp_set_timer
Set a timer that will notify when completed.
chapter4/collaboration-tools/src/main.py:244
Method
multiline_text
Render multiple lines of text.
book/svg_lib.py:138
Method
name
(self)
chapter5/coding-agent/tools/multi_edit_tool.py:15
Method
name
(self)
chapter5/coding-agent/tools/exit_plan_mode_tool.py:13
Method
name
(self)
chapter5/coding-agent/tools/read_tool.py:15
Method
name
(self)
chapter5/coding-agent/tools/web_fetch_tool.py:13
Method
name
(self)
chapter5/coding-agent/tools/bash_tool.py:16
Method
name
(self)
chapter5/coding-agent/tools/bash_output_tool.py:15
Method
name
(self)
chapter5/coding-agent/tools/glob_tool.py:15
Method
name
(self)
chapter5/coding-agent/tools/grep_tool.py:18
Method
name
(self)
chapter5/coding-agent/tools/write_tool.py:15
Method
name
Tool name
chapter5/coding-agent/tools/base.py:37
Method
name
(self)
chapter5/coding-agent/tools/web_search_tool.py:13
Method
name
(self)
chapter5/coding-agent/tools/notebook_edit_tool.py:15
Method
name
(self)
chapter5/coding-agent/tools/ls_tool.py:16
Method
name
(self)
chapter5/coding-agent/tools/todo_write_tool.py:13
Method
name
(self)
chapter5/coding-agent/tools/kill_bash_tool.py:13
Method
name
(self)
chapter5/coding-agent/tools/task_tool.py:13
Method
name
(self)
chapter5/coding-agent/tools/edit_tool.py:15
Function
notion_search
Search Notion.
chapter4/perception-tools/src/main.py:606
Method
on_chunk_ready
Callback to index chunk immediately when ready
chapter3/contextual-retrieval/index_local_laws_contextual.py:204
Function
operations_to_json
Convert operations to JSON string Args: operations: List of memory operations pretty: Whether to pretty-print the JSON
chapter3/user-memory/memory_operation_formatter.py:113
Method
parse
( self, text: str, typ: type[T] | dict[str, Any], examples: list[ParseDatapoin
chapter2/prompt-engineering/tau_bench/model_utils/model/chat.py:358
Method
parse
( self, text: str, typ: type[T] | dict[str, Any], examples: list[ParseDatapoin
chapter2/prompt-engineering/tau_bench/model_utils/model/completion.py:285
Method
parse
( self, text: str, typ: type[T] | dict[str, Any], examples: list[ParseDatapoin
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:79
Method
parse
( self, text: str, typ: type[T] | dict[str, Any], examples: list[ParseDatapoin
chapter2/prompt-engineering/tau_bench/model_utils/model/general_model.py:84
Method
parse_force
( self, instruction: str, typ: type[T] | dict[str, Any], text: str | None = No
chapter2/prompt-engineering/tau_bench/model_utils/model/chat.py:389
Method
parse_force
( self, instruction: str, typ: type[T] | dict[str, Any], text: str | None = No
chapter2/prompt-engineering/tau_bench/model_utils/model/completion.py:312
Method
parse_force
( self, instruction: str, typ: type[T] | dict[str, Any], text: str | None = No
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:103
Method
parse_force
( self, instruction: str, typ: type[T] | dict[str, Any], text: str | None = No
chapter2/prompt-engineering/tau_bench/model_utils/model/general_model.py:104
Method
parse_force_from_prompt
( self, prompt: str, typ: BaseModel | dict[str, Any], temperature: float | None = None )
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:98
Method
parse_force_from_prompt
( self, prompt: str, typ: BaseModel, temperature: float | None = None )
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:11
Method
parse_pdf
Parse a PDF document from URL or local file
chapter2/local_llm_serving/tools.py:372
Function
pdf_extract
Extract text from PDF.
chapter4/perception-tools/src/main.py:363
Function
plot_rating_history
Plot rating evolution over time for selected models. Args: history_df: DataFrame with columns: date, model, rating model
chapter6/elo-leaderboard/visualization.py:94
Function
pptx_extract
Extract content from PPTX.
chapter4/perception-tools/src/main.py:380
Function
preprocess_example
(example)
chapter7/sesame/sesame_csm_sft_unsloth.py:116
Method
print_config
Print current configuration (hiding sensitive data)
chapter1/context/config.py:166
Method
print_config
Print current configuration (hiding sensitive data)
chapter3/user-memory/config.py:155
Function
print_result
Print formatted result
chapter3/user-memory/main.py:40
Method
print_results
Pretty print search results.
chapter3/retrieval-pipeline/test_client.py:49
Function
print_with_typing_effect
Print text with a typing effect
chapter2/local_llm_serving/demo_streaming.py:10
Method
process
(inputs, outputs, parameters)
chapter9/live-audio/frontend/public/audioWorklet.js:10
Method
process
(inputs, outputs, parameters)
chapter9/live-audio/frontend/public/audioWorklet.js:103
Method
process_html
Process HTML files.
chapter3/structured-index/document_processor.py:199
Method
process_markdown
Process Markdown files.
chapter3/structured-index/document_processor.py:185
Method
process_pdf
Process PDF files with special handling for technical documentation. Optimized for Intel manuals with complex formatting.
chapter3/structured-index/document_processor.py:49
Method
process_text
Process plain text files.
chapter3/structured-index/document_processor.py:176
Function
process_time_slice
Process a single time slice to build leaderboard. Args: args: Tuple of (end_date, slice_df, initial_rating, k_factor)
chapter6/elo-leaderboard/parallel_processing.py:13
Function
pubchem_properties
Get compound properties.
chapter4/perception-tools/src/main.py:288
Function
pubchem_search
Search PubChem compounds.
chapter4/perception-tools/src/main.py:278
Function
pubchem_similar
Search similar compounds.
chapter4/perception-tools/src/main.py:306
Function
pubchem_synonyms
Get compound synonyms.
chapter4/perception-tools/src/main.py:297
Function
query_index
Query the RAPTOR or GraphRAG index.
chapter3/structured-index/api_service.py:224
Method
rebuild_index
Rebuild the index if necessary.
chapter3/dense-embedding/indexing.py:36
Function
register_process
Register a background process for monitoring
chapter4/agent-with-event-trigger/server_fastapi.py:332
Function
register_process
Register a background process for monitoring
chapter4/agent-with-event-trigger/server.py:332
Function
reload_mcp_tools
Manually trigger MCP tools reload
chapter4/agent-with-event-trigger/server_fastapi.py:244
← previous
next →
2,401–2,500 of 2,925, ranked by callers