agent-zero/extensions/python
frdel ab9fc4ee7f Refactor extensions to async/sync API
Redesign extension handling to support explicit async/sync execution. helpers/extension.py rewrites the extensible decorator, adds call_extensions_async / call_extensions_sync, and a helper to gather extension classes; caching flag adjusted. Updated call sites across the codebase (agent, APIs, plugins, tools, settings, extensions) to use extension.extensible and the new call_extensions_async/sync API, and converted several extension handlers from async to sync. Also small frontend tweaks (use globalThis.runtimeInfo) and minor import updates (csrf_protect in run_ui). This centralizes extension discovery/execution and avoids previously scattered asyncio.run usage.
2026-03-06 11:32:08 +01:00
..
agent_Agent_handle_exception_end Refactor extensions to async/sync API 2026-03-06 11:32:08 +01:00
agent_init Refactor extensions to async/sync API 2026-03-06 11:32:08 +01:00
banners BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
before_main_llm_call BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
error_format BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
hist_add_before Refactor extensions to async/sync API 2026-03-06 11:32:08 +01:00
hist_add_tool_result Refactor extensions to async/sync API 2026-03-06 11:32:08 +01:00
job_loop BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
message_loop_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
message_loop_prompts_after BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
message_loop_prompts_before BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
message_loop_start BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
monologue_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
monologue_start BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
process_chain_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
reasoning_stream BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
reasoning_stream_chunk BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
reasoning_stream_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
response_stream BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
response_stream_chunk BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
response_stream_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
system_prompt BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
tool_execute_after BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
tool_execute_before BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
user_message_ui BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
util_model_call_before BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
.gitkeep BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00