MCPcopy Create free account

hub / github.com/CHfaithwy/Lumo / functions

Functions597 in github.com/CHfaithwy/Lumo

↓ 724 callersMethodget
(self, task_id)
lumo/background_tasks.py:123
↓ 33 callersFunction_safe_mean
(values)
lumo/evaluation/metrics.py:21
↓ 25 callersFunction_context_units
(text)
lumo/context_manager.py:48
↓ 25 callersFunctionclip
(text, limit=MAX_TOOL_OUTPUT)
lumo/workspace.py:40
↓ 23 callersFunctionnow
()
lumo/workspace.py:36
↓ 19 callersMethodsave
(self, session)
lumo/session_store.py:15
↓ 18 callersFunction_safe_ratio
(numerator, denominator)
lumo/evaluation/metrics.py:28
↓ 18 callersFunctionprovider_env
(name, legacy_names=(), default="")
lumo/config.py:60
↓ 17 callersMethodpath
(self, raw_path)
lumo/runtime.py:2181
↓ 16 callersMethodtool_context
(self)
lumo/runtime.py:1709
↓ 15 callersMethodemit_trace
(self, task_state, event, payload=None)
lumo/runtime.py:1447
↓ 15 callersMethodrun
(self, user_message)
lumo/agent_loop.py:33
↓ 14 callersMethodask
(self, user_message)
lumo/runtime.py:1571
↓ 14 callersMethodto_dict
(self)
lumo/features/memory.py:628
↓ 13 callersFunctionnormalize_memory_state
(state, workspace_root=None)
lumo/features/memory.py:354
↓ 12 callersMethod_finalize_run
(self, task_state, original_user_message, final_answer, run_started_at, *, stop_reason=None)
lumo/agent_loop.py:303
↓ 12 callersMethodrun_tool
执行一次工具调用,并在执行前后套上完整护栏。 为什么存在: 在 agent 系统里,真正危险的不是“模型会不会想调用工具”,而是 “平台有没有在执行前把边界守住”。这个函数就是工具层的总闸口: 所有工具调用都必须先经过它,不能让模型直
lumo/runtime.py:1586
↓ 11 callersFunction_security_agent
(workspace_root, approval_policy="auto", read_only=False)
lumo/evaluation/metrics.py:528
↓ 11 callersMethodfingerprint
(self)
lumo/workspace.py:197
↓ 10 callersFunction_run_git
(repo_root, args, check=True)
lumo/git_tools.py:173
↓ 10 callersFunction_terminal_ljust
(text, width)
lumo/cli.py:131
↓ 10 callersMethodrecord
(self, item)
lumo/runtime.py:916
↓ 10 callersMethodwrite_task_state
(self, task_state)
lumo/run_store.py:61
↓ 9 callersFunction_grep_optional_nonnegative_int
(args, key)
lumo/tools.py:419
↓ 9 callersFunction_tokenize
(text)
lumo/features/memory.py:302
↓ 9 callersMethodbuild
(cls, cwd, repo_root_override=None)
lumo/workspace.py:130
↓ 9 callersMethodretry_payload
(problem=None, raw_text="")
lumo/runtime.py:2082
↓ 8 callersFunction_extract_openai_text
(data)
lumo/providers/clients.py:173
↓ 8 callersMethodrun_dir
(self, run_id)
lumo/run_store.py:23
↓ 7 callersFunction_grep_result_text
(pattern, display_path, output_mode, body_lines, shown_count, offset, total_matches, file_count, truncated, gl
lumo/tools.py:561
↓ 7 callersFunction_metadata
( tool_status, tool_error_code="", security_event_type="", risk_level="low", read_only=Tru
lumo/tool_executor.py:28
↓ 7 callersFunction_terminal_middle
(text, limit)
lumo/cli.py:159
↓ 7 callersFunctioncanonicalize_path
(raw_path, workspace_root=None)
lumo/features/memory.py:285
↓ 7 callersMethodstop
(self, stop_reason, status=STATUS_STOPPED, final_answer="")
lumo/task_state.py:134
↓ 7 callersMethodto_dict
(self)
lumo/task_state.py:156
↓ 6 callersMethod_approval_preview
(value, limit=80)
lumo/runtime.py:1895
↓ 6 callersMethod_fallback_request_plan
(original_text, error="")
lumo/runtime.py:1244
↓ 6 callersFunction_page_entries
(entries, limit, offset)
lumo/tools.py:487
↓ 6 callersMethodload_index
(self)
lumo/features/memory.py:88
↓ 5 callersFunction_color
(text, ansi_color)
lumo/cli.py:97
↓ 5 callersFunction_ensure_list
(value)
lumo/features/memory.py:247
↓ 5 callersFunction_grep_offset
(args)
lumo/tools.py:347
↓ 5 callersMethod_history_path_key
(self, item)
lumo/runtime.py:704
↓ 5 callersFunction_name_only
(repo_root, args)
lumo/git_tools.py:260
↓ 5 callersMethodcreate_checkpoint
(self, task_state, user_message, trigger)
lumo/runtime.py:1489
↓ 5 callersMethodload_topic_notes
(self, topic)
lumo/features/memory.py:117
↓ 4 callersFunction_build_real_agent
(workspace_root, provider, approval_policy="auto", read_only=False)
lumo/evaluation/metrics.py:846
↓ 4 callersFunction_dedupe_preserve_order
(items)
lumo/features/memory.py:259
↓ 4 callersFunction_display_search_path
(search_path, root)
lumo/tools.py:429
↓ 4 callersFunction_effective_model
(args, provider)
lumo/cli.py:170
↓ 4 callersMethod_empty_compression_metadata
(self)
lumo/context_manager.py:426
↓ 4 callersFunction_glob_match
(pattern, relative_path)
lumo/tools.py:257
↓ 4 callersFunction_grep_search_target
(context, args)
lumo/tools.py:253
↓ 4 callersFunction_grep_timeout_seconds
(args)
lumo/tools.py:354
↓ 4 callersFunction_maybe_evolve_durable_memory
(agent, reason)
lumo/cli.py:391
↓ 4 callersMethod_normalize_prompt_block
(text)
lumo/context_manager.py:609
↓ 4 callersFunction_retry_delay
(attempt)
lumo/providers/clients.py:18
↓ 4 callersFunction_terminal_width
(text)
lumo/cli.py:127
↓ 4 callersMethod_tool_reminder_key
(item)
lumo/context_manager.py:530
↓ 4 callersFunction_workspace_relative
(path, workspace_root)
lumo/evaluation/evaluator.py:172
↓ 4 callersMethodappend_note
(self, text, tags=(), source="", created_at=None, kind="episodic")
lumo/features/memory.py:643
↓ 4 callersMethodcapture_workspace_snapshot
(self)
lumo/runtime.py:1455
↓ 4 callersMethodmemory_text
(self)
lumo/runtime.py:605
↓ 4 callersMethodredact_artifact
(self, value, key=None)
lumo/runtime.py:988
↓ 4 callersMethodredact_text
(self, text)
lumo/runtime.py:985
↓ 4 callersMethodremember_file
(self, path)
lumo/features/memory.py:639
↓ 4 callersMethodstart
(self, run_id, task_id, command, cwd, env, timeout)
lumo/background_tasks.py:84
↓ 4 callersMethodtask_dir
(self, run_id)
lumo/run_store.py:38
↓ 3 callersMethod_background_task_run_id
(self)
lumo/runtime.py:1779
↓ 3 callersFunction_border_row
(body)
lumo/cli.py:282
↓ 3 callersMethod_build_prompt_and_metadata
(self, user_message)
lumo/runtime.py:1370
↓ 3 callersMethod_build_prompt_and_metadata_async
{ "workspace_changed": True/False, "prefix_changed": True/False, }
lumo/runtime.py:1393
↓ 3 callersFunction_display_path
(repo_root, target_path)
lumo/git_tools.py:194
↓ 3 callersFunction_extract_tool_hint_region
(content)
lumo/tool_executor.py:111
↓ 3 callersMethod_finalize
(self, record, forced_status="", forced_return_code=None)
lumo/background_tasks.py:299
↓ 3 callersFunction_grep_head_limit
(args)
lumo/tools.py:340
↓ 3 callersFunction_grep_output_mode
(args)
lumo/tools.py:333
↓ 3 callersMethod_history_item_tool_reminder
(item)
lumo/context_manager.py:507
↓ 3 callersMethod_iter_history_items_for_prompt
(self, history)
lumo/runtime.py:948
↓ 3 callersFunction_normalize_rg_relative_path
(value)
lumo/tools.py:494
↓ 3 callersFunction_normalize_text
(value)
lumo/evaluation/metrics.py:750
↓ 3 callersFunction_parse_timestamp
(value)
lumo/features/memory.py:306
↓ 3 callersFunction_post_json_with_retries
(url, payload, headers, timeout, http_error_prefix, connection_error_message, attempts=3)
lumo/providers/clients.py:29
↓ 3 callersFunction_post_json_with_retries_async
(url, payload, headers, timeout, http_error_prefix, connection_error_message, attempts=3)
lumo/providers/clients.py:49
↓ 3 callersMethod_prompt_history
(self)
lumo/context_manager.py:222
↓ 3 callersFunction_take_terminal_width
(text, width, from_end=False)
lumo/cli.py:144
↓ 3 callersFunction_write_json_artifact
(path, payload)
lumo/evaluation/metrics.py:1273
↓ 3 callersMethod_write_json_atomic
(self, path, payload)
lumo/run_store.py:136
↓ 3 callersMethodbuild_async
(self, user_message)
lumo/context_manager.py:136
↓ 3 callersMethodcomplete_text_async
(self, prompt, max_new_tokens=None, prompt_cache_key=None, prompt_cache_retention=None)
lumo/runtime.py:1213
↓ 3 callersFunctioncurrent_checkpoint
(agent)
lumo/checkpoint.py:52
↓ 3 callersFunctioncurrent_runtime_identity
(agent)
lumo/checkpoint.py:30
↓ 3 callersMethodextract
(text, tag)
lumo/runtime.py:2149
↓ 3 callersMethodextract_answer_text
(text)
lumo/runtime.py:2103
↓ 3 callersMethodextract_display_text
(raw)
lumo/runtime.py:1997
↓ 3 callersMethodfeature_enabled
(self, name)
lumo/runtime.py:909
↓ 3 callersMethodfind_background_task
(self, task_id)
lumo/runtime.py:1824
↓ 3 callersFunctionindent_block
(text, prefix)
lumo/workspace.py:114
↓ 3 callersMethodlist_background_tasks
(self, args)
lumo/runtime.py:1815
↓ 3 callersMethodrefresh
(self, record)
lumo/background_tasks.py:130
next →1–100 of 597, ranked by callers