diff --git a/.github/workflows/check_for_new_prints.yml b/.github/workflows/check_for_new_prints.yml index 470f5a4f..c7bba7a0 100644 --- a/.github/workflows/check_for_new_prints.yml +++ b/.github/workflows/check_for_new_prints.yml @@ -43,7 +43,7 @@ jobs: NEW_PRINTS=$(git diff ${{ github.event.pull_request.base.sha }} ${{ github.sha }} "$file" | \ grep "^+" | \ grep -v "^+++" | \ - grep "print(" || true) + grep -E "(^|\s)print\(" || true) if [ ! -z "$NEW_PRINTS" ]; then echo "❌ Found new print statements in $file:" diff --git a/letta/services/tool_execution_sandbox.py b/letta/services/tool_execution_sandbox.py index 2a76a147..b45a0b00 100644 --- a/letta/services/tool_execution_sandbox.py +++ b/letta/services/tool_execution_sandbox.py @@ -201,7 +201,10 @@ class ToolExecutionSandbox: func_result, stdout = self.parse_out_function_results_markers(result.stdout) func_return, agent_state = self.parse_best_effort(func_result) return SandboxRunResult( - func_return=func_return, agent_state=agent_state, stdout=[stdout], sandbox_config_fingerprint=sbx_config.fingerprint() + func_return=func_return, + agent_state=agent_state, + stdout=[stdout], + sandbox_config_fingerprint=sbx_config.fingerprint(), ) except subprocess.TimeoutExpired: raise TimeoutError(f"Executing tool {self.tool_name} has timed out.")