Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix(plugin): thinking/reasoning Params + console dot-path + core.database stub
trohitg06b8c32b36a7
diff --git a/server/nodes/model/_base.py b/server/nodes/model/_base.pyindex c429d2e5..63a8dadb 100644--- a/server/nodes/model/_base.py+++ b/server/nodes/model/_base.py@@ -51,6 +51,16 @@ class ChatModelParams(BaseModel):default=1.0, alias="topP", ge=0.0, le=1.0,json_schema_extra={"numberStepSize": 0.1},)+ # Thinking / reasoning knobs (Anthropic extended thinking, Gemini+ # thinking budget, OpenAI o-series reasoning effort, Groq reasoning+ # format). Pre-refactor handler forwarded these verbatim; provider+ # plugins that don't support them simply ignore the keys downstream.+ thinking_enabled: bool = Field(default=False, alias="thinkingEnabled")+ thinking_budget: Optional[int] = Field(+ default=None, alias="thinkingBudget", ge=0, le=64000,+ )+ reasoning_effort: Optional[str] = Field(default=None, alias="reasoningEffort")+ reasoning_format: Optional[str] = Field(default=None, alias="reasoningFormat")model_config = ConfigDict(populate_by_name=True, extra="ignore")diff --git a/server/nodes/utility/console.py b/server/nodes/utility/console.pyindex d65c1153..039851a9 100644--- a/server/nodes/utility/console.py+++ b/server/nodes/utility/console.py@@ -163,7 +163,16 @@ class ConsoleNode(ActionNode):log_value = input_datacase "field":if field_path:- if "{{" not in field_path and field_path not in input_data:+ # Pre-refactor contract: dot / bracket notation always+ # navigates; a bare key that isn't in input_data is+ # only treated as a literal when it clearly isn't a+ # path expression. This order lets `data.items[1].name`+ # resolve even when `data.items[1].name` is not itself+ # a top-level input_data key.+ has_path_syntax = "." in field_path or "[" in field_path+ if has_path_syntax or field_path in input_data:+ log_value = _navigate_field_path(input_data, field_path)+ elif "{{" not in field_path:log_value = field_pathelse:log_value = _navigate_field_path(input_data, field_path)@@ -189,12 +198,15 @@ class ConsoleNode(ActionNode):"source_node_label": source_info.get("label") if source_info else None,})- # Pass through original input for downstream nodes.+ # Pass through original input for downstream nodes. `data` is the+ # user-selected log value (after field-path navigation), so it must+ # not be overwritten by the raw input_data spread below; put the+ # spread first, then the console-owned keys.return {+ **input_data,"label": label or f"Console ({ctx.node_id[:8]})","logged_at": datetime.now().isoformat(),"format": format_type,"data": log_value,"formatted": formatted_output,- **input_data,}diff --git a/server/tests/conftest.py b/server/tests/conftest.pyindex e9553be0..1fe2c677 100644--- a/server/tests/conftest.py+++ b/server/tests/conftest.py@@ -65,6 +65,7 @@ _make_submodule(},)_make_submodule("core", "container", {"container": MagicMock()})+_make_submodule("core", "database", {}) # stubbed package for ad-hoc imports# services.pricing -- pre-stub the singleton so handler modules that do