MCPcopy Create free account

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

Functions13,003 in github.com/bojieli/ai-agent-book

Functionfake_llm_chat
(client, tracker, agent, messages, json_mode=False, note="")
chapter10/book-translation/tests/test_glossary_robustness.py:27
Functionfake_llm_chat
(client, tracker, agent, messages, json_mode=False, note="")
chapter10/book-translation/tests/test_proofread_non_dict.py:19
Functionfake_llm_chat
(client, tracker, agent, messages, json_mode=False, note="")
chapter10/book-translation/tests/test_null_glossary.py:7
Functionfake_post
(url, body, headers, timeout=90.0)
chapter7/tts-quality-eval/test_minimax_t2a_refresh.py:33
Functionfake_post
(url, json=None, **kwargs)
chapter3/contextual-retrieval-for-user-memory/test_top_k.py:36
Functionfake_run
(command, **kwargs)
chapter10/voice-werewolf/test_user_simulator.py:198
Functionfake_run
(self, command, timeout, stdin=None, cwd=None, shell=True)
chapter4/execution-tools/test_bash_lookup.py:56
Functionfake_run
(*_args, **_kwargs)
chapter4/execution-tools/test_code_interpreter_python_runtime.py:176
Functionfake_run
(command, **_kwargs)
chapter4/execution-tools/test_execution_tools.py:107
Functionfake_run_agent_task
(*_args, **_kwargs)
chapter4/active-tool-discovery/test_exact_experiment.py:146
Functionfake_run_command
(command, timeout, stdin=None, cwd=None, shell=True)
chapter4/execution-tools/test_code_interpreter_python_runtime.py:49
Functionfake_slack
(message, webhook_url=None, channel=None, username="Collaboration Agent")
tests/test_ch4_notification_dispatcher.py:650
Functionfake_temporary_directory
(prefix, dir, ignore_cleanup_errors)
chapter4/execution-tools/test_code_interpreter_python_runtime.py:158
Functionfake_verify_code_syntax
(_code, language)
chapter4/execution-tools/test_execution_tools.py:159
Functionfalse_handler
(msg, ctx)
tests/test_ch4_notification_dispatcher.py:353
Functionfast_then_slow
(msg, ctx)
tests/test_ch4_notification_dispatcher.py:552
Functionfile_reader
Read file contents.
chapter4/perception-tools/src/main.py:181
Functionfilesystem_copy
Copy one workspace-confined filesystem object.
chapter4/perception-tools/src/main.py:224
Functionfilesystem_delete
Quarantine one workspace-confined filesystem object.
chapter4/perception-tools/src/main.py:234
Functionfilesystem_move
Move one workspace-confined filesystem object.
chapter4/perception-tools/src/main.py:214
Methodfill
(self, field, value)
chapter10/autonomous-phone-registration/test_orchestration.py:24
Methodfill
(self, field, value)
chapter10/autonomous-phone-registration/test_orchestration.py:48
Methodfill
(self, field, value)
chapter10/autonomous-phone-registration/test_orchestration.py:292
Methodfill_field
(index: int, text: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:603
Functionfilter_operations_by_action
Filter operations by action type Args: operations: List of memory operations action: Action type to filter ('add', 'upda
chapter3/user-memory/memory_operation_formatter.py:130
Methodfinal_text
Rebuild the text from the complete token IDs, flushing pending bytes. ``generated_text`` below is accumulated from prefix decodes
chapter2/attention_visualization/main.py:135
Functionfinally
(state)
tests/js/auto-translate.test.js:65
Methodfind_file_input_in_descendants
(n: EnhancedDOMTreeNode, depth: int)
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:447
Methodfind_file_input_near_element
Find the closest file input to the selected element.
chapter9/browser-use-rpa/browser-use/browser_use/tools/service.py:442
Methodfind_shell
(name)
chapter5/coding-agent/tests/test_shell_session.py:15
Functionfinish
(call_id: str, finish_request: FinishCall)
chapter6/phone-agent/webrtc_app.py:680
Functionfinish_second
(client, tracker, agent, messages, json_mode=False, note="")
chapter10/book-translation/test_official_experiment.py:125
Methodfirst_action
(text: str, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:255
Functionflaky_call
()
chapter7/android-world/test_experiment.py:138
Functionflange_measurement
()
chapter5/cad-vs-diffusion/test_offline.py:23
Functionflow_lr
Left-to-right flow diagram: nodes connected by arrows.
book-en/svg_lib.py:546
Functionflow_lr
Left-to-right flow diagram: nodes connected by arrows.
book-tr/svg_lib.py:546
Functionflow_lr
Left-to-right flow diagram: nodes connected by arrows.
book-ar/svg_lib.py:572
Functionflow_lr
Left-to-right flow diagram: nodes connected by arrows.
book-ru/svg_lib.py:546
Functionflow_lr
Left-to-right flow diagram: nodes connected by arrows.
book-es/svg_lib.py:546
Functionflow_lr
Зүүнээс баруун тийш урсах диаграм: зангилаанууд сумаар холбогдоно.
book-mn/svg_lib.py:547
Functionflow_lr
Left-to-right flow diagram: nodes connected by arrows.
book-id/svg_lib.py:546
Functionflow_tb
Top-to-bottom flow diagram.
book-en/svg_lib.py:568
Functionflow_tb
Top-to-bottom flow diagram.
book-tr/svg_lib.py:568
Functionflow_tb
Top-to-bottom flow diagram.
book-ar/svg_lib.py:594
Functionflow_tb
Top-to-bottom flow diagram.
book-ru/svg_lib.py:568
Functionflow_tb
Top-to-bottom flow diagram.
book-es/svg_lib.py:568
Functionflow_tb
Дээрээс доош урсах диаграм.
book-mn/svg_lib.py:569
Functionflow_tb
Top-to-bottom flow diagram.
book-id/svg_lib.py:568
Methodflush
(self)
chapter9/self-modifying-agent/sandbox_runner.py:28
Methodflush
(self)
chapter4/multimodal-agent/main.py:27
Methodflush
(self)
chapter4/multimodal-agent/demo.py:26
Functionfn
(payload: str)
tests/test_ch2_prompt_injection_robustness.py:101
Functionfn
(rate, concurrency, idx)
tests/test_ch6_rate_ramp_benchmark.py:203
MethodforceEndSpeech
* Force end current speech session * @returns {Promise<Object|null>} Final speech data if available
chapter6/live-audio/backend/utils/vad.js:230
Methodforce_json_prompt
(self, text: str, _: bool = False)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_chat.py:128
Functionform
()
scripts/book_figures/chapter5.py:91
Methodformat_conversation_text
Format a conversation into readable text
chapter3/log-sanitization/test_loader.py:160
Functionformat_tool_response
Format tool response for the chat model
chapter2/attention_visualization/tools.py:443
Functionformat_tool_response
Format tool response for the chat model
chapter2/local_llm_serving/tools.py:496
Functionformatting_prompts_func_alpaca
(conversations)
chapter8/continued-pretraining/continued-pretrain.py:278
Functionformatting_prompts_func_wiki
(examples)
chapter8/continued-pretraining/continued-pretrain.py:255
Functionforum_pedo_run
()
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:480
Functionforum_raw_run
()
chapter5/permission-embedded-data-objects/pedo/eval/case_studies.py:563
Methodforward
(self, x: torch.Tensor)
chapter6/rgb-sim2real-grasping/pipeline.py:107
Methodforward
(self, state: torch.Tensor, action: torch.Tensor)
chapter6/gemini-xlerobot-navigation/desktop_planner.py:134
Methodfrom_agent
Create a CreateAgentTaskEvent from an Agent instance
chapter9/browser-use-rpa/browser-use/browser_use/agent/cloud_events.py:205
Methodfrom_agent
Create a CreateAgentSessionEvent from an Agent instance
chapter9/browser-use-rpa/browser-use/browser_use/agent/cloud_events.py:243
Methodfrom_browser_action
Create a workflow step from browser-use action and element info
chapter9/browser-use-rpa/learning_agent/workflow.py:121
Methodfrom_dict
(cls, data: Dict[str, Any])
chapter7/user-memory-system-evaluation/experiment.py:159
Methodfrom_dict
(cls, data: Dict[str, Any])
chapter7/user-memory-system-evaluation/experiment.py:192
Methodfrom_dict
(cls, d: dict[str, Any])
chapter2/prompt-engineering/tau_bench/model_utils/api/datapoint.py:121
Methodfrom_dict
(cls, data: Dict[str, Any])
chapter9/browser-use-rpa/learning_agent/workflow.py:63
Methodfrom_dict
Create step from dictionary
chapter9/browser-use-rpa/learning_agent/workflow.py:112
Methodfrom_dict
Create from dictionary
chapter3/user-memory/memory_manager.py:63
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:61
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
Functionfrontend_dir
(tmp_path)
chapter5/conversational-ui/test_customize_non_dict_file_item.py:20
Functionfrontend_dir
(tmp_path)
chapter5/conversational-ui/test_customize_malformed_args.py:20
Functionfs
Create filesystem instance with temp workspace.
chapter4/execution-tools/test_filesystem_enhanced.py:19
Methodfull_name
(self)
chapter9/browser-use-rpa/browser-use/browser_use/filesystem/file_system.py:71
Functionfully_compromised
(_p: str)
tests/test_ch2_prompt_injection_robustness.py:180
Methodgather_result
(request: Request)
chapter10/autonomous-phone-registration/twilio_channel.py:89
Functiongenerate
生成并返回 (employees, salaries) 两个 list[dict]。
chapter5/erp-agent/seed.py:44
Methodgenerate
(self, prompt: str, sys_prompt: str, retries: int = 3)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:72
Methodgenerate
(self, prompt: str, sys_prompt: str, retries: int = 3)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:100
Methodgenerate
(self, prompt: str, sys_prompt: str, retries: int = 3)
chapter5/permission-embedded-data-objects/pedo/eval/dataguardbench/harness.py:130
Methodgenerate
(self, prompt, language="English")
tests/test_ch7_evaluate_multilingual.py:168
Methodgenerate
(self, prompt)
tests/test_ch7_evaluate_multilingual.py:217
Methodgenerate
(self, prompt, language="English")
tests/test_ch8_evaluate_multilingual.py:168
Methodgenerate
(self, prompt)
tests/test_ch8_evaluate_multilingual.py:217
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
Functiongenerate_action_arena
( act_desp: str, persona: Any, maze: Any, act_world: str, act_sector:
chapter10/generative-agents/action_arena_compat.py:117
Functiongenerate_cadquery_code
调用 Kimi 生成 CadQuery 源码并落盘,返回源码路径。
chapter5/cad-vs-diffusion/route_a_codegen.py:45
Methodgenerate_from_prompt
(self, prompt: str, temperature: float = 0.0)
chapter2/prompt-engineering/tau_bench/model_utils/model/vllm_completion.py:95
← previousnext →8,901–9,000 of 13,003, ranked by callers