MCPcopy Create free account

hub / github.com/bojieli/ai-agent-book / functions

Functions2,925 in github.com/bojieli/ai-agent-book

Methodfrom_dict
(cls, d: dict[str, Any])
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:121
Methodfrom_dict
Create from dictionary
chapter3/user-memory/memory_manager.py:54
Methodfrom_env
Create config from environment variables.
chapter3/retrieval-pipeline/config.py:21
Methodfrom_env
Create config from environment variables.
chapter3/retrieval-pipeline/config.py:55
Methodfrom_env
Create config from environment variables.
chapter3/dense-embedding/config.py:45
Methodfrom_general_models
( cls, models: list[GeneralModel], sampling_strategy: SamplingStrategy | None = None,
chapter2/prompt-engineering/tau_bench/model_utils/api/api.py:104
Functionfs
Create filesystem instance with temp workspace.
chapter4/execution-tools/test_filesystem_enhanced.py:30
Methodgenerate
( self, instruction: str, text: str, examples: list[GenerateDatapoint] | None
chapter2/prompt-engineering/tau_bench/model_utils/model/chat.py:370
Methodgenerate
( self, instruction: str, text: str, examples: list[GenerateDatapoint] | None
chapter2/prompt-engineering/tau_bench/model_utils/model/completion.py:296
Methodgenerate
( self, instruction: str, text: str, examples: list[GenerateDatapoint] | None
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:91
Methodgenerate
( self, instruction: str, text: str, examples: list[GenerateDatapoint] | None
chapter2/prompt-engineering/tau_bench/model_utils/model/general_model.py:94
Methodgenerate_from_prompt
(self, prompt: str, temperature: float = 0.0)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:95
Methodgenerate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:121
Methodgenerate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:53
Methodgenerate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:87
Methodgenerate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:53
Methodgenerate_message
( self, messages: list[Message], force_json: bool, temperature: float | None =
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:110
Methodgenerate_report
Generate evaluation report Args: output_file: Optional file path to save report Returns:
chapter3/agentic-rag-for-user-memory/evaluator.py:521
MethodgetHeaders
* Prepare headers for API request * @returns {Object} Headers object
chapter9/live-audio/backend/utils/providers/llmProviders.js:20
MethodgetRequestPayload
* 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
MethodgetState
* Get current VAD state * @returns {Object} Current state information
chapter9/live-audio/backend/utils/vad.js:270
Methodget_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
Functionget_agent_status
Get current agent status
chapter4/agent-with-event-trigger/server_fastapi.py:299
Functionget_agent_status
Get current agent status
chapter4/agent-with-event-trigger/server.py:299
Methodget_all_tool_names
Get list of all tool names
chapter5/coding-agent/tool_registry.py:45
Methodget_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:61
Methodget_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:108
Methodget_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:72
Methodget_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:106
Methodget_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:26
Methodget_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:72
Methodget_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:95
Methodget_approx_cost
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:40
Methodget_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:71
Methodget_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:116
Methodget_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:82
Methodget_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:116
Methodget_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:32
Methodget_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:82
Methodget_capability
(self)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:103
Methodget_card
Get a specific memory card
chapter3/contextual-retrieval-for-user-memory/advanced_memory_manager.py:235
Functionget_config
Get configuration from environment or preset Args: preset: Optional preset name ('full', 'minimal', 'debug', 'demo')
chapter2/system-hint/config.py:106
Methodget_context_string
Get notes as formatted string for LLM context
chapter3/user-memory/memory_manager.py:232
Methodget_context_string
Get memory cards as formatted string for LLM context
chapter3/user-memory/memory_manager.py:402
Methodget_context_string
Get memory cards as formatted string for LLM context
chapter3/user-memory/memory_manager.py:584
Methodget_conversation_context
Get the full conversation context for background memory processing Returns: List of conversation messages
chapter3/user-memory/conversational_agent.py:166
Methodget_conversation_histories
Get conversation histories for a test case. Args: test_id: The test case ID Returns:
chapter3/user-memory-evaluation/framework.py:176
Methodget_conversation_history
Get the current conversation history
chapter2/local_llm_serving/agent.py:430
Methodget_conversation_history
获取对话历史
chapter1/web-search-agent/agent.py:203
Methodget_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
Methodget_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
Methodget_current_time
Get current date and time in specified timezone using zoneinfo (Python 3.9+)
chapter2/attention_visualization/tools.py:279
Methodget_current_time
Get current date and time in specified timezone using zoneinfo (Python 3.9+)
chapter2/local_llm_serving/tools.py:258
Functionget_document
Get a specific document by ID.
chapter3/retrieval-pipeline/main.py:217
Functionget_document
Retrieve a specific document by ID
chapter3/sparse-embedding/server.py:427
Methodget_document
Retrieve a document by ID. Args: doc_id: Document ID Returns: Document or None if n
chapter3/dense-embedding/document_store.py:77
Methodget_documents
Get multiple documents by IDs.
chapter3/retrieval-pipeline/document_store.py:40
Functionget_index_structure
Get detailed index structure for visualization
chapter3/sparse-embedding/server.py:453
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_user_details.py:17
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/find_user_id_by_name_zip.py:21
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/list_all_product_types.py:19
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/return_delivered_order_items.py:45
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/find_user_id_by_email.py:17
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_payment.py:87
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_items.py:89
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_user_address.py:35
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_order_details.py:17
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/think.py:14
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/modify_pending_order_address.py:40
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/cancel_pending_order.py:48
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/exchange_delivered_order_items.py:76
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/transfer_to_human_agents.py:14
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/get_product_details.py:17
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/retail/tools/calculate.py:19
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/get_user_details.py:17
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/cancel_reservation.py:33
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/book_reservation.py:107
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_flights.py:91
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_passengers.py:25
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/search_onestop_flight.py:49
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/think.py:13
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/get_reservation_details.py:17
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/search_direct_flight.py:25
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/list_all_airports.py:58
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/update_reservation_baggages.py:50
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/transfer_to_human_agents.py:16
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/send_certificate.py:31
Methodget_info
()
chapter2/prompt-engineering/tau_bench/envs/airline/tools/calculate.py:18
Methodget_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/claude.py:65
Methodget_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:112
Methodget_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/mistral.py:76
Methodget_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/openai.py:110
Methodget_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/outlines_completion.py:29
Methodget_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/anyscale.py:76
Methodget_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:99
Methodget_latency
(self, dp: Datapoint)
chapter2/prompt-engineering/tau_bench/model_utils/model/model.py:44
Methodget_leaderboard
Get sorted leaderboard using NumPy's fast sorting. Returns: List of tuples (model, rating, matches, wins)
chapter6/elo-leaderboard/optimized_elo.py:207
Functionget_mcp_status
Get MCP tools loading status
chapter4/agent-with-event-trigger/server_fastapi.py:224
Functionget_mcp_status
Get MCP tools loading status
chapter4/agent-with-event-trigger/server.py:224
Methodget_model_config
Get model configuration as dictionary Returns: Model configuration dict
chapter1/context/config.py:152
← previousnext →2,201–2,300 of 2,925, ranked by callers