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
from_dict
(cls, d: dict[str, Any])
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:121
Method
from_dict
Create from dictionary
chapter3/user-memory/memory_manager.py:54
Method
from_env
Create config from environment variables.
chapter3/retrieval-pipeline/config.py:21
Method
from_env
Create config from environment variables.
chapter3/retrieval-pipeline/config.py:55
Method
from_env
Create config from environment variables.
chapter3/dense-embedding/config.py:45
Method
from_general_models
( cls, models: list[GeneralModel], sampling_strategy: SamplingStrategy | None = None,
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:104
Function
fs
Create filesystem instance with temp workspace.
chapter4/execution-tools/test_filesystem_enhanced.py:30
Method
generate
( self, instruction: str, text: str, examples: list[GenerateDatapoint] | None
chapter2/prompt-engineering/tau_bench/model_utils/model/chat.py:370
Method
generate
( self, instruction: str, text: str, examples: list[GenerateDatapoint] | None
chapter2/prompt-engineering/tau_bench/model_utils/model/completion.py:296
Method
generate
( self, instruction: str, text: str, examples: list[GenerateDatapoint] | None
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:91
Method
generate
( self, instruction: str, text: str, examples: list[GenerateDatapoint] | None
chapter2/prompt-engineering/tau_bench/model_utils/model/general_model.py:94
Method
generate_from_prompt
(self, prompt: str, temperature: float = 0.0)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:95
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:121
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:53
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:87
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:53
Method
generate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:110
Method
generate_report
Generate evaluation report Args: output_file: Optional file path to save report Returns:
chapter3/agentic-rag-for-user-memory/evaluator.py:521
Method
getHeaders
* Prepare headers for API request * @returns {Object} Headers object
chapter9/live-audio/backend/utils/providers/llmProviders.js:20
Method
getRequestPayload
* Prepare request payload * @param {Array} messages - Chat messages * @param {Object} options - Additional options * @returns {Object} Reques
chapter9/live-audio/backend/utils/providers/llmProviders.js:33
Method
getState
* Get current VAD state * @returns {Object} Current state information
chapter9/live-audio/backend/utils/vad.js:270
Method
get_agent_context
Get the complete context for the agent including memory cards. Args: max_memory_cards: Maximum number of memory
chapter3/contextual-retrieval-for-user-memory/contextual_indexer.py:561
Function
get_agent_status
Get current agent status
chapter4/agent-with-event-trigger/server_fastapi.py:299
Function
get_agent_status
Get current agent status
chapter4/agent-with-event-trigger/server.py:299
Method
get_all_tool_names
Get list of all tool names
chapter5/coding-agent/tool_registry.py:45
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:61
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:108
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:72
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:106
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:26
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:72
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:95
Method
get_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:40
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:71
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:116
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:82
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:116
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:32
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:82
Method
get_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:103
Method
get_card
Get a specific memory card
chapter3/contextual-retrieval-for-user-memory/advanced_memory_manager.py:235
Function
get_config
Get configuration from environment or preset Args: preset: Optional preset name ('full', 'minimal', 'debug', 'demo')
chapter2/system-hint/config.py:106
Method
get_context_string
Get notes as formatted string for LLM context
chapter3/user-memory/memory_manager.py:232
Method
get_context_string
Get memory cards as formatted string for LLM context
chapter3/user-memory/memory_manager.py:402
Method
get_context_string
Get memory cards as formatted string for LLM context
chapter3/user-memory/memory_manager.py:584
Method
get_conversation_context
Get the full conversation context for background memory processing Returns: List of conversation messages
chapter3/user-memory/conversational_agent.py:166
Method
get_conversation_histories
Get conversation histories for a test case. Args: test_id: The test case ID Returns:
chapter3/user-memory-evaluation/framework.py:176
Method
get_conversation_history
Get the current conversation history
chapter2/local_llm_serving/agent.py:430
Method
get_conversation_history
获取对话历史
chapter1/web-search-agent/agent.py:203
Method
get_current_temperature
Get current temperature using Open-Meteo free weather API No API key required - https://open-meteo.com/
chapter2/attention_visualization/tools.py:159
Method
get_current_temperature
Get current temperature using Open-Meteo free weather API No API key required - https://open-meteo.com/
chapter2/local_llm_serving/tools.py:138
Method
get_current_time
Get current date and time in specified timezone using zoneinfo (Python 3.9+)
chapter2/attention_visualization/tools.py:279
Method
get_current_time
Get current date and time in specified timezone using zoneinfo (Python 3.9+)
chapter2/local_llm_serving/tools.py:258
Function
get_document
Get a specific document by ID.
chapter3/retrieval-pipeline/main.py:217
Function
get_document
Retrieve a specific document by ID
chapter3/sparse-embedding/server.py:427
Method
get_document
Retrieve a document by ID. Args: doc_id: Document ID Returns: Document or None if n
chapter3/dense-embedding/document_store.py:77
Method
get_documents
Get multiple documents by IDs.
chapter3/retrieval-pipeline/document_store.py:40
Function
get_index_structure
Get detailed index structure for visualization
chapter3/sparse-embedding/server.py:453
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_user_details.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/find_user_id_by_name_zip.py:21
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/list_all_product_types.py:19
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/return_delivered_order_items.py:45
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/find_user_id_by_email.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_payment.py:87
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_items.py:89
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_user_address.py:35
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_order_details.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/think.py:14
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_address.py:40
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/cancel_pending_order.py:48
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/exchange_delivered_order_items.py:76
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/transfer_to_human_agents.py:14
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_product_details.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/calculate.py:19
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/get_user_details.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/cancel_reservation.py:33
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/book_reservation.py:107
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_flights.py:91
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_passengers.py:25
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/search_onestop_flight.py:49
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/think.py:13
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/get_reservation_details.py:17
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/search_direct_flight.py:25
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/list_all_airports.py:58
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_baggages.py:50
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/transfer_to_human_agents.py:16
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/send_certificate.py:31
Method
get_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/calculate.py:18
Method
get_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:65
Method
get_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:112
Method
get_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:76
Method
get_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:110
Method
get_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:29
Method
get_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:76
Method
get_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:99
Method
get_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:44
Method
get_leaderboard
Get sorted leaderboard using NumPy's fast sorting. Returns: List of tuples (model, rating, matches, wins)
chapter6/elo-leaderboard/optimized_elo.py:207
Function
get_mcp_status
Get MCP tools loading status
chapter4/agent-with-event-trigger/server_fastapi.py:224
Function
get_mcp_status
Get MCP tools loading status
chapter4/agent-with-event-trigger/server.py:224
Method
get_model_config
Get model configuration as dictionary Returns: Model configuration dict
chapter1/context/config.py:152
← previous
next →
2,201–2,300 of 2,925, ranked by callers