hermes-agent/agent/agent_init_params.py
alt-glitch 3a867a9e65 refactor: delete the initiate-setup turn core, keep the scripted prelude
Salvage of 058b5c8158 from the static-onboarding stack, adapted: the
initiate-setup prompt, its facts builder and the first-task prompt go with
the setup_choose server request and callback, the initiate-setup branch of
the prelude wiring in prompt_turn and the intro auto-continue skip. Unlike
058b5c8158 the scripted prelude seam (agent/turn_scripted_prelude.py and
the prelude parameter on run_conversation) and gui_tour's preset stay: the
default-profile onboarding opening plays through them, and prompt_turn now
asks only _onboarding_prelude for one.

(cherry picked from commit 058b5c8158, adapted)
2026-10-14 00:29:11 +05:30

34 lines
1.7 KiB
Python

"""Names of the ``AIAgent`` constructor params that ``init_agent`` copies onto the agent."""
# Constructor params stored verbatim under the same name.
_PASSTHROUGH_PARAMS = (
"model", "max_iterations", "save_trajectories", "verbose_logging", "quiet_mode",
"tool_progress_mode", "ephemeral_system_prompt", "platform", "skip_context_files",
"load_soul_identity", "pass_session_id", "log_prefix_chars",
# OpenRouter provider preferences
"providers_allowed", "providers_ignored", "providers_order", "provider_sort",
"provider_require_parameters", "provider_data_collection", "openrouter_min_coding_score",
# Toolset filtering
"enabled_toolsets", "disabled_toolsets",
# Model response configuration (None = provider/model default)
"max_tokens", "reasoning_config", "service_tier",
"side_agent",
)
# Gateway identity params stored as ``agent._<name>``. gateway_session_key is the stable
# per-chat key (e.g. agent:main:telegram:dm:123).
_GATEWAY_IDENTITY_PARAMS = (
"user_id", "user_id_alt", "user_name", "chat_id", "chat_name", "chat_type", "thread_id",
"gateway_session_key",
)
_CALLBACK_PARAMS = (
"tool_progress_callback", "tool_start_callback", "tool_complete_callback",
"tool_result_metadata_callback",
"thinking_callback", "reasoning_callback", "clarify_callback",
"read_terminal_callback", "read_preview_callback", "drive_preview_callback",
"read_window_below_callback", "connection_callback", "tour_callback", "theme_callback",
"setup_beat_callback", "step_callback", "stream_delta_callback",
"interim_assistant_callback",
"status_callback", "notice_callback", "notice_clear_callback",
"event_callback", "reaction_callback", "tool_gen_callback",
)